Skip to content

NRMI-11 Banner usability enhancements - Admin - messages to end based on set: stop datetime#1242

Open
mo-zag wants to merge 6 commits intodevelopfrom
origin/feature/nrmi-11-banner-usability-enhancements-admin-messages-to-end-based-on-set-stop-datetime
Open

NRMI-11 Banner usability enhancements - Admin - messages to end based on set: stop datetime#1242
mo-zag wants to merge 6 commits intodevelopfrom
origin/feature/nrmi-11-banner-usability-enhancements-admin-messages-to-end-based-on-set-stop-datetime

Conversation

@mo-zag
Copy link

@mo-zag mo-zag commented Mar 5, 2026

Description

Implemented scheduled expiration for notifications, allowing users to set a specific future timestamp (stop_datetime) at which the notification will automatically stop displaying.

Banner usability enhancements - Admin - messages to end based on set: stop datetime

What type of change is it?

[ ] New feature

How was the change tested?

I verified the notification creation flow through the Admin UI and validated the API endpoints using Postman to ensure full end-to-end functionality.

mo-zag added 2 commits March 5, 2026 02:03
Introduce a stop_datetime column and support for auto-unpublishing notifications. Adds a migration to add stop_datetime, updates the Notification model with a future-date validation, a currently_active scope, and expire_past_due! (uses update_all to mark past-due items unpublished). Admin controller and form now permit and edit stop_datetime (with a clear button), and the API controller calls Notification.expire_past_due! before serving notifications. Tests and factory updated to cover the new behavior.
@ccs-snyk
Copy link

ccs-snyk commented Mar 5, 2026

Snyk checks have passed. No issues have been found so far.

Status Scanner Critical High Medium Low Total (0)
Open Source Security 0 0 0 0 0 issues
Licenses 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

mo-zag added 4 commits March 5, 2026 10:06
…nhancements-admin-messages-to-end-based-on-set-stop-datetime
updated spacing really as the rails is not using 8.1, plus added one new filed in notification table stop_datetime
…nhancements-admin-messages-to-end-based-on-set-stop-datetime
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.

2 participants