-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Rework of LDAP user import UI #17214
base: main
Are you sure you want to change the base?
Conversation
Sorting of results is not present in the new UI. The old behavior was completely broken and would clear the results (#14865). The implementation also only would have changed the order of the results returned by the LDAP server. It didn't actually sort by any field client-side or server-side. When researching server-side sorting, I found that it is an optional implementation and Microsoft AD doesn't seem to support it. For client-side sorting, it would still only sort the results returned which may only be a partial result depending on LDAP settings. So, there doesn't seem to be a good way to support sorting here. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LDAP tests are failing.
Fixed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As I've not any local setup to test, and tha'ts not a part I know well; I do not know if changes are OK.
I'm "afraid" changes from $_SESSSION
to $_REQUEST
(which we should avoid, but that's not the point) would really break things - for example.
This seems a bit huge change for a "UI rework".
Based on #16951. Clean up/twig migration for the LDAP user import UI.
Before:
![Selection_334](https://private-user-images.githubusercontent.com/17678637/335665010-dbee21ef-52d9-4897-8188-7a5a420b7899.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjEyNTkzMjIsIm5iZiI6MTcyMTI1OTAyMiwicGF0aCI6Ii8xNzY3ODYzNy8zMzU2NjUwMTAtZGJlZTIxZWYtNTJkOS00ODk3LTgxODgtN2E1YTQyMGI3ODk5LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MTclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzE3VDIzMzAyMlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTAzOGRlZjUzNjA0YjM1MDMwMmYzNzA5ZWZjMmRkNGM4OTc1MWYxZmI5NDJjNTE0YzFjMDUxYTFjNjUwZDlkYTYmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.4_qIsKEOGHHAu9KWorHFqKeuxRU6fS7iUjInuscfDao)
After:
![Selection_336](https://private-user-images.githubusercontent.com/17678637/335678858-007534ee-1bee-4252-8086-5021d482b1e4.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjEyNTkzMjIsIm5iZiI6MTcyMTI1OTAyMiwicGF0aCI6Ii8xNzY3ODYzNy8zMzU2Nzg4NTgtMDA3NTM0ZWUtMWJlZS00MjUyLTgwODYtNTAyMWQ0ODJiMWU0LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MTclMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzE3VDIzMzAyMlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTMzOWViMWUzNTRlYjE4MWNhODVlNmViY2QxOTIzYzE4N2Q5N2U5ODYyMTgzYzUzYTMyZGIyMjU5NDMzMDM0OGQmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.kvxnQ6CQj2YRyCerp1pKjNbHaRK0Qi8hx2tc8trUaEM)
Goal is to remove the use of temporary data in the session if possible and use less page reloads. Currently with this PR, switching between "expert" and "simple" views is seamless now.