-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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 user search problem happening after user deletion #36431
Conversation
Codecov Report
@@ Coverage Diff @@
## master #36431 +/- ##
=========================================
Coverage 65.16% 65.16%
Complexity 19802 19802
=========================================
Files 1271 1271
Lines 74760 74760
Branches 1309 1309
=========================================
Hits 48719 48719
Misses 25655 25655
Partials 386 386
Continue to review full report at Codecov.
|
I'm worried about the deleted comment... could you check / investigate it? |
@jvillafanez I agree about your concern too, I spent lots of time to debug and understand the code. But I could not find the purpose of removing I will investigate if this issue is a regression. It may help. |
Just trying to give some ideas:
You could also try with "git blame" to know when the comment was added. |
@jvillafanez I investigated the code with more details. The deleted comment belongs to the following commit 478393e which looks like merged 6 years ago with the re-write of the user management page. Also, I tried the issue with older oc versions, the issue is not a regression, probably its scenario is reproducible from the beginning. I made several tests with consecutive adding-removing-searching operations on the PR's branch and could not see any unexpected behavior. In terms of code, if there is a hidden |
One last thing: double-check the generated html code make sense, without any wrong element added (you can use the browser's developer tools) |
The HTML code looks fine. Also, no error log in the browser console. @enbrnz before merging this one, I would like to get your approval that the problem has been solved and that there are no visible problems. |
5a62fd2
to
676f993
Compare
Hi, sorry for the delay. So I created a patch from this PR and applied it to a docker-compose setup. |
Description
In the web-UI user management page, When user make a search, if the search result has only one entry and the listed user is deleted from the search result page, the search does not work anymore until refreshing the page.
Reason for the problem, Js search function uses a hidden column to clone new rows from it. In our scenario, after user deletion, this row also being deleted. As a result, search functionality can not add a new row to the user list.
Related Issue
Motivation and Context
Fixing bugs.
How Has This Been Tested?
Manually with the following steps:
This problem now fixed.
Screenshots (if appropriate):
Types of changes
Checklist: