stable

Clone or download

Read-only

refactor: remove Primitive Obsession

Until now we were relying on a selected tracker id. Instead we should rely on the tracker itself instead of only the id. This will allow us to have the possibility later to introduce contextual information about the tracker. For example we would like to know which fields id to use when we create a new section (those information will be added in the brand new DocumentTrackerRepresentation). No functional change in the document configuration. Part of story #38288: add a new section Change-Id: Icf60e56136cf0ee123f0ae35fc8e0c5a87e13067

Modified Files

Name
M plugins/artidoc/include/Artidoc/ArtidocController.php +15 −3 Go to diff View file
M plugins/artidoc/include/Artidoc/ArtidocPresenter.php +5 −3 Go to diff View file
A plugins/artidoc/include/Artidoc/Document/Tracker/DocumentTrackerRepresentation.php +40 −0 Go to diff View file
M plugins/artidoc/scripts/artidoc/src/components/AddNewSectionButton.test.ts +1 −1 Go to diff View file
M plugins/artidoc/scripts/artidoc/src/components/AddNewSectionButton.vue +1 −1 Go to diff View file
M plugins/artidoc/scripts/artidoc/src/components/configuration/TrackerSelection.vue +1 −1 Go to diff View file
M plugins/artidoc/scripts/artidoc/src/composables/useConfigurationScreenHelper.test.ts +10 −20 Go to diff View file
M plugins/artidoc/scripts/artidoc/src/composables/useConfigurationScreenHelper.ts +10 −8 Go to diff View file
M plugins/artidoc/scripts/artidoc/src/helpers/stubs/ConfigurationStoreStub.ts +6 −6 Go to diff View file
M plugins/artidoc/scripts/artidoc/src/index.ts +1 −1 Go to diff View file
M plugins/artidoc/scripts/artidoc/src/stores/configuration-store.ts +8 −8 Go to diff View file
M plugins/artidoc/scripts/artidoc/src/views/DocumentView.test.ts +8 −12 Go to diff View file
M plugins/artidoc/scripts/artidoc/src/views/DocumentView.vue +2 −2 Go to diff View file