appsmith
appsmith copied to clipboard
[Task]: Persist dependency map of a page in backend
The dependencyMap consumes considerable computation on the frontend. We would like to persist that in the backend for every page in an application.
For details on the signature and payload of the api calls please refer this document
### Tasks
- [x] Add dependencyMap in the response of Consolidated view api. (GET /api/v1/consolidated-api/view)
- [x] Add dependencyMap in the response of Consolidated edit api. (GET /api/v1/consolidated-api/edit)
- [x] New API to update the dependency map of a page. (PUT /pages/{pageId}/dependencyMap)
- [x] Add dependency map is the response of get page api (edit mode) (GET /api/v1/pages/{pageId})
- [x] Add dependency map in the response of get page api (view mode) (GET /api/v1/pages/{pageId}/view)
- [x] Publish api changes - Copy the dependency map of a page from unpublished to published.
cc: @rahulbarwal @rajatagrawal
Adding more story points due to last movement review comment which requires change in the flow.