stable

Clone or download

Read-only

feat: Paginate search results

When your search result in documents return results, only 50 fist items are displayed and pagination buttons are displayed allowing you to browse every results. If user starts to search something, then pagination is reset to 0 (even if it is the same terms). The URL contains the offset, so that users can send the result page to their BFF. Note: You have to activate the feature beforehand: tuleap config-set feature_flag_search_for_documents_with_criteria 1 Part of story #24197: search for Documents with criteria Change-Id: Idd8c780d9e54afb2491c571c6bfc6b786dad9929

Modified Files

Name
M plugins/document/scripts/document/api/rest-querier.test.ts +43 −5 Go to diff View file
M plugins/document/scripts/document/api/rest-querier.ts +20 −6 Go to diff View file
M plugins/document/scripts/document/components/AdvancedSearch/SearchContainer.test.ts +42 −1 Go to diff View file
M plugins/document/scripts/document/components/AdvancedSearch/SearchContainer.vue +19 −8 Go to diff View file
A plugins/document/scripts/document/components/AdvancedSearch/SearchResult/SearchResultPagination.test.ts +170 −0 Go to diff View file
A plugins/document/scripts/document/components/AdvancedSearch/SearchResult/SearchResultPagination.vue +209 −0 Go to diff View file
M plugins/document/scripts/document/components/AdvancedSearch/SearchResult/SearchResultTable.test.ts +18 −4 Go to diff View file
M plugins/document/scripts/document/components/AdvancedSearch/SearchResult/SearchResultTable.vue +37 −18 Go to diff View file
M plugins/document/scripts/document/po/fr_FR.po +15 −0 Go to diff View file
M plugins/document/scripts/document/router/index.js +1 −0 Go to diff View file
M plugins/document/scripts/document/type.ts +9 −0 Go to diff View file