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

Add layer of abstraction in Panel classes #945

Merged
merged 1 commit into from
Nov 28, 2024

Conversation

edan-bainglass
Copy link
Member

@edan-bainglass edan-bainglass commented Nov 26, 2024

This PR adds a layer of abstraction for settings panels though the new ConfigurationSettingsPanel and ResourceSettingsPanel classes and their respective Model classes. The rest of the codebase has been renamed for clarity.

Copy link

codecov bot commented Nov 27, 2024

Codecov Report

Attention: Patch coverage is 97.02970% with 6 lines in your changes missing coverage. Please review.

Project coverage is 67.85%. Comparing base (a5d670e) to head (4ba319f).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
...rc/aiidalab_qe/app/configuration/advanced/model.py 76.47% 4 Missing ⚠️
src/aiidalab_qe/plugins/xas/setting.py 80.00% 1 Missing ⚠️
src/aiidalab_qe/plugins/xps/setting.py 80.00% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main     #945   +/-   ##
=======================================
  Coverage   67.85%   67.85%           
=======================================
  Files         110      110           
  Lines        6206     6206           
=======================================
  Hits         4211     4211           
  Misses       1995     1995           
Flag Coverage Δ
python-3.11 67.85% <97.02%> (ø)
python-3.9 67.85% <97.02%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@edan-bainglass edan-bainglass marked this pull request as draft November 28, 2024 06:27
@edan-bainglass edan-bainglass marked this pull request as ready for review November 28, 2024 11:49
@edan-bainglass
Copy link
Member Author

@superstar54 please have a look at this when you get a chance 🙏

Copy link
Member

@superstar54 superstar54 left a comment

Choose a reason for hiding this comment

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

LGTM!

@edan-bainglass edan-bainglass merged commit 92b8299 into aiidalab:main Nov 28, 2024
7 checks passed
edan-bainglass added a commit that referenced this pull request Dec 9, 2024
This PR looks to clean up the recently implemented plugin-based tab system in the resources/submission step (#939).
The idea is to leverage the newly developed abstraction in #945 to encapsulate the behavior of ANY resource settings panel, leaving the global resource settings panel to override based on its unique added features.

A few added items addressed in this PR:

- PW code parallelization widget syncing between tabs
- Support for syncing newly setup codes
- Warning notification for overridden plugin resources
- Syncing back with global resources on un-override
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.

2 participants