Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix scenario alternatives not removed correctly #2834

Merged
merged 2 commits into from
Jun 12, 2024

Conversation

PiispaH
Copy link
Collaborator

@PiispaH PiispaH commented Jun 12, 2024

When deletions were made in a scenario so that the rank order changed, all the scenario alternatives were not removed. This caused an error when the updated scen alt with the new rank number was attempted to be added back to the db.

Fixes #2830

Checklist before merging

  • Unit tests have been added/updated accordingly
  • Code has been formatted by black
  • Unit tests pass
  • Use default requirements

When deletions were made in a scenario so that the rank order changed,
all the scenario alternatives were not removed. This caused an error
when the updated scen alt with the new rank number was attempted to
be added back to the db.

Re #2830
Copy link

codecov bot commented Jun 12, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 65.65%. Comparing base (71da77c) to head (7129742).
Report is 2 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #2834   +/-   ##
=======================================
  Coverage   65.65%   65.65%           
=======================================
  Files         187      187           
  Lines       36204    36204           
  Branches     6178     6178           
=======================================
  Hits        23768    23768           
  Misses      11161    11161           
  Partials     1275     1275           

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

@PiispaH PiispaH merged commit 2854432 into master Jun 12, 2024
20 checks passed
@PiispaH PiispaH deleted the issue_2830_removing_scen_alts_errors branch June 12, 2024 09:28
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.

Error on commit after removing alternative from scenario
1 participant