Skip to content

Y26-209 - [PR] Disable MLWH Broadcasts for Sapio-managed Studies#5912

Open
yoldas wants to merge 6 commits into
developfrom
y26-209-disable-mlwh-broadcasts-for-sapio-managed-studies
Open

Y26-209 - [PR] Disable MLWH Broadcasts for Sapio-managed Studies#5912
yoldas wants to merge 6 commits into
developfrom
y26-209-disable-mlwh-broadcasts-for-sapio-managed-studies

Conversation

@yoldas

@yoldas yoldas commented Jul 9, 2026

Copy link
Copy Markdown
Member

Story: #5903

Changes proposed in this pull request

Replace methods provided by Warren gem with alternatives to filter out Sapio Study records.

  • Add broadcast_with_warren_except_sapio class method as an alternative to broadcast_with_warren.
  • Add broadcast_except_sapio method as an alternative to broadcast.
  • Update the Study model to use broadcast_with_warren_except_sapio, which automatically registers an after_commit callback.
  • Update rebroadcast to use broadcast_except_sapio; it is registered as an after_touch callback.

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

@yoldas yoldas linked an issue Jul 9, 2026 that may be closed by this pull request
1 task
@yoldas yoldas changed the title Y26 209 disable mlwh broadcasts for sapio managed studies Y26 - 209 - [PR] Disable MLWH Broadcasts for Sapio-managed Studies Jul 9, 2026
@yoldas yoldas changed the title Y26 - 209 - [PR] Disable MLWH Broadcasts for Sapio-managed Studies Y26-209 - [PR] Disable MLWH Broadcasts for Sapio-managed Studies Jul 9, 2026
@codecov

codecov Bot commented Jul 9, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 84.83%. Comparing base (6d117d5) to head (6004519).

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #5912      +/-   ##
===========================================
- Coverage    84.86%   84.83%   -0.04%     
===========================================
  Files         1492     1494       +2     
  Lines        33936    33954      +18     
  Branches      3613     3615       +2     
===========================================
+ Hits         28799    28804       +5     
- Misses        4286     4301      +15     
+ Partials       851      849       -2     
Flag Coverage Δ
javascript 76.31% <ø> (ø)
ruby 84.73% <100.00%> (+<0.01%) ⬆️

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

☔ View full report in Codecov by Harness.
📢 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.

@BenTopping BenTopping left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks

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.

Y26-209 - Disable MLWH Broadcasts for Sapio-managed Studies

2 participants