stable

Clone or download

Read-only

Closes request #30023: Remove automagic URI encoding in @tuleap/fetch-result

This contribution does 2 things: 1. it removes the automagic URI encoding that was done as it cannot always be correct 2. it reworks the API to make it hard to pass values unescaped values into an URI No functional changes expected. Change-Id: Ie04fe995fc01144c6fe835f0b0178ca865a3bccd

Modified Files

Name
M lib/frontend/fetch-result/README.md +18 −27 Go to diff View file
M lib/frontend/fetch-result/src/AllGetter.test.ts +2 −1 Go to diff View file
M lib/frontend/fetch-result/src/AllGetter.ts +3 −2 Go to diff View file
M lib/frontend/fetch-result/src/ResponseRetriever.test.ts +3 −2 Go to diff View file
M lib/frontend/fetch-result/src/ResponseRetriever.ts +11 −3 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 −13 Go to diff View file
M lib/frontend/fetch-result/src/auto-encoder.test.ts +8 −11 Go to diff View file
M lib/frontend/fetch-result/src/auto-encoder.ts +5 −2 Go to diff View file
M lib/frontend/fetch-result/src/main.ts +2 −0 Go to diff View file
A lib/frontend/fetch-result/src/uri-string-template.test.ts +49 −0 Go to diff View file
A lib/frontend/fetch-result/src/uri-string-template.ts +50 −0 Go to diff View file
M plugins/document/scripts/document/api/log-rest-querier.ts +2 −2 Go to diff View file
M plugins/document/scripts/document/api/rest-querier.ts +2 −2 Go to diff View file
M plugins/document/scripts/document/api/version-rest-querier.ts +7 −7 Go to diff View file
M plugins/git/scripts/artifact-create-branch-action/api/rest_querier.test.ts +4 −3 Go to diff View file
M plugins/git/scripts/artifact-create-branch-action/api/rest_querier.ts +4 −4 Go to diff View file
M plugins/git/scripts/lib/gitlab-api-querier/src/Querier.test.ts +2 −1 Go to diff View file
M plugins/git/scripts/lib/gitlab-api-querier/src/Querier.ts +2 −2 Go to diff View file
M plugins/gitlab/scripts/artifact-create-branch-action/src/api/rest-querier.test.ts +4 −3 Go to diff View file
M plugins/gitlab/scripts/artifact-create-branch-action/src/api/rest-querier.ts +4 −4 Go to diff View file
M plugins/gitlab/scripts/group-link-wizard/src/api/gitlab-api-querier.test.ts +9 −4 Go to diff View file
M plugins/gitlab/scripts/group-link-wizard/src/api/gitlab-api-querier.ts +3 −3 Go to diff View file
M plugins/gitlab/scripts/group-link-wizard/src/api/tuleap-api-querier.test.ts +2 −1 Go to diff View file
M plugins/gitlab/scripts/group-link-wizard/src/api/tuleap-api-querier.ts +2 −2 Go to diff View file
M plugins/gitlab/scripts/linked-group/src/EditConfigurationModal.test.ts +3 −2 Go to diff View file
M plugins/gitlab/scripts/linked-group/src/EditConfigurationModal.ts +2 −2 Go to diff View file
M plugins/gitlab/scripts/linked-group/src/SynchronizeButton.test.ts +2 −1 Go to diff View file
M plugins/gitlab/scripts/linked-group/src/SynchronizeButton.ts +2 −2 Go to diff View file
M plugins/gitlab/scripts/linked-group/src/TokenModal.test.ts +3 −2 Go to diff View file
M plugins/gitlab/scripts/linked-group/src/TokenModal.ts +5 −3 Go to diff View file
M plugins/gitlab/scripts/linked-group/src/UnlinkModal.test.ts +2 −1 Go to diff View file
M plugins/gitlab/scripts/linked-group/src/UnlinkModal.ts +2 −2 Go to diff View file
M plugins/onlyoffice/scripts/siteadmin/src/components/Servers/Restrict/ProjectAllower.test.ts +12 −17 Go to diff View file
M plugins/onlyoffice/scripts/siteadmin/src/components/Servers/Restrict/ProjectAllower.vue +2 −2 Go to diff View file
M plugins/pullrequest/scripts/pullrequests-app/src/app/comments/PullRequestCommentReplySaver.test.ts +4 −3 Go to diff View file
M plugins/pullrequest/scripts/pullrequests-app/src/app/comments/PullRequestCommentReplySaver.ts +10 −7 Go to diff View file
M plugins/pullrequest/scripts/pullrequests-app/src/app/comments/new-comment-form/NewInlineCommentSaver.test.ts +2 −1 Go to diff View file
M plugins/pullrequest/scripts/pullrequests-app/src/app/comments/new-comment-form/NewInlineCommentSaver.ts +2 −2 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/adapters/REST/TuleapAPIClient.test.ts +22 −14 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/src/adapters/REST/TuleapAPIClient.ts +12 −10 Go to diff View file
M src/scripts/switch-to/src/components/Body/Items/SearchResults/SearchResults.test.ts +8 −7 Go to diff View file
M src/scripts/switch-to/src/components/Body/Items/SearchResults/SearchResultsList.test.ts +2 −1 Go to diff View file
M src/scripts/switch-to/src/helpers/search-querier.test.ts +6 −5 Go to diff View file
M src/scripts/switch-to/src/helpers/search-querier.ts +2 −1 Go to diff View file
M src/scripts/switch-to/src/initiate-app.ts +2 −1 Go to diff View file
M src/scripts/switch-to/src/stores/fulltext.test.ts +20 −19 Go to diff View file
M src/scripts/switch-to/src/stores/fulltext.ts +4 −2 Go to diff View file
M src/scripts/switch-to/src/stores/type.ts +2 −1 Go to diff View file