Load users asynchronously instead of preloading (also in Cocoon dropdowns)
Merge request reports
Activity
added difficultymedium priolow statusplanned typeimprovement labels
removed statusplanned label
- Resolved by Martin Mladenov
added 12 commits
-
4823a26c...d7a6a991 - 10 commits from branch
development
- f2eba6ba - Merge branch 'development' into 397-add-ldap-search-to-cocoon-dropdowns
- 28e39f5a - Move LDAP JS to a .js file
-
4823a26c...d7a6a991 - 10 commits from branch
-
Add a user search endpoint
- Handle diacritics (e.g. ü, å, etc.)
- Make searching dynamic (i.e. do not preload users)
- Add an optional list of preferred users to show at the top (to preserve functionality)
-
Maybe try to preload the selected user
- alternatively, load that user when initialising the component
- Add an optional list of allowed user ids
- Be careful who can access the user search endpoint
Edited by Martin Mladenov-
Add a user search endpoint
- Resolved by Martin Mladenov
We should make searching case-insensitive and accent-insensitive (e.g. 'mul' should match 'Müller').
Based on some quick tests on staging, I think that in mariadb the default collation of the first and last name columns handles this.
The default collation on sqlite is not accent-insensitive so I cannot yet test this with the user search endpoint. After deploying this feature to staging, we should check whether this works as expected.
added 9 commits
- 1b5b6419 - Add ability to show certain users at the top
- ffb75af2 - Add endpoint to find users by id
- 47f47453 - Improve js
- 3f57f76d - Fix search
- c616c62c - Add route for searchg
- 4ae58a67 - Load preferred users on click
- 60c167a2 - Simplify selectize call
- 5d287835 - Update user selection dropdown usages
- ef112f99 - Move JS to a file
Toggle commit list- Resolved by Martin Mladenov
As a side effect, all users can be selected everywhere. For example, previously only staff members could be selected as responsible users for thesis projects and themes. Now any user can be added, including students and external users. Is this fine or should there be filters in some places?
added 12 commits
- b0f8f5cc - Fix error when there is one preferred user
- 2a5aa078 - Reduce code duplication
- fa0e2c92 - Add ability to pre-select a user
- 5bcced03 - Improve code style
- a8be321b - Make user dropdown work with cocoons
- d587504d - Preserve the selected user when using browser navigation buttons
- 381df11e - Replace let with var to allow redeclaration without errors in the console
- 64cfd28f - Remove unused partial
- f7395684 - Remove duplicated partial
- 25ee3c7d - Use user dropdown component where possible
- b5ea6b83 - Remove unused code
- d3dbb6b7 - Rename preferred to preferred_ids and selected to selected_id
Toggle commit list- Resolved by Anna Kalandadze
added 2 commits
- Resolved by Martin Mladenov
- Resolved by Martin Mladenov
TODO: Add a "Loading..." label while initialising the selected user when the page first loads
added 1 commit
- 77d558a4 - Add "Loading" text when initialising dropdown
added 21 commits
-
77d558a4...ae8769e1 - 16 commits from branch
development
- 880e7391 - Add validation to block users who are not staff members from being added as associated users
- c30c38e0 - Add validation to block users who are not staff members from being added to research groups
- 7c239596 - Use user dropdown to select researchers
- 6b64b1a0 - Merge branch 'development' into 397-add-ldap-search-to-cocoon-dropdowns
- 7f49cc8f - Make a sacrifice to the linter gods
Toggle commit list-
77d558a4...ae8769e1 - 16 commits from branch
requested review from @akalandadze
added 20 commits
-
576128c9...e011a584 - 18 commits from branch
development
- 093bf188 - Merge branch 'development' into 397-add-ldap-search-to-cocoon-dropdowns
- a9070ef9 - Revert "Add validation to block users who are not staff members from being...
-
576128c9...e011a584 - 18 commits from branch
- Resolved by Martin Mladenov
mentioned in commit 633f0cbe