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

refactor(web2): refactored snapshot and wiregraph download #5655

Conversation

sfiorani
Copy link
Contributor

This PR refactors both the snapshot and the wiregraph download front and backend. In particular the following changes are made:

1. Creation of a generic modal that allows to perform operations on the entire list of PIDs present in the framework

This modal is composed by title, two paragraph for descriptions and hints, a scrollable panel that contains a list of checkboxes representing the PIDs, an anchor that allows selection/removal of all/filtered checkboxes, a counter for the selected boxes over the total, a modalFooter to add buttons or other items.

The aim of this modal is to perform operations that may involve the entire list of PIDs on the framework, or just a subset of them. In this way, the generic modal can just be extended wherever in the code to adapt it on the specific application.

2. Migration of the Snapshot Download modal on the generic one

The snapshot download modal is now an extension of the generic modal explained in point 1.

3. Refactor of the Wiregraph Download modal

The wiregraph download was a huge customization of the Snapshot Download modal. Now the wiregraph modal is an independent one, in the correct bundle.

Also the download request to the servlet was turned from a GET (using the native js code from the DownloadHelper class to a POST one including the token and the format in the body request.

This last change is in line with the purpose of suppressing the js native code from the DownloadHelper class.


From the user POV the experience is not changed, it' just a backend reorganization.

Screenshots:
image
image

@pierantoniomerlino pierantoniomerlino dismissed marcellorinaldo’s stale review January 29, 2025 08:35

This PR is blocking, so the review has been reassigned.

@pierantoniomerlino pierantoniomerlino merged commit 440713f into eclipse-kura:develop Jan 29, 2025
4 checks passed
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.

3 participants