stable

Clone or download

Read-only

feat: Concurrent edition of sections in artidoc

Given Alice starts to edit a section, And Bob concurrently save a new version of the corresponding artifact, When Alice clicks on save, Then a warning is displayed asking to either force save or load the new section. When Alice clicks on force save, Then there is no check for concurrent update. When Alice clicks on load new section, Then the editor is closed and the latest version of the section is displayed, And if Alice edits again the section, Then the editor displays the latest version of the section to edit. Part of story #37543: edit Artidoc sections Change-Id: Ibea291f444b88adc6c8659a88317d50a1375c6f3

Modified Files

Name
M plugins/artidoc/scripts/artidoc/po/fr_FR.po +16 −0 Go to diff View file
M plugins/artidoc/scripts/artidoc/src/components/DocumentContent.vue +12 −7 Go to diff View file
A plugins/artidoc/scripts/artidoc/src/components/OutdatedSectionWarning.test.ts +66 −0 Go to diff View file
A plugins/artidoc/scripts/artidoc/src/components/OutdatedSectionWarning.vue +67 −0 Go to diff View file
M plugins/artidoc/scripts/artidoc/src/components/SectionContent.vue +5 −0 Go to diff View file
M plugins/artidoc/scripts/artidoc/src/components/SectionEditorCta.test.ts +2 −0 Go to diff View file
M plugins/artidoc/scripts/artidoc/src/composables/useSectionEditor.test.ts +115 −0 Go to diff View file
M plugins/artidoc/scripts/artidoc/src/composables/useSectionEditor.ts +77 −15 Go to diff View file
A plugins/artidoc/scripts/artidoc/src/helpers/convert-description-to-html.test.ts +63 −0 Go to diff View file
A plugins/artidoc/scripts/artidoc/src/helpers/convert-description-to-html.ts +32 −0 Go to diff View file
A plugins/artidoc/scripts/artidoc/src/helpers/is-section-in-its-latest-version.test.ts +100 −0 Go to diff View file
A plugins/artidoc/scripts/artidoc/src/helpers/is-section-in-its-latest-version.ts +56 −0 Go to diff View file