Skip to content

AP-864: allow a temporary alert message on /location_requests/new - #59

Merged
anarchivist merged 2 commits into
mainfrom
AP-864
Aug 27, 2026
Merged

AP-864: allow a temporary alert message on /location_requests/new#59
anarchivist merged 2 commits into
mainfrom
AP-864

Conversation

@anarchivist

Copy link
Copy Markdown
Member

This will allow users of the Location Request tool to know that we're currently rate limited. The value is set using the FRAMEWORK_LOCATION_REQUESTS_ALERTS environment variable.

anarchivist and others added 2 commits August 27, 2026 13:25
@davezuckerman

Copy link
Copy Markdown
Contributor

Should we also disable the form submission if we're going to put the message up? The message displays and I see it's using the alert class but it doesn't stand out like it would in red or something. If I routinely ran these might skip over reading that.

@anarchivist

Copy link
Copy Markdown
Member Author

We could but I'm hoping we can get our rate limit lifted quickly. HathiTrust lookups aren't impacted so some submissions still work.

@anarchivist

Copy link
Copy Markdown
Member Author

Also, the .alert-danger class (i.e. red-colored alert) is already used by Rails for flash messages when there is an error, so this keeps it somewhat distinct.

Comment thread app/helpers/location_requests_alert_helper.rb

@danschmidt5189 danschmidt5189 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Nit on the present? check, but besides that this looks good. I defer to you on that (though lean towards including it…).

@anarchivist
anarchivist merged commit 8b32919 into main Aug 27, 2026
5 checks passed
@anarchivist
anarchivist deleted the AP-864 branch August 27, 2026 22:27
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.

4 participants