-
Type: Improvement
-
Status: Resolved
-
Priority: Minor
-
Resolution: Fixed
-
Affects Version/s: 10.10
-
Fix Version/s: 10.10-HF22, 11.1, 2021.0
As follow up of NXP-27823, we need to clean up Task endpoint implementation.
- define a page provider that does the same thing than https://github.com/nuxeo/nuxeo/blob/10.10/addons/nuxeo-platform-document-routing/nuxeo-routing-core/src/main/java/org/nuxeo/ecm/platform/routing/core/impl/DocumentRoutingServiceImpl.java#L1331 except for workflowModelName (which is not feasable)
- turn Task Object into a paginable endpoint and use the above page provider def and adapt document model to Task object when returning results
introduce a nuxeo-tasks-provider element - make task listing widget use this element (dashboard, drawer menu and page)
for 10.10 in order to keep backward compat:- introduce a special http header
- depending on its value choose either old getTasks service method (not paginated but support workflowModelName param) or the new page provider def (paginated but no workflowModelName param support)
- make web ui use this header
- depends on
-
ELEMENTS-1126 Create a page provider for tasks pagination
- Resolved
-
NXP-28418 Add offset support to PaginableObject
- Resolved
- is related to
-
NXP-27823 Home page retrieves all tasks at once
- Resolved
- Is referenced in
(3 Is referenced in)