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

perf: simplify table selection-checkbox model #7367

Merged
merged 1 commit into from
Jul 29, 2022

Conversation

kulmann
Copy link
Contributor

@kulmann kulmann commented Jul 28, 2022

Description

The checkbox for selection in the ResourceTable had the selected
resources as model, which lead to the virtual dom of all checkboxes
being invalidated if the selection got changed at all (adding / removing
one item to/from the selection). Changed the checkbox model to only
reflect the selection state of the one resource it is about. With this
only the virtual dom of the checkboxes gets invlidated that were added
to or removed from the selection.

We still have the issue that the virtual dom of every single td and tr is invalidated (at least with Vue2), but at least for the checkboxes it's not for all rows anymore but only for the rows that were modified by the selection model change.

Related Issue

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Technical debt
  • Tests

Checklist:

  • Code changes
  • Unit tests added
  • Acceptance tests added
  • Documentation ticket raised:

@kulmann kulmann self-assigned this Jul 28, 2022
Copy link
Contributor

@AlexAndBear AlexAndBear left a comment

Choose a reason for hiding this comment

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

👍

@kulmann kulmann force-pushed the simplify-selection-checkbox-model branch from b53f23d to 43f9c82 Compare July 28, 2022 21:10
The checkbox for selection in the ResourceTable had the selected
resources as model, which lead to the virtual dom of all checkboxes
being invalidated if the selection got changed at all (adding / removing
one item to/from the selection). Changed the checkbox model to only
reflect the selection state of the one resource it is about. With this
only the virtual dom of the checkboxes gets invlidated that were added
to or removed from the selection.
@kulmann kulmann force-pushed the simplify-selection-checkbox-model branch from 43f9c82 to 49532dd Compare July 28, 2022 21:18
@ownclouders
Copy link
Contributor

Results for oCISSharingPerm2 https://drone.owncloud.com/owncloud/web/27152/65/1
💥 The acceptance tests pipeline failed. The build has been cancelled.

@sonarqubecloud
Copy link

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

51.4% 51.4% Coverage
1.4% 1.4% Duplication

@kulmann kulmann merged commit c5c6e4a into master Jul 29, 2022
@delete-merged-branch delete-merged-branch bot deleted the simplify-selection-checkbox-model branch July 29, 2022 04:06
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