Skip to content

Make feature create/delete undoable actions - #319

Merged
TeunHuijben merged 8 commits into
mainfrom
feature_actions
Nov 24, 2026
Merged

TeunHuijben merged 8 commits into
mainfrom
feature_actions

Conversation

@TeunHuijben

Copy link
Copy Markdown
Collaborator

Creating or deleting a feature (e.g. a group in napari-track-edit) used to bypass the action system, so it could not be undone, and deleting a group lost its values for good.

  • New basic actions AddFeature / DeleteFeature. Delete saves the column's values (only non-default ones, soft-deleted nodes included), so undo restores them.
  • New user actions UserAddFeature / UserDeleteFeature, which add the change to the undo history.
  • Node features only; edge features raise NotImplementedError.
  • Refused: adding an existing key; deleting a core key (time, position, track ids, mask, solution), an annotator-owned key, or a feature with derived features.
  • enable_features / disable_features are unchanged and not added to the history.

@codecov

codecov Bot commented Oct 29, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 98.71795% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 94.17%. Comparing base (78be5c5) to head (d0dbcc1).
⚠️ Report is 9 commits behind head on main.

Files with missing lines Patch % Lines
src/funtracks/actions/add_delete_feature.py 98.21% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #319      +/-   ##
==========================================
+ Coverage   94.08%   94.17%   +0.09%     
==========================================
  Files          64       66       +2     
  Lines        3886     3964      +78     
==========================================
+ Hits         3656     3733      +77     
- Misses        230      231       +1     

☔ 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.

@TeunHuijben
TeunHuijben merged commit fa832de into main Nov 24, 2026
10 checks passed
@TeunHuijben
TeunHuijben deleted the feature_actions branch November 24, 2026 22:45
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.

1 participant