stable

Clone or download

Read-only

refactor: Use fetch-result to retrieve and save report

part of story #38263 Choose my own columns based on field name (numeric,text, dates) How to test: No functional change expected in cross-tracker search widgets. Why? fetch-result lets us be more flexible and expressive for fetch operations: we can clearly express that it can fail for various reasons. We are forced to deal with errors, and we can use Fault to represent erors instead of string error messages. This does not replace completely all fetch operations as it would be too big. The rest of the fetch operations will be done later. Change-Id: I83d016aa89b0603b1215ed03ea5edb749f29549f

Modified Files

Name
M plugins/crosstracker/scripts/cross-tracker/package.json +3 −0 Go to diff View file
M plugins/crosstracker/scripts/cross-tracker/pnpm-lock.yaml +13 −0 Go to diff View file
M plugins/crosstracker/scripts/cross-tracker/po/fr_FR.po +3 −0 Go to diff View file
M plugins/crosstracker/scripts/cross-tracker/po/pt_BR.po +3 −0 Go to diff View file
M plugins/crosstracker/scripts/cross-tracker/src/CrossTrackerWidget.test.ts +31 −19 Go to diff View file
M plugins/crosstracker/scripts/cross-tracker/src/CrossTrackerWidget.vue +18 −19 Go to diff View file
M plugins/crosstracker/scripts/cross-tracker/src/api/rest-querier.test.ts +142 −68 Go to diff View file
M plugins/crosstracker/scripts/cross-tracker/src/api/rest-querier.ts +73 −34 Go to diff View file
M plugins/crosstracker/scripts/cross-tracker/src/backend-cross-tracker-report.ts +5 −25 Go to diff View file
M plugins/crosstracker/scripts/cross-tracker/src/components/ArtifactTable.test.ts +39 −57 Go to diff View file
M plugins/crosstracker/scripts/cross-tracker/src/components/ArtifactTable.vue +31 −26 Go to diff View file
M plugins/crosstracker/scripts/cross-tracker/src/reading-mode/ReadingMode.test.ts +16 −15 Go to diff View file
M plugins/crosstracker/scripts/cross-tracker/src/reading-mode/ReadingMode.vue +16 −20 Go to diff View file
M plugins/crosstracker/scripts/cross-tracker/src/type.ts +15 −10 Go to diff View file
A plugins/crosstracker/scripts/cross-tracker/tests/stubs/TuleapAPIFaultStub.ts +27 −0 Go to diff View file
M plugins/crosstracker/scripts/cross-tracker/tsconfig.json +1 −1 Go to diff View file
M plugins/tracker/scripts/lib/rest-api-types/src/trackers.ts +8 −2 Go to diff View file