stable

Clone or download

Read-only

feat: Cache projects retrieval

How to test: - In your web container, enable the feature flag: `tuleap config-set feature_flag_create_artifact 1` - Edit an artifact with an artifact link field with the modal (kanban, TTM or planning view) - Click on the "Create a new artifact" button in the link selector dropdown. - Click on "Cancel" and then click on "Create a new artifact" again. - The list of projects is cached and is not fetched twice. part of story #28823 [modal] create artifact Change-Id: Ib4512b8bba23e6d3ab51d412b857bc3fb86a73cf

Modified Files

Name
A plugins/tracker/scripts/lib/artifact-modal/src/adapters/Memory/fields/link-field/ProjectsCache.test.ts +59 −0 Go to diff View file
A plugins/tracker/scripts/lib/artifact-modal/src/adapters/Memory/fields/link-field/ProjectsCache.ts +41 −0 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/tuleap-artifact-modal-controller.js +2 −1 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/tests/stubs/RetrieveProjectsStub.ts +17 −0 Go to diff View file