Closed feman323 closed 3 months ago
Hi Manual, thanks for this contribution. I carefully reviewed your code changes. They are not wrong. But I would take this as an opportunity to refactor the related code sections.
guiapplicationinstance.py
: There is also a method check()
in the base class. Looking into the code base when and how check()
is called I am assuming that the modification would cause side effects. I will refactor that class and its base class but I am not sure yet how.OrderedSet
is IMHO not needed in today's Python and used in only two methods (Snapshots.rsyncInclude()
and Snapshots.rsyncExclude()
). I have to take a closer look but think I can remove it. There seem to be unit tests for it. I have to check their "value". This will become a bigger refactoring. My problem with OrderedSet is also that it overwrites/shadows methods from its base class. So I am insecure and need to take a closer look.It will take some time (weeks maybe) until I work further on this. I see two separate refactoring tasks that need some skills and experienced developers... if someone wants to jump in. But I will take it and leave this PR open to track that tasks instead of creating new issue tickets for this.
Hi Christian,
I'm not sure if the change in will cause any side effects. I have searched through the codebase and the only occurence a of check call with "raiseCmd" parameter was in GuiApplicationInstance, so I assume it is called only internally.
With $ git grep ".check(" **/*.py
I do see several calls. I have to check this first.
- The class
OrderedSet
is IMHO not needed in today's Python and used in only two methods (Snapshots.rsyncInclude()
andSnapshots.rsyncExclude()
). I have to take a closer look but think I can remove it. There seem to be unit tests for it. I have to check their "value". This will become a bigger refactoring. My problem with OrderedSet is also that it overwrites/shadows methods from its base class. So I am insecure and need to take a closer look.
I implemented a solution for this. Will publish it after the upcoming release. #1801
OK, about OrdereSet
I opened PR #1801 . Merge #1801 first and then resolve merge conflicts.
I also reviewed point 1 and approving this solution.
Thank you for this contribution.
Merge PR #1801 first.