Skip to content

Conversation

@pkfec
Copy link
Contributor

@pkfec pkfec commented Jan 22, 2026

Summary (required)

This PR adds a cron job that publishes and unpublishes rulemakings in the OpenSearch service

  1. refresh_most_recent_rulemakings runs every minute (this interval can be adjusted; it’s currently set to two minutes for testing). It checks for recently updated rulemakings, processes them, and sends a detailed message to the bots Slack channel.
  2. send_alert_daily_modified_rulemakings runs at the end of the day and sends a summary of updated rulemakings. This task is included for testing purposes and may not be needed long term; we can revisit and remove it later.

Required reviewers

2 or more developers

Impacted areas of the application

rulemaking/search/ api

How to test

@pkfec pkfec self-assigned this Jan 22, 2026
@pkfec pkfec linked an issue Jan 22, 2026 that may be closed by this pull request
3 tasks
@codecov
Copy link

codecov bot commented Jan 22, 2026

Codecov Report

❌ Patch coverage is 4.10959% with 70 lines in your changes missing coverage. Please review.
✅ Project coverage is 86.46%. Comparing base (6c6e57b) to head (4bd7528).

Files with missing lines Patch % Lines
webservices/tasks/legal_docs.py 0.00% 54 Missing ⚠️
webservices/legal/rulemaking_docs/rulemaking.py 11.11% 16 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #6473      +/-   ##
===========================================
- Coverage    86.99%   86.46%   -0.53%     
===========================================
  Files           98       98              
  Lines        10048    10114      +66     
===========================================
+ Hits          8741     8745       +4     
- Misses        1307     1369      +62     

☔ 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.

@pkfec pkfec moved this to 👀 Ready in Website project Jan 22, 2026
@pkfec pkfec force-pushed the feature/6436-add-celery-task-to-publish-rulemakings branch from aa2da29 to 4bd7528 Compare January 22, 2026 23:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: 👀 Ready

Development

Successfully merging this pull request may close these issues.

Add a celery task to upload rulemakings to elasticsearch

2 participants