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 the UI to support the modified outages and entities API #37

Merged
merged 3 commits into from
Mar 13, 2022

Conversation

salcock
Copy link
Collaborator

@salcock salcock commented Mar 13, 2022

I've had to make some changes to the way that the outages/ and entities/ API methods work (specifically moving entityType and entityCode to be query parameters instead of in-path ones).

This PR updates any calls to these APIs in the UI code to use the new parameter structure.

It also includes a fix for a bug I found during testing where alert bands would not be drawn on the time series graphs if the outages/ query completed after the raw/signals/ query.

entityType and entityCode have been changed from in-path
parameters to query parameters, so we need to update our
API requests accordingly.

Obviously, this change needs to be deployed at the same time
that the corresponding API change is deployed.
Prior to this, we only drew snaplines if the time series data
arrived AFTER the event data. If the event data arrived later,
there was no trigger to re-draw the graph to include the
newly arrived event information.
As with the entities/ API update, make sure we roll this change
out at the same time as we roll out the corresponding API changes.
@salcock salcock merged commit 3faeee1 into main Mar 13, 2022
@salcock salcock deleted the update-api-urls branch March 13, 2022 22:45
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.

1 participant