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

Remove use of JsZip #5167

Merged
merged 3 commits into from
Sep 9, 2024
Merged

Remove use of JsZip #5167

merged 3 commits into from
Sep 9, 2024

Conversation

nwmac
Copy link
Member

@nwmac nwmac commented Sep 5, 2024

This PR removes the JsZip library.

This was only being used in 2 parts of the codebase - cis scans and pipelines - both of these are no longer shown in the UI.

For simplicity, the code has been removed and errors are logged - these code paths should not be reachable in the UI - we will prune this code in the future as part of a larger tidy-up effort.

@nwmac nwmac self-assigned this Sep 5, 2024
@@ -10,21 +9,6 @@ export function downloadFile(fileName, content, contentType = 'text/plain;charse
saveAs(blob, fileName);
}

// [{name: 'file1', file: 'data'}, {name: 'file2', file: 'data2'}]
export function generateZip(files) {
Copy link
Member

@mantis-toboggan-md mantis-toboggan-md Sep 5, 2024

Choose a reason for hiding this comment

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

This function is still being called in downloadResourceYaml. It should throw an error when a user attempts to bulk-download yamls but instead the request to fetch the yamls for download fail with a 500 error.

@nwmac
Copy link
Member Author

nwmac commented Sep 9, 2024

Removed downloadYaml, as the backend API does not work and this is legacy UI

@nwmac nwmac added this to the v2.10.0 milestone Sep 9, 2024
@nwmac
Copy link
Member Author

nwmac commented Sep 9, 2024

@mantis-toboggan-md Updated following merge of dependabot PR

@nwmac nwmac merged commit 2447073 into rancher:master Sep 9, 2024
2 checks passed
@nwmac nwmac deleted the remove-js-zip branch September 9, 2024 15:39
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