Skip to content
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

Update SiteNow v1 to consume Hawk Alerts from new Emergency endpoint #7688

Open
Tracked by #7655 ...
briand44 opened this issue May 15, 2024 · 2 comments
Open
Tracked by #7655 ...

Update SiteNow v1 to consume Hawk Alerts from new Emergency endpoint #7688

briand44 opened this issue May 15, 2024 · 2 comments

Comments

@briand44
Copy link
Contributor

briand44 commented May 15, 2024

Story

As a SiteNow v1 service owner, we would like the SiteNow v1 service to be able to consume Hawk Alerts from the new Emergency endpoint so that our visitors can be notified of any active Hawk Alerts.

Additional Info

#7550 (comment)

Removed the /api/active.xml endpoint option.
We couldn't determine significant usage for this endpoint. Consumers are encouraged to switch to the JSON format.
Changed the /api/active.json endpoint to /api/active
It is still JSON but without the file extension. The endpoint won't resolve with .json appended.

The other changes are in order to follow the JSON 1.0 specification:
The outside wrapper uihphawkalert becomes data.
The inside wrapper hawkalert becomes attributes.
date changes from UNIX timestamp to ISO-8601 YYYY-MM-DDThh:mm:ssTZD
more_info_link has been updated to output the website URL with https:// prefix.
Public Safety would like to deprecate use of e.uiowa.edu going forward.

We don't want to deploy this until launch of the new endpoint.

Looks like the uiowa_alerts module is only in the custom profile and only enabled on the Hawktools website.

@joewhitsitt
Copy link
Contributor

Grooming convo:

  • Again pay attention to date handling. Date might not even be involved with the output/function of this.
  • Test against hawktools but we want a synced copy across all applications. Alan doesn't like that this involves v1 Hawktools.
  • Wait to deploy feature branches similar to the signage ones.
  • Medium mainly because of v1.

@joewhitsitt joewhitsitt self-assigned this May 24, 2024
@joewhitsitt
Copy link
Contributor

joewhitsitt commented May 24, 2024

Started a update_uiowa_alerts branch on uiowa701 (Hawktools), 702, 703. Had to add momenjs timezone to modify existing moment date handling and do the timezone offset.

Screenshot 2024-05-24 at 12 15 39 PM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants