FIX: use paging during options generation in edit mode
Summary
Implementation for https://gitlab.com/linkahead/linkahead-webui/-/issues/216
Focus
- Queries that retrieve entities that are candiates for drop down use paging.
- A Count Query identifies whether more enties would be available. If so, an option to enter an ID manually is included (a button ) and the dropdown shows a warning that it does not include all entities.
Test Environment
- manually test the behavior
Check List for the Author
Please, prepare your MR for a review. Be sure to write a summary and a focus and create gitlab comments for the reviewer. They should guide the reviewer through the changes, explain your changes and also point out open questions. For further good practices have a look at our review guidelines
-
All automated tests pass -
Reference related issues -
Up-to-date CHANGELOG.md (or not necessary) -
Up-to-date JSON schema (or not necessary) -
Appropriate user and developer documentation (or not necessary) - How do I use the software? Assume "stupid" users.
- How do I develop or debug the software? Assume novice developers.
-
Annotations in code (Gitlab comments) - Intent of new code
- Problems with old code
- Why this implementation?
Check List for the Reviewer
-
I understand the intent of this MR -
All automated tests pass -
Up-to-date CHANGELOG.md (or not necessary) -
Appropriate user and developer documentation (or not necessary) -
The test environment setup works and the intended behavior is reproducible in the test environment -
In-code documentation and comments are up-to-date. -
Check: Are there specifications? Are they satisfied?
For further good practices have a look at our review guidelines.
Merge request reports
Activity
assigned to @henrik
mentioned in issue #318 (closed)
- Resolved by Florian Spreckelsen
- Resolved by Florian Spreckelsen
- Resolved by Florian Spreckelsen
requested review from @florian
added 6 commits
-
affb4a1f...7a372ef8 - 5 commits from branch
dev
- 78ff86b4 - Merge branch 'dev' into f-edit-mode-paging
-
affb4a1f...7a372ef8 - 5 commits from branch
added 2 commits
added 1 commit
- 78e126d7 - FIX: deal with async call and no preexisting reference
added 7 commits
-
67b763a9...19b5285c - 6 commits from branch
dev
- b3a15f5a - Merge branch 'dev' into f-edit-mode-paging
-
67b763a9...19b5285c - 6 commits from branch
added 1 commit
- 43cc5d97 - ENH: Better notification for overfull dropdown menu
- Resolved by Florian Spreckelsen
The above comments have been addressed, however, there is more:
- Entering an id manually doesn't work for me. I can switch to id entering by clicking on the pencil but after saving, the property has an empty value.
- Same for elements of lists of references: manually entered ids appear as empty values in list
- After clicking on the pencil to enter the id manually, there is no way of returning to the dropdown menu.
- Should we make this configurable? Introduce a
BUILD_MAX_EDIT_MODE_DROPDOWN_OPTIONS
variable that can be set by the user? Setting it to 0 or -1 could be equivalent to infty.
- Resolved by Florian Spreckelsen
added 2 commits
added 1 commit
- 757ba23f - FIX: Use correct file type for documentation
enabled an automatic merge when the pipeline for 757ba23f succeeds
mentioned in commit b2e0b797