Skip to content

Fix rolling back item updates - #624

Merged
soininen merged 1 commit into
masterfrom
toolbox_3335_fix_definition_group_updates
Aug 11, 2026
Merged

soininen merged 1 commit into
masterfrom
toolbox_3335_fix_definition_group_updates

Conversation

@soininen

@soininen soininen commented Aug 11, 2026 •

Copy link
Copy Markdown
Contributor

This PR fixes a bug where restoring updated items would sometimes cause a Traceback.

Fixes spine-tools/Spine-Toolbox#3335

Checklist before merging

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

This fixes a bug where restoring an item that has been updated
in such a way that a field storing an external reference
(such as parameter_value_list_id in parameter definition)
has changed would result in a Traceback.

The Traceback resulted when the item would be compared to its backup
in MappedItemBase._strip_equal_fields() and all fields would be incorrectly
declared as equal.

Re spine-tools/Spine-Toolbox#3335
@codecov

codecov Bot commented Aug 11, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 86.15%. Comparing base (303a427) to head (b6aabd3).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #624   +/-   ##
=======================================
  Coverage   86.15%   86.15%           
=======================================
  Files          83       83           
  Lines       11475    11475           
  Branches     1636     1636           
=======================================
  Hits         9886     9886           
  Misses       1238     1238           
  Partials      351      351           

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@soininen
soininen merged commit 2d50c73 into master Aug 11, 2026
17 checks passed
@soininen
soininen deleted the toolbox_3335_fix_definition_group_updates branch August 11, 2026 08:01
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.

Crash when trying to open Spine database editor

1 participant