-
Notifications
You must be signed in to change notification settings - Fork 128
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
Remove QObjects from ALCFitting Presenter and Model #38211
Remove QObjects from ALCFitting Presenter and Model #38211
Conversation
3c3d10e
to
16dbae7
Compare
16dbae7
to
d069ad0
Compare
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.
Thanks for the review @adriazalvarez |
It was not local data.I followed the first test (https://developer.mantidproject.org/Testing/MuonAnalysis_test_guides/Muon_ALC.html#alc-peak-fitting) of the manual testing instructions (run numbers 81061-142). |
This actually seems to be an issue on |
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.
Tested the interface and everything works correctly on the peak fitting tab.
It's a nice implementation of the MVP pattern with subscribers and is a clean and clear refactorization. I have found very small issues that in some cases are just questions. But it looks good otherwise.
Also, I have checked(I didn't when I tested initially) that the recent refactorization for the MVP training of the baseline presenter was already on the code, and the issue I experienced initially was a bug with that, but thanks a lot for fixing it anyway!
👋 Hi, @cailafinn, Conflicts have been detected against the base branch. Please rebase your branch against the base branch. |
RE mantidproject#38007 Co-authored-by: Waruna Priyankara J A Wickramasingha <[email protected]> Co-authored-by: James Crake-Merani <[email protected]>
RE mantidproject#38007 Co-authored-by: Waruna Priyankara J A Wickramasingha <[email protected]>
RE mantidproject#38007 Co-authored-by: Waruna Priyankara J A Wickramasingha <[email protected]>
d228d91
to
a21f26c
Compare
for more information, see https://pre-commit.ci
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.
Thanks for the changes, peak fitting is working correctly and the interface organization is much improved.
) * Remove Qt elements from model RE mantidproject#38007 Co-authored-by: Waruna Priyankara J A Wickramasingha <[email protected]> Co-authored-by: James Crake-Merani <[email protected]> * Fix model tests RE mantidproject#38007 Co-authored-by: Waruna Priyankara J A Wickramasingha <[email protected]> * Strip Qt from presenter RE mantidproject#38007 Co-authored-by: Waruna Priyankara J A Wickramasingha <[email protected]> * Remove commented methods RE mantidproject#38007 * Use mondern mocking standard RE mantidproject#38007 * Fix CppCheck issues RE mantidproject#38007 * Add missing virtual destructor RE mantidproject#38007 * Update fitting tab from baseline tab RE mantidproject#38007 * Add subscriber in tests RE mantidproject#38007 * Remove unnecessary comments and includes RE mantidproject#38007 * Modernise connections and pointers RE mantidproject#38007 * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --------- Co-authored-by: Waruna Priyankara J A Wickramasingha <[email protected]> Co-authored-by: James Crake-Merani <[email protected]> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This is a squashed version of mantidproject#38211 Remove Qt elements from model RE mantidproject#38007 Co-authored-by: Waruna Priyankara J A Wickramasingha <[email protected]> Co-authored-by: James Crake-Merani <[email protected]> Fix model tests RE mantidproject#38007 Co-authored-by: Waruna Priyankara J A Wickramasingha <[email protected]> Strip Qt from presenter RE mantidproject#38007 Co-authored-by: Waruna Priyankara J A Wickramasingha <[email protected]> Remove commented methods RE mantidproject#38007 Use mondern mocking standard RE mantidproject#38007 Fix CppCheck issues RE mantidproject#38007 Add missing virtual destructor RE mantidproject#38007 Update fitting tab from baseline tab RE mantidproject#38007 Add subscriber in tests RE mantidproject#38007 Remove unnecessary comments and includes RE mantidproject#38007 Modernise connections and pointers RE mantidproject#38007 [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci
Description of work
Summary of work
Stops the presenter and the model from being QObjects, replacing their signals and slots with functionality based on the observer pattern where the presenter (as an observer) subscribes to the view and the model and is updated on their progress.
As part of this, the view and model no longer directly communicate, making this compliant with MVP principles.
Fixes #38007
Further detail of work
Tests have been updated with new mocks to test the implemented functionality independently of any changes to the other parts of the MVP structure.
To test:
This does not require release notes because no user-facing functionality should have changed.
Reviewer
Please comment on the points listed below (full description).
Your comments will be used as part of the gatekeeper process, so please comment clearly on what you have checked during your review. If changes are made to the PR during the review process then your final comment will be the most important for gatekeepers. In this comment you should make it clear why any earlier review is still valid, or confirm that all requested changes have been addressed.
Code Review
Functional Tests
Does everything look good? Mark the review as Approve. A member of
@mantidproject/gatekeepers
will take care of it.Gatekeeper
If you need to request changes to a PR then please add a comment and set the review status to "Request changes". This will stop the PR from showing up in the list for other gatekeepers.