Skip to content

Conversation

@soininen
Copy link
Contributor

@soininen soininen commented Oct 21, 2025

This fixes Tracebacks from Database editor when entities and/or alternatives were selected for editing and user updated a row in one of the stacked tables.

The Traceback itself was pretty harmless and just prevented the emission of dataChanged which sometimes left old values in the UI.

No associated issue.

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 & isort
  • Unit tests pass

Not all single model's rows are always shown in compound model.
This is especially true when the single models are filtered by
e.g entity class or alternative selections.
Still, we relied on this assumption when resolving changed rows
for emitting dataChanged resulting in Tracebacks and non-updated
visuals.
@codecov
Copy link

codecov bot commented Oct 21, 2025

Codecov Report

❌ Patch coverage is 91.66667% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 68.82%. Comparing base (fdbec39) to head (83ffeb8).
⚠️ Report is 2 commits behind head on master.

Files with missing lines Patch % Lines
...toolbox/spine_db_editor/mvcmodels/single_models.py 66.66% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##           master    #3198   +/-   ##
=======================================
  Coverage   68.82%   68.82%           
=======================================
  Files         198      198           
  Lines       38326    38336   +10     
  Branches     4592     4595    +3     
=======================================
+ Hits        26376    26386   +10     
  Misses      10642    10642           
  Partials     1308     1308           

☔ View full report in Codecov by Sentry.
📢 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 0f5c569 into master Oct 21, 2025
19 checks passed
@soininen soininen deleted the fix_missing_items_in_inverted_row_map branch October 21, 2025 11:20
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