-
Notifications
You must be signed in to change notification settings - Fork 484
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
Remove use of JsZip #5167
Conversation
@@ -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) { |
There was a problem hiding this comment.
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.
Removed downloadYaml, as the backend API does not work and this is legacy UI |
@mantis-toboggan-md Updated following merge of dependabot PR |
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.