Skip to content

[TBD] Reference PR for Project ENTER - #11803

Draft
cslzchen wants to merge 20 commits into
developfrom
feature/project-enter
Draft

[TBD] Reference PR for Project ENTER#11803
cslzchen wants to merge 20 commits into
developfrom
feature/project-enter

Conversation

@cslzchen

@cslzchen cslzchen commented Jul 8, 2026

Copy link
Copy Markdown
Collaborator

Reference PR

Ostap-Zherebetskyi and others added 20 commits July 8, 2026 13:31
* Add blank notification type and template
* Respond to CR

---------

Co-authored-by: Longze Chen <cslzchen@gmail.com>
…TER - Part 1 (#11805)

* Implement notification campaign models and email handling
  - Add NotificationCampaign and NotificationCampaignRecipient models.
  - Introduce notification campaign status management.
  - Update OSFUser model to track received notification campaigns.
  - Enhance email templates for notification campaigns.
  - Create migration for new models and relationships.
* Remove notification settings table from blank email template
* Code clean-up and fixes

---------

Co-authored-by: Longze Chen <cslzchen@gmail.com>
…min Page (#11808)

* Add Notification Campaign management features including forms, views, and templates
* Add support for restarting failed notification campaigns and update progress metrics
* Prevent updating recipient count on campaign restart
…logging (#11814)

* Add developer reminder status and update notification campaign recipient status choices
* Handle campaign failure status and log execution time window in send_campaign_batch
* Add Sentry logging for campaign retries and execution time window
* Improve campaign logging

---------

Co-authored-by: Longze Chen <cslzchen@gmail.com>
…nd spam status (#11815)

* sort recipients by activity priority
* simplify filter; send campaign email tasks in 3 phases
* add global values to defaults and admin campaign metadata fields
* Add recipients list and preview views for notification campaigns
…nts; rework campaign workflow (#11825)

* Refactor notification campaign logic: create recipients in batches, add run_id to models, and improve filtering by activity score
* Update notification campaign logic
* Update sendgrid bulk
* Handle email sending errors in send_campaign_batch: log exceptions and update recipient statuses
* Improve error logging

---------

Co-authored-by: antkryt <ant.krytskyi@gmail.com>
* unit tests on ordering and filtering
* fix recipients ordering
* Add sendgrid_bulk field to NotificationCampaignCreateForm and handle errors in context and filters; update notification campaign views and templates for improved messaging and recipient handling
* Add sendgrid_bulk field to NotificationCampaignCreateForm and update notification campaign processing logic
* Fix campaign recipient query to filter only by FAILED status when restarting failed campaigns
* Refactor notification campaign recipient status handling and improve message display in templates
* Add functionality to restart stuck notification campaigns
* Add support for restarting stuck notification campaigns
…enter

Fixed conflicts for imports in osf/models/user.py
* Add unit tests for notification campaign flow and admin (part 1)
…#11836)

* Add time window field to NotificationCampaignCreateForm and update templates for campaign details and recipients
* Add cancel functionality to NotificationCampaign and update UI for campaign management
* Refactor process_campaign_retry to handle cancelled campaigns and improve retry logic
* Add run_id check to process_campaign_retry to prevent incorrect retries
* Fix unit tests
* Update notification campaign permissions in views and tests
* fix test_start_rejects_when_another_campaign_is_running
* Update notification campaign flow and admin unit tests
)

* Create confirmed test user with fake activity points
* Respond to CR with improvements
…rt 2 (#11840)

* Update command to create more users with different status and options
…ers to use a dynamic query builder + Bug fixes (#11842)

* Refactor notification campaign filters to use a dynamic query builder and streamline filter handling in the UI
* Refactor campaign recipient filters to use Q objects and dynamic query building
* Enhance notification campaign creation UI with improved group structure and styling
* Remove copy
* Refactor initial state handling in filter mode to improve readability
* Add manual filter validation and improve filter display in notification campaigns
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