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

feat: Finished csv import scripts [PT-188117054] #12

Merged
merged 2 commits into from
Sep 6, 2024

Conversation

dougmartin
Copy link
Member

No description provided.

Copy link
Member

@pjanik pjanik left a comment

Choose a reason for hiding this comment

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

It looks great. 👍

The only thing we need to change is the CopyPlugin. I don't think we can use it these days, as it doesn't work with the new release script and generally it's not the best approach compared to assets loader (caching, etc.).

We should replace it with an assets loader that will generate a URL. I'm pretty sure the default limit for inlining is smaller than the size of this file, but we can also explicitly set this path to use the asset/resource type.

We can also merge this PR, and I can do it myself later - whichever you prefer.

The copy-webpack-plugin was added in the initial commit to copy the values.json from the public folder.  Instead the values.json file is imported into the code but webpack is configured to return the filename instead of the data for the file so that we can call fetch with the filename.
Copy link
Member

@pjanik pjanik left a comment

Choose a reason for hiding this comment

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

Updates look good, thanks.

@pjanik pjanik merged commit 054a168 into main Sep 6, 2024
5 checks passed
@pjanik pjanik deleted the 188067139-finish-data-import-scripts branch September 6, 2024 11:47
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.

2 participants