Skip to content

Conversation

@soininen
Copy link
Contributor

@soininen soininen commented Dec 9, 2025

commit_id should not be null, but it may be. Better use PublicItem.is_committed() which is much more reliable.

Fixes #1901

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

The sorting depended on "commit_id" being non-null, which is usually
the case, but there seem to be databases where this doesn't hold.
In any case, it is better to rely on PublicItem.is_committed().

Re #1901
@soininen soininen force-pushed the 1901_fix_value_list_sorting branch from 271b03e to bc195a5 Compare December 9, 2025 09:03
@codecov
Copy link

codecov bot commented Dec 9, 2025

Codecov Report

❌ Patch coverage is 88.88889% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 70.02%. Comparing base (80a7b52) to head (bc195a5).
⚠️ Report is 2 commits behind head on master.

Files with missing lines Patch % Lines
...box/spine_db_editor/mvcmodels/tree_item_utility.py 88.88% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##           master    #3233   +/-   ##
=======================================
  Coverage   70.02%   70.02%           
=======================================
  Files         202      202           
  Lines       39080    39080           
  Branches     4725     4725           
=======================================
  Hits        27365    27365           
  Misses      10412    10412           
  Partials     1303     1303           

☔ 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 0dc2167 into master Dec 9, 2025
19 checks passed
@soininen soininen deleted the 1901_fix_value_list_sorting branch December 9, 2025 09:21
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.

Cannot add new value list members

2 participants