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

Fix constructing a Data Store with incomplete URL #224

Merged
merged 2 commits into from
Aug 9, 2024

Conversation

soininen
Copy link
Contributor

@soininen soininen commented Aug 9, 2024

This fixes wonky behavior when project was saved and closed without properly defining a Data Store's URL.

Fixes spine-tools/Spine-Toolbox#2915

Checklist before merging

  • Documentation (also in Toolbox repo) is up-to-date
  • Release notes in Toolbox repo have been updated
  • Unit tests have been added/updated accordingly
  • Code has been formatted by black & isort
  • Unit tests pass

Data Store was blindly using its URL in tear_down() even though
you can close the project in Toolbox without fully specifying it.

Re spine-tools/Spine-Toolbox#2915
Don't try to use an incomplete URL when constructing a Data Store.
This is a plausible situation when project is saved and closed before
the database URL is fully defined.

Re spine-tools/Spine-Toolbox#2915
Copy link

codecov bot commented Aug 9, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 62.39%. Comparing base (247ce5a) to head (ea5d579).

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #224      +/-   ##
==========================================
- Coverage   62.43%   62.39%   -0.04%     
==========================================
  Files         168      168              
  Lines       17856    17858       +2     
  Branches     2993     2994       +1     
==========================================
- Hits        11148    11143       -5     
- Misses       6098     6102       +4     
- Partials      610      613       +3     

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

@soininen soininen merged commit 4ce33aa into master Aug 9, 2024
11 of 12 checks passed
@soininen soininen deleted the 2915_fix_db_upgrade_dialog_popping branch August 9, 2024 15:02
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.

Canceling database update keeps opening new dialogs
1 participant