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

Table selections are lost when switching pages #1651

Open
2 tasks done
nscuro opened this issue Jan 28, 2025 · 0 comments
Open
2 tasks done

Table selections are lost when switching pages #1651

nscuro opened this issue Jan 28, 2025 · 0 comments
Assignees
Labels
component/frontend defect Something isn't working p2 Non-critical bugs, and features that help organizations to identify and reduce risk size/S Small effort

Comments

@nscuro
Copy link
Member

nscuro commented Jan 28, 2025

Current Behavior

Selection of table elements is lost when switching pages.

Note, this also affects DT v4 and should be backported.

Steps to Reproduce

  1. Navigate to Administration -> Access Management -> Managed Users
  2. Click (+) on the Permissions list
  3. Select a permission on the first page of the table
  4. Switch to the second page of the table and select a permission from there
  5. Switch back to the first page
  6. Observe the first selection to be lost

Expected Behavior

Selections should not be lost when switching pages in a table.

Bootstrap Table has the maintainMetaData option to address this: https://examples.bootstrap-table.com/#options/maintain-meta-data.html

Hyades Version

0.6.0-SNAPSHOT

Repository Type

Hyades frontend

Browser

N/A

Checklist

@nscuro nscuro added component/frontend defect Something isn't working p2 Non-critical bugs, and features that help organizations to identify and reduce risk size/S Small effort labels Jan 28, 2025
@nscuro nscuro self-assigned this Jan 28, 2025
nscuro added a commit to DependencyTrack/hyades-frontend that referenced this issue Jan 29, 2025
Additionally, when multiple permissions are selected, applies them serially, rather than in parallel. This is necessary because the UI is updated based on the response to each update, which caused the UI to only show partial changes before.

There are many more places where a similar fix is needed.

Partially addresses DependencyTrack/hyades#1651

Signed-off-by: nscuro <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/frontend defect Something isn't working p2 Non-critical bugs, and features that help organizations to identify and reduce risk size/S Small effort
Projects
None yet
Development

No branches or pull requests

1 participant