Skip to content

refactor: consolidate TrialStatus to shared.plan.constants#702

Draft
thomasrockhu-codecov wants to merge 1 commit intorefactor/phase-0-enums-bulkfrom
refactor/phase-0-enums-trialstatus
Draft

refactor: consolidate TrialStatus to shared.plan.constants#702
thomasrockhu-codecov wants to merge 1 commit intorefactor/phase-0-enums-bulkfrom
refactor/phase-0-enums-trialstatus

Conversation

@thomasrockhu-codecov
Copy link
Contributor

Summary

  • Removes duplicate TrialStatus from shared.django_apps.enums — it already existed in shared.plan.constants (used by the API)
  • Points 4 worker files to the canonical shared.plan.constants.TrialStatus import

Part 2/3 of Phase 0. Stacked on #701.

Test plan

  • All existing tests pass (import-only changes, no behavioral change)
  • ruff check passes

Made with Cursor

@sentry
Copy link

sentry bot commented Feb 8, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.23%. Comparing base (443fc35) to head (71301fe).
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@                       Coverage Diff                       @@
##           refactor/phase-0-enums-bulk     #702      +/-   ##
===============================================================
- Coverage                        92.23%   92.23%   -0.01%     
===============================================================
  Files                             1303     1302       -1     
  Lines                            47831    47708     -123     
  Branches                          1619     1619              
===============================================================
- Hits                             44119    44004     -115     
+ Misses                            3403     3395       -8     
  Partials                           309      309              
Flag Coverage Δ
sharedintegration 37.00% <ø> (+0.01%) ⬆️
sharedunit 84.88% <ø> (+0.02%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

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

@codecov-notifications
Copy link

codecov-notifications bot commented Feb 8, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ All tests successful. No failed tests found.

📢 Thoughts on this report? Let us know!

@codspeed-hq
Copy link

codspeed-hq bot commented Feb 8, 2026

CodSpeed Performance Report

Merging this PR will not alter performance

Comparing refactor/phase-0-enums-trialstatus (71301fe) with refactor/phase-0-enums-bulk (7549d0c)1

Summary

✅ 9 untouched benchmarks

Footnotes

  1. No successful run was found on refactor/phase-0-enums-bulk (443fc35) during the generation of this report, so aa5aa65 was used instead as the comparison base. There might be some changes unrelated to this pull request in this report.

TrialStatus already existed in shared.plan.constants (used by the API).
Remove the duplicate from shared.django_apps.enums and point worker
imports to the canonical location, eliminating redundancy.

Co-authored-by: Cursor <cursoragent@cursor.com>
@thomasrockhu-codecov thomasrockhu-codecov force-pushed the refactor/phase-0-enums-trialstatus branch from cc9a07b to 71301fe Compare February 8, 2026 10:16
@thomasrockhu-codecov thomasrockhu-codecov force-pushed the refactor/phase-0-enums-bulk branch from 7549d0c to 443fc35 Compare February 8, 2026 10:16
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