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

move interop data outside of static (fixes #3132) #3205

Merged
merged 2 commits into from
Mar 15, 2023
Merged

Conversation

racheljay
Copy link
Contributor

Description

This PR moves the data that was previously in components/static/interop-data.json to a .js file outside of the static directory as outlined in the discussion for #3142.

Changes

components/static/interop-data.json was previously removed and this PR adds that data to components/interop-data.js. It is now imported directly into interop.js and accessed by fetchYearData().

Copy link
Contributor

@DanielRyanSmith DanielRyanSmith left a comment

Choose a reason for hiding this comment

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

Staging environment looks as expected. We should keep an eye on this during deployment to make sure this truly avoids the caching issue we encountered.
I'll let @KyleJu give final approvals since he discovered the root cause of the problem to begin with.

webapp/components/interop-data.js Outdated Show resolved Hide resolved
@KyleJu
Copy link
Collaborator

KyleJu commented Mar 14, 2023

@KyleJu
Copy link
Collaborator

KyleJu commented Mar 14, 2023

@racheljay Thank you for the PR!

@racheljay racheljay merged commit 6270af8 into main Mar 15, 2023
@racheljay racheljay deleted the move-interop-data branch March 15, 2023 00:10
@nt1m
Copy link
Member

nt1m commented Mar 15, 2023

Should we delete the JSON file to avoid confusion?

@racheljay
Copy link
Contributor Author

Should we delete the JSON file to avoid confusion?

Good point. I just created a pr (#3208) to fix this.

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