You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## Related PR
This is a follow-up to
[6066](#6066).
## Issue
[b/489513837](https://buganizer.corp.google.com/issues/489513837)
## Description
This PR updates how the example content that populate the vis tools are
loaded. Beforehand, both the very old examples and the newly added
examples were loaded directly in the route, and so read from the
relevant files on each request. This functionality is now performed on
app started.
## Testing
All the same testing considerations from the original PR apply here.
This should not change anything visually. However, an important note
about testing is that you will now have to restart the server to effect
changes to the vis tools (due to the fact that the files are now loaded
once on server start).
## Notes
I've also updated the route level loading process to make a copy of the
server cached JSON, rather than loading it directly. This is because now
that this cache is shared, accidental updates of this anywhere
downstream would affect the cache for all subsequent requests.
0 commit comments