-
Notifications
You must be signed in to change notification settings - Fork 87
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:Further refactoring to simplify control flow #2521
Conversation
bbb3ee7
to
ba5a1be
Compare
The intent of this MR is again to enforce more consistent handling by use of decoration magic. Several places had a pop_up messages saying that a new login was required without doing anything about this. The issue of #2521 was caused by a QT signal calling a MSColab function after logout, which caused a couple of issues. The current code does not crash anymore on my end when the MSColab server is restarted. Now a test simulating server restarts and/or connection troubles would be next steps. |
ba5a1be
to
9af48dd
Compare
44ec6cf
to
aa8b832
Compare
Fewer LOC to make things more maintanable. Also Fix #2514
aa8b832
to
a064e91
Compare
Finally passes checks. As a change, the App now complains more often in case that the active operations was disabled with a popup. I believe this is sensible, but should be explored further in the next MR. |
So, for simplifying reviewing, hiding whitespace is essential.
It passes testbench and several manual tests (certainly not all, but sensible stuff) on my computer behave in a clean, sensible fashion with two clients. Including restarting the server. |
Thx @joernu76 I'll look at it later today. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also catch uncaught SocketIO-Exceptions to handle them gracefully.
c7641ef
to
3de1c89
Compare
So, two of these should be handled now in a general and robust fashion. I strongly dislike the "depth" counter, though Better ideas? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good.
I found another problem unrelated to these changes. A doubleclick on login gives a traceback and login works.
That happens for both cases.
Fatal error in MSS 9.2.0 on Linux-6.11.0-100005-tuxedo-x86_64-with-glibc2.35
Python 3.11.10 | packaged by conda-forge | (main, Sep 10 2024, 11:01:28) [GCC 13.3.0]
Please report bugs in MSS to https://github.com/Open-MSS/MSS
Information about the fatal error:
Traceback (most recent call last):
File "/home/reimar/MAIN/MSS/mslib/msui/mscolab.py", line 385, in login_handler
self.mscolab.after_login(data["email"], self.mscolab_server_url, r)
File "/home/reimar/MAIN/MSS/mslib/msui/mscolab.py", line 694, in after_login
self.connect_window.close()
^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'close'
Fewer LOC to make things more maintainable.
Also Fix #2514
Purpose of PR?:
Fixes #2514
Does this PR introduce a breaking change?
If the changes in this PR are manually verified, list down the scenarios covered::
Additional information for reviewer? :
Mention if this PR is part of any design or a continuation of previous PRs
Does this PR results in some Documentation changes?
If yes, include the list of Documentation changes
Checklist:
<type>: <subject>