Skip to content

Conversation

@StephenHulme
Copy link
Contributor

@StephenHulme StephenHulme commented Jan 23, 2026

This refactoring was instrumental in and required for #5486

Changes proposed in this pull request

  • Rename data release timings variables to clearly indicate how they are used

Instructions for Reviewers

[All PRs] - Confirm PR template filled
[Feature Branches] - Review code
[Production Merges to main]
    - Check story numbers included
    - Check for debug code
    - Check version

Copy link
Contributor

@harrietc52 harrietc52 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, just 1 minor comment I think - feel free to ignore.

validates :data_release_timing, inclusion: { in: DATA_RELEASE_TIMINGS_FOR_OPEN_RELEASE },
if: :data_release_timing_must_be_open?
validates :data_release_timing, inclusion: { in: [DATA_RELEASE_TIMING_NEVER] },
if: :data_release_timing_must_be_never?
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could be worth adding some simple tests for this validation

Copy link
Contributor Author

@StephenHulme StephenHulme Jan 26, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the review 🙂

Validation tests can be found in study_spec.rb - no changes have been made, proving that the existing functionality is untouched.

@codecov
Copy link

codecov bot commented Jan 26, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 87.38%. Comparing base (1ae30a8) to head (c1ce45e).
⚠️ Report is 4 commits behind head on develop.

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #5491      +/-   ##
===========================================
+ Coverage    87.33%   87.38%   +0.04%     
===========================================
  Files         1457     1457              
  Lines        32701    32703       +2     
  Branches      3422     3422              
===========================================
+ Hits         28561    28577      +16     
+ Misses        4125     4111      -14     
  Partials        15       15              

☔ View full report in Codecov by Sentry.
📢 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.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@StephenHulme StephenHulme merged commit ed4701c into develop Jan 27, 2026
28 checks passed
@StephenHulme StephenHulme deleted the Y25-286-refactor-data-release-timings branch January 27, 2026 13:27
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.

3 participants