stable

Clone or download

Read-only

Use people picker for owner criterion

Part of story #27191 ease search on document owner When we search for documents owned by a user but we don't know exactly their id or their username, then we are stuck. This contribution lets the user choose a user via a user autocompleter. Since there is the autocompleter, the popover helper becomes outdated and not needed anymore. Only document owner are retruned by the select, no matter if the user is in active, suspended or destroyed state Change-Id: I9603eeb46ad347d6fdf163c740d0eea98e9c2259

Modified Files

Name
M lib/frontend/autocomplete-for-select2/src/autocomplete-for-select2.d.ts +5 −2 Go to diff View file
M lib/frontend/autocomplete-for-select2/src/autocomplete-for-select2.js +17 −15 Go to diff View file
M plugins/docman/include/Metadata/Owner/OwnerRepresentationForAutocomplete.php +2 −1 Go to diff View file
M plugins/docman/tests/unit/Metadata/Owner/OwnerRequestHandlerTest.php +2 −2 Go to diff View file
M plugins/document/package.json +3 −0 Go to diff View file
M plugins/document/pnpm-lock.yaml +10 −0 Go to diff View file
M plugins/document/scripts/document/api/rest-querier.ts +20 −0 Go to diff View file
M plugins/document/scripts/document/components/AdvancedSearch/Criteria/CriterionOwner.test.ts +22 −19 Go to diff View file
M plugins/document/scripts/document/components/AdvancedSearch/Criteria/CriterionOwner.vue +63 −51 Go to diff View file
M plugins/document/scripts/document/components/AdvancedSearch/Criteria/__snapshots__/CriterionOwner.test.ts.snap +18 −61 Go to diff View file
A plugins/document/scripts/document/helpers/owner/retrieve-selected-owner.test.ts +58 −0 Go to diff View file
A plugins/document/scripts/document/helpers/owner/retrieve-selected-owner.ts +38 −0 Go to diff View file
M plugins/document/scripts/document/po/fr_FR.po +0 −6 Go to diff View file
M plugins/document/scripts/document/po/pt_BR.po +0 −6 Go to diff View file