Skip to content

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

Merged
reemi1510 merged 10 commits into
developfrom
origin/feature/nrmi-11-banner-usability-enhancements-admin-messages-to-end-based-on-set-stop-datetime
Apr 21, 2026
Merged

NRMI-11 Banner usability enhancements - Admin - messages to end based on set: stop datetime#1242
reemi1510 merged 10 commits into
developfrom
origin/feature/nrmi-11-banner-usability-enhancements-admin-messages-to-end-based-on-set-stop-datetime

Conversation

@mo-zag

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

Copy link
Copy Markdown
Contributor

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

ccs-snyk commented Mar 5, 2026

Copy link
Copy Markdown

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

Status Scan Engine 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 and others added 8 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
…nhancements-admin-messages-to-end-based-on-set-stop-datetime
…nhancements-admin-messages-to-end-based-on-set-stop-datetime
…om:Crown-Commercial-Service/DataSubmissionServiceAPI into origin/feature/nrmi-11-banner-usability-enhancements-admin-messages-to-end-based-on-set-stop-datetime
…nhancements-admin-messages-to-end-based-on-set-stop-datetime
@reemi1510 reemi1510 merged commit 2bccd5c into develop Apr 21, 2026
8 checks passed
@reemi1510 reemi1510 deleted the origin/feature/nrmi-11-banner-usability-enhancements-admin-messages-to-end-based-on-set-stop-datetime branch April 21, 2026 10:36
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