stable

Clone or download

Read-only

refactor: lib to query GitLab

Part of story #26799 associate a Tuleap project and a GitLab group No functional change expected in the wizard to link a Tuleap project to a GitLab group. Notes: The "pagination" part belongs in the lib but was not extracted from now. It can be done later. The lib is in Git plugin because the Project integration frontend lives there. The retrieval of the GitLab projects should also use the lib but was not changed; it can be done later. Change-Id: Icbd8f6b3409aedaa0c093dd1ec8751ccf8a7f8da

Modified Files

Name
M lib/frontend/fetch-result/src/AllGetter.test.ts +5 −1 Go to diff View file
M lib/frontend/fetch-result/src/AllGetter.ts +7 −2 Go to diff View file
R plugins/gitlab/scripts/group-link-wizard/src/api/FetchInterface.ts Go to diff View file
M lib/frontend/fetch-result/src/JSONParseFault.ts +1 −4 Go to diff View file
M lib/frontend/fetch-result/src/NetworkFault.ts +1 −4 Go to diff View file
M lib/frontend/fetch-result/src/ResponseRetriever.test.ts +8 −51 Go to diff View file
M lib/frontend/fetch-result/src/ResponseRetriever.ts +15 −51 Go to diff View file
A lib/frontend/fetch-result/src/RestlerErrorHandler.test.ts +81 −0 Go to diff View file
A lib/frontend/fetch-result/src/RestlerErrorHandler.ts +59 −0 Go to diff View file
M lib/frontend/fetch-result/src/ResultFetcher.test.ts +2 −1 Go to diff View file
M lib/frontend/fetch-result/src/ResultFetcher.ts +14 −4 Go to diff View file
M lib/frontend/fetch-result/src/constants.ts +1 −8 Go to diff View file
M lib/frontend/fetch-result/src/main.ts +5 −3 Go to diff View file
A plugins/git/scripts/lib/gitlab-api-querier/.gitignore +1 −0 Go to diff View file
A plugins/git/scripts/lib/gitlab-api-querier/README.md +15 −0 Go to diff View file
A plugins/git/scripts/lib/gitlab-api-querier/package.json +31 −0 Go to diff View file
A plugins/git/scripts/lib/gitlab-api-querier/pnpm-lock.yaml +21 −0 Go to diff View file
A plugins/git/scripts/lib/gitlab-api-querier/src/GitLabAPIFault.test.ts +43 −0 Go to diff View file
R plugins/gitlab/scripts/group-link-wizard/src/api/GitlabApiFault.ts Go to diff View file
A plugins/git/scripts/lib/gitlab-api-querier/src/GitLabErrorHandler.test.ts +53 −0 Go to diff View file
R plugins/gitlab/scripts/group-link-wizard/src/api/GitLabCredentialsFault.ts Go to diff View file
A plugins/git/scripts/lib/gitlab-api-querier/src/Querier.test.ts +58 −0 Go to diff View file
A plugins/git/scripts/lib/gitlab-api-querier/src/Querier.ts +39 −0 Go to diff View file
A plugins/git/scripts/lib/gitlab-api-querier/src/RetrieveResponseStub.ts +40 −0 Go to diff View file
A plugins/git/scripts/lib/gitlab-api-querier/src/main.ts +39 −0 Go to diff View file
A plugins/git/scripts/lib/gitlab-api-querier/tsconfig.json +8 −0 Go to diff View file
A plugins/git/scripts/lib/gitlab-api-querier/vite.config.ts +42 −0 Go to diff View file
M plugins/git/tsconfig.json +6 −2 Go to diff View file
M plugins/gitlab/scripts/group-link-wizard/package.json +1 −0 Go to diff View file
M plugins/gitlab/scripts/group-link-wizard/pnpm-lock.yaml +2 −0 Go to diff View file
M plugins/gitlab/scripts/group-link-wizard/src/api/gitlab-api-querier.test.ts +61 −91 Go to diff View file
M plugins/gitlab/scripts/group-link-wizard/src/api/gitlab-api-querier.ts +10 −45 Go to diff View file
M plugins/gitlab/scripts/group-link-wizard/src/components/PaneGitlabServer.vue +3 −2 Go to diff View file
D plugins/gitlab/scripts/group-link-wizard/src/tests/stubs/FetchInterfaceStub.ts +0 −61 Go to diff View file
M plugins/gitlab/scripts/group-link-wizard/vite.config.ts +3 −0 Go to diff View file