Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Removed redundant "Exclude" and "Copy" menu options in LogViewDialog #1672

Closed
wants to merge 43 commits into from

Conversation

T1petitti
Copy link

Removed

  • Removed unnecessary functions pertaining to the copy and exclude options in the LogViewDialog menu.
  • Decode option was left as is, was not requested for removal in issue.

Fix #1578

@buhtz
Copy link
Member

buhtz commented Mar 26, 2024

Hello T1petitti ,
Thank you very much for your contribution.

Looks good on the first view. I will test and review as soon as possible.

@Sakh1l the related issue was assigned to you in December. Might it be that you have also worked on that problem? Will you add something to this PR or will you also review this PR?

Best,
Christian Buhtz

@buhtz buhtz self-assigned this Mar 26, 2024
@buhtz buhtz added this to the Upcoming release (1.5.0) milestone Mar 26, 2024
btnAddExclude = menu.addAction(_('Add to Exclude'))
btnAddExclude.triggered.connect(self.btnAddExcludeClicked)
btnAddExclude.setEnabled(cursor.hasSelection())

btnDecode = menu.addAction(_('Decode'))
btnDecode.triggered.connect(self.btnDecodeClicked)
btnDecode.setEnabled(cursor.hasSelection())
btnDecode.setVisible(self.config.snapshotsMode() == 'ssh_encfs')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems to me that only the entry "Decode" is left in this context menu. This is visible only when the current snapshot profile use encryption (EncFS).

So I propose to add the check self.config.snapshotsMode() == 'ssh_encfs' to line 147 where the context menu trigger is installed. It should be installed only when there is a encrypted (encfs) snapshot profile.

Side note: What confuses me is that the check is only for ssh_encfs and not also local_encfs. Maybe you can check this out if there is a good reason for this? But be aware that we plan to remove (replace) encfs in the long run (#1549). So don't invest to much resources into this encfs-thing.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi. I worked with T1petitti in a group of 3. The Decode option does not come up graphically because the context menu does not appear either, which is why we didn't think we needed to change anything involving the Decode feature, but moving the condition to before the context menu is created instead of after is something we can do.

3bc25fa
This commit by @Germar is where it got added. It does not say why it got added.
Is it possible 'local_encfs' does not have a decode option because local file-paths, not through ssh, do not need to be decoded?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great! 🚀 A team of three. 🤟

I don't use EncFS and so I don't know the details. Might it be possible that you can give it a short test: Create one "locale (encrypted)" and "SSH (encrypted)" profile and then check this feature?

@buhtz
Copy link
Member

buhtz commented Mar 27, 2024

If we keep the "Decode" feature it would be nice it there is a short help text (a QLabel) in the dialog mention that; but of course only if it is an encfs profile.

@buhtz
Copy link
Member

buhtz commented Apr 2, 2024

Because of the Decode feature I tested myself a "local encrypted" and "SSH encrypted" profile.
The current situation make sense. Decoding is only necessary in a "SSH encrypted" profile.

The snapshot log of an "local encrypted" profile do show me the real path and file name. No need for decode.

@buhtz
Copy link
Member

buhtz commented Apr 14, 2024

Can you please give me a short feedback about the current status? Please don't feel any pressure I just need that info for our internal planing.

@buhtz buhtz added the Feedback needs user response, may be closed after timeout without a response label Apr 14, 2024
@Sakh1l
Copy link

Sakh1l commented Apr 21, 2024

Pls take it

@buhtz buhtz marked this pull request as draft April 21, 2024 13:26
@buhtz buhtz removed the Feedback needs user response, may be closed after timeout without a response label Apr 21, 2024
@buhtz
Copy link
Member

buhtz commented Apr 21, 2024

This PR is replaced by #1695 . I couldn't see further progress or valuable feedback. It surprised me a bit because you mentioned there is a team of 3 people working on this PR.

Next time please open a PR only if you are willing to go the full length of the way. You don't have to walk alone in this project. The maintenance team will mentor you if you need.

Please let me know how we can improve the handling of contributions and the communication.

Best,
Christian

@buhtz
Copy link
Member

buhtz commented Apr 26, 2024

Dear Demetrios and T1petitti,
you have to help me here. Maybe I misunderstand something.

Regarding your accidentally opened and later closed PR #1704 I am assuming that your commits in this PR here 11 hours ago are also an accident? Am I right? Or are they on purpose?

Best,
Christian

@buhtz
Copy link
Member

buhtz commented Apr 27, 2024

It feels to me that @vozellad and @T1petitti do not read my comments. Let me know how we can improve our communication. Feel free to use email for example. We can switch to IRC as a live chat.

  • This PR won't get merged because it is replaced with PR fix(LogViewDialog): Remove Exclude, Copy and Decode context menu #1695.
  • Your last commits looking interesting.
  • But your last commits seem to be about the topic suspend-mode. This PR is not related to that topic. Please open a new PR for this. And it is recommended to first open an Issue to discuss the problem and your solution you want to address.
  • It is OK if you are not familiar with GitHub and git. I will mentoring you about it. But you need to read what I write. Currently it feels to me that I am ignored.

@buhtz buhtz closed this Apr 27, 2024
@vozellad
Copy link

Apologies for the miscommunication. My group is part of a class project, and we misunderstood the project instructions. We didn't have to merge with the official project, so we moved on to other issues to work on in private like we were supposed to before. I apologize for not letting you know the nature of our work.

@buhtz
Copy link
Member

buhtz commented Apr 30, 2024

Thanks for reporting back. My initial instructions also weren't not as precise as needed. ;)
You and your group are welcome to the project. We just need to improve our communication. And I am willing to mentoring you if you need assistance.
As I said your commits about the "suspend" feature and the toolbar looking good. You just need to explain them and create them in a separate PR.

@vozellad
Copy link

We only planned to push that first commit to here and have the other ones be private to only us and the professor. If we find a way to not have the commits show up here, we will do it.

@buhtz
Copy link
Member

buhtz commented May 1, 2024

Dear Demetrios,
thanks for keeping in touch. I assuming this is a learning for both of us.

I am interested in your class and the task your professor gave you. Maybe you can describe it a bit more?

Did you asked your professor about this PR? To work in "private" you could have created a new branch after your first "public" commit. This second branch is not part of this PR so it won't be seen by us.

Please tell me about your first commit. What exactly was the plan? I PR is not finished with just committing. Finetuning and discussions are part of a RP process in most cases. Did your professor told you that or realized it?

Be aware that it distracts the maintainers (from there limited spare time) with throwing in just a bunch of commits and then not answering back. I hope you learned that.

Best,
Christian

@vozellad
Copy link

vozellad commented May 1, 2024

Our project was to work on an open source project to get used to working on other people's code. There was no discussion for working with anyone else outside of the class. The class is called Senior Design & Development. Is it giving you notifications for the commits we're doing?

@buhtz
Copy link
Member

buhtz commented May 1, 2024

Our project was to work on an open source project to get used to working on other people's code.

This are two different things: Work on an open source project and working on foreign code. You just did the latter. Work on a project means communicating with maintainers and consider how to get your modifications merged.

You should have mentioned that you are not interested in merging the code and real contributions. This would have saved me some resources.

Is it giving you notifications for the commits we're doing?

If you commit into the dev branch of your own fork, yes. Because about this Pull Request you created. You should also learn how git and git-code-hosters do work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

LogViewDialog: Remove hidden feature "Exclude" because it is redundant
5 participants