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

fix(ui): repair rendering of AllUsersTableRow #5979

Merged
merged 1 commit into from
Jul 7, 2022

Conversation

sranka
Copy link
Contributor

@sranka sranka commented Jul 7, 2022

Closes #5978

Briefly describe your proposed changes:
The table row re-renders upon any change of the user structure.

What was the problem?
The row did not re-render when user's superAdmin status changed. It was caused by some relict from the past, which excluded superAdmin status from re-rendering. The rows were however completely replaced upon any change in 1.9.4, the buggy code was thus never effective. Cypress tests were hard to do with frequent useless replacements of rows in DOM. #5947 fixed it and ensured that row DOM elements are updated upon changes. As a side-effect, the forgotten wrong behavior of optimized row rendering becomes effective.

What was the solution?
Re-rerender row on change of the user, including superAdmin status.

@sranka sranka marked this pull request as ready for review July 7, 2022 07:54
@sranka sranka requested a review from k3yi0 July 7, 2022 07:55
@k3yi0 k3yi0 merged commit 22d67c5 into master Jul 7, 2022
@k3yi0 k3yi0 deleted the fix/super_admin_row_toggle branch July 7, 2022 08:17
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.

Chronograf Admin | All Users - user SuperAdmin toggle does not change its state upon clicking
2 participants