New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Alert for VVA and VBMS document list retrievals #8276
Alert for VVA and VBMS document list retrievals #8276
Conversation
* Remove shortcut to return null on nil manifest timestamp values that kept error messages from displaying * Add check for nil VBMS manifest timestamp References #6049
* Add check for stale manifests * Add warning alert for stale manifests
* Rename alert component * Correctly parse manifest time strings * Add test for _not quite_ so old manifest retrieval time Still needs copy from design on verbiage References #6049
Generated by 🚫 Danger |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Might also be good to update vbms.rb
in our initializers to have something like:
if ApplicationController.dependencies_faked?
VBMSService.manifest_vbms_fetched_at = Time.zone.now
VBMSService.manifest_vva_fetched_at = Time.zone.now
end
So that our default dev data is not to show the big red alert.
* Update the format of manifest retrieval timestamp timezones to offests rather than abbreviations so they can be parsed by moment on the front end
@mdbenjam Timezoning issues fixed! Timestamps still show the abbreviated timezone, but the timezone offset is also passed up to be parsed by moment for when time calculations are needed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, do you mind just changing the copy where Sneha and I commented?
* Add 'last retrieved' time to warning as well
Resolves #6049
Description
Added error in the document list for when the was never a response from VBMS or VVA. Added a similar warning for when the last response was older than the eFolder cache limit. Reimplemented retrieval timestamps.