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

[backend] Fix inject status delete cascading #1447

Merged
merged 1 commit into from
Sep 16, 2024

Conversation

RomuDeuxfois
Copy link
Member

  • When I remove a simulation, some time I have this

image

error
: 
"could not execute statement [ERROR: null value in column \"status_inject\" of relation \"injects_tests_statuses\" violates not-null constraint\n  Detail: Failing row contains (6c732625-161b-4f47-b065-4988c22bb961, SUCCESS, [{\"execution_time\":\"2024-09-13T13:53:25.610690185Z\",\"execution_d..., 2024-09-13 13:53:25.618166, null, 2024-09-13 13:53:25.618205, 0, 1, 0, 1, null, 2024-09-13 13:44:23.053403, 2024-09-13 13:53:26.36281).\n  Where: SQL statement \"UPDATE ONLY \"public\".\"injects_tests_statuses\" SET \"status_inject\" = NULL WHERE $1::pg_catalog.text OPERATOR(pg_catalog.=) \"status_inject\"::pg_catalog.text\"] [delete from exercises where exercise_id=?]"
message
: 
"Error applying constraint status_inject\" of relation \"injects_tests_statuses"
type
: 
"ConstraintViolationException"

@github-actions github-actions bot added the filigran team use to identify PR from the Filigran team label Sep 16, 2024
Copy link

codecov bot commented Sep 16, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 31.35%. Comparing base (6e782f9) to head (16bd728).
Report is 2 commits behind head on master.

Additional details and impacted files
@@             Coverage Diff              @@
##             master    #1447      +/-   ##
============================================
+ Coverage     31.32%   31.35%   +0.03%     
- Complexity     1400     1402       +2     
============================================
  Files           526      527       +1     
  Lines         13693    13700       +7     
  Branches        814      814              
============================================
+ Hits           4289     4296       +7     
  Misses         9204     9204              
  Partials        200      200              

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

@RomuDeuxfois RomuDeuxfois merged commit 8d4f52a into master Sep 16, 2024
7 checks passed
@RomuDeuxfois RomuDeuxfois deleted the bugfix/inject_statut_delete branch September 16, 2024 09:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
filigran team use to identify PR from the Filigran team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants