stable

Clone or download

Read-only

feat: Parallel retrieval of tasks and iterations

If a roadmap has defined one or two iteration tracker (you have to hack the db for now), then tasks and iterations are loaded in parallel. * User see a loading state until all requests are completed * User see an error state as soon as one request is in error Currently, tasks and iterations have the same importance for decision making, if one of the data is not available we prefer to display an error state than an half built gantt chart. Furthermore if tasks are displayed and suddenly an error state is displayed because iterations are in error, it would be weird. So for now, it is all or nothing. No visible change in the display of the widget for everybody (The iterations are retrieved but not displayed yet). Part of story #21379: Display iterations on top of roadmap Change-Id: Ia125d74039b24218e5f4e252951f5529318e9d29

Modified Files

Name
M plugins/roadmap/include/Roadmap/RoadmapProjectWidget.php +14 −4 Go to diff View file
M plugins/roadmap/include/Roadmap/Widget/RoadmapWidgetPresenter.php +14 −12 Go to diff View file
M plugins/roadmap/include/Roadmap/Widget/RoadmapWidgetPresenterBuilder.php +27 −8 Go to diff View file
M plugins/roadmap/include/roadmapPlugin.php +1 −0 Go to diff View file
M plugins/roadmap/scripts/roadmap-widget/src/components/App.test.ts +5 −5 Go to diff View file
M plugins/roadmap/scripts/roadmap-widget/src/components/App.vue +1 −1 Go to diff View file
A plugins/roadmap/scripts/roadmap-widget/src/helpers/iterations-retriever.ts +30 −0 Go to diff View file
M plugins/roadmap/scripts/roadmap-widget/src/index.ts +2 −0 Go to diff View file
M plugins/roadmap/scripts/roadmap-widget/src/store/index.ts +1 −0 Go to diff View file
M plugins/roadmap/scripts/roadmap-widget/src/store/root-actions.test.ts +173 −3 Go to diff View file
M plugins/roadmap/scripts/roadmap-widget/src/store/root-actions.ts +28 −2 Go to diff View file
M plugins/roadmap/scripts/roadmap-widget/src/store/root-mutations.test.ts +26 −0 Go to diff View file
M plugins/roadmap/scripts/roadmap-widget/src/store/root-mutations.ts +4 −0 Go to diff View file
M plugins/roadmap/scripts/roadmap-widget/src/store/tasks/index.ts +0 −1 Go to diff View file
M plugins/roadmap/scripts/roadmap-widget/src/store/tasks/tasks-actions.test.ts +0 −72 Go to diff View file
M plugins/roadmap/scripts/roadmap-widget/src/store/tasks/tasks-actions.ts +1 −41 Go to diff View file
M plugins/roadmap/scripts/roadmap-widget/src/store/tasks/tasks-mutations.test.ts +0 −10 Go to diff View file
M plugins/roadmap/scripts/roadmap-widget/src/store/tasks/tasks-mutations.ts +0 −4 Go to diff View file
M plugins/roadmap/scripts/roadmap-widget/src/store/tasks/type.ts +0 −1 Go to diff View file
M plugins/roadmap/scripts/roadmap-widget/src/store/type.ts +3 −0 Go to diff View file
M plugins/roadmap/scripts/roadmap-widget/src/type.ts +6 −0 Go to diff View file
M plugins/roadmap/templates/widget-roadmap.mustache +6 −1 Go to diff View file
M plugins/roadmap/tests/unit/Roadmap/Widget/RoadmapWidgetPresenterBuilderTest.php +147 −2 Go to diff View file