Skip to content

fix(eic): regenerate soft-deleted compounds and samples on tolerance change - #214

Closed
Jack-Coutts wants to merge 6 commits into
fix/177-correct-integrated-areasfrom
fix/168-restore-regenerates-eics
Closed

Jack-Coutts wants to merge 6 commits into
fix/177-correct-integrated-areasfrom
fix/168-restore-regenerates-eics

Conversation

@Jack-Coutts

Copy link
Copy Markdown
Collaborator

Why

Restored compounds lose their EICs after a mass tolerance change.

Restore only flips the deleted flag, so items skipped by regeneration came back with no EICs or old-tolerance EICs. Regenerate and correct them too.

What changed

  • fix(eic): regenerate soft-deleted compounds and samples on tolerance change
  • fix(eic): refuse to restore samples whose EICs missed a tolerance change
  • fix(eic): refuse to restore compounds while an active sample is stale

Scope

Verification

  • uv run pytest: the full suite passes, except the offscreen-font test in tests/test_toolbar_pills.py, which also fails on main.
  • 5 of the 7 new tests fail with this PR's src/ reverted to its base (the others guard behaviour main already had).

Closes #168

…change

Restore only flips the deleted flag, so items skipped by regeneration came
back with no EICs or old-tolerance EICs. Regenerate and correct them too.

Refs #168
Regeneration skipped deleted samples with a missing CDF, so restoring one
exposed old-tolerance EICs. Flag such samples and refuse to restore them.

Refs #168
Restoring a compound exposed its old-tolerance EICs in any active sample
whose CDF was missing at the last tolerance change. Refuse such restores
from the recovery dialog and session import, before anything changes.

Refs #168
@Jack-Coutts

Copy link
Copy Markdown
Collaborator Author

Replaced by #306, which re-applies this fix onto main after the UI redesign.

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