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

Project level setting to disable execute project button #2238

Merged
merged 3 commits into from
Aug 10, 2023

Conversation

soininen
Copy link
Contributor

@soininen soininen commented Aug 9, 2023

This PR adds a project-level setting to disable the Execute Project button and bumps project.json version to 11. The setting is currently editable only via editing project.json by hand.

Resolves #2237

Checklist before merging

  • Documentation is up-to-date
  • Release notes have been updated
  • Unit tests have been added/updated accordingly
  • Code has been formatted by black
  • Unit tests pass

Project may have its own settings in the future.

Re #2237
The script wasn't fixing imports in the generated .py files correctly
after the upgrade to PySide6.

Re #2237
@soininen soininen force-pushed the 2237_disableable_execute_project_button branch from da50b13 to de11f98 Compare August 9, 2023 13:53
- Renamed SpineToolboxProject.settings to app_settings, since settings
  now means project-level settings
- Implemented a ProjectSettings class which holds the settings
- The settings are now stored in project.json bumping
  LATEST_PROJECT_VERSION to 11
- The only project setting available is enable_execute_all which enables
  or disables the Execute Project button.
- Implemented the enable_execute_all setting
- Improved tooltips on the execute buttons

Currently, there is no interface in Toolbox to change the project settings
so it must be done through editing project.json by hand. This is intended.

Re #2237
@soininen soininen force-pushed the 2237_disableable_execute_project_button branch from de11f98 to 5aec09b Compare August 10, 2023 05:18
@codecov-commenter
Copy link

codecov-commenter commented Aug 10, 2023

Codecov Report

Patch coverage: 63.93% and project coverage change: +0.01% 🎉

Comparison is base (e443b09) 63.79% compared to head (5aec09b) 63.81%.
Report is 1 commits behind head on master.

❗ Your organization is not using the GitHub App Integration. As a result you may experience degraded service beginning May 15th. Please install the Github App Integration for your organization. Read more.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2238      +/-   ##
==========================================
+ Coverage   63.79%   63.81%   +0.01%     
==========================================
  Files         197      198       +1     
  Lines       35895    35942      +47     
  Branches     6104     6114      +10     
==========================================
+ Hits        22901    22937      +36     
- Misses      11772    11779       +7     
- Partials     1222     1226       +4     
Files Changed Coverage Δ
spinetoolbox/resources_icons_rc.py 88.88% <ø> (ø)
spinetoolbox/project_upgrader.py 54.72% <39.28%> (+0.22%) ⬆️
spinetoolbox/ui_main.py 57.38% <71.42%> (+0.03%) ⬆️
spinetoolbox/project.py 69.29% <75.00%> (+0.21%) ⬆️
spinetoolbox/config.py 93.54% <100.00%> (ø)
spinetoolbox/project_settings.py 100.00% <100.00%> (ø)
spinetoolbox/ui/mainwindow.py 99.79% <100.00%> (+<0.01%) ⬆️

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

@soininen soininen merged commit af55312 into master Aug 10, 2023
@soininen soininen deleted the 2237_disableable_execute_project_button branch August 10, 2023 05:58
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.

Option to disable the Execute project button
2 participants