stable

Clone or download

Read-only

fix request #30419 Incorrect project visibility at project creation

How to test: - You can throw an exception in ProjectResource to assert that the right payload is sent. - When you create a new project and leave the default visibility (for example "private", then your project is created as Private, not Public. - When you choose another visibility, then your project is created with it. Notes: - the "configuration" key in the root store was getting overwritten. - the namespaced State annotation was not working and returned `undefined`. Using the state directly to init the v-model is more stable and less complicated. - I've run into a race condition: a parent mounted() is always called after all its children's mounted(). Since the child dispatches an event in its mounted() method and the parent listens to that event, the initial event was lost because the parent did not have time to register itself as a listener. This was probably a side-effect of list-picker becoming synchronous: previously, we had to await it, which gave time to the parent to register itself. Change-Id: Ibce5b9a2a1d2b71dd4edc4f701eecf27ac44daff

Modified Files

Name
M src/scripts/project-registration/src/components/Information/Input/ProjectInformationInputPrivacyList.test.ts +12 −22 Go to diff View file
M src/scripts/project-registration/src/components/Information/Input/ProjectInformationInputPrivacyList.vue +14 −43 Go to diff View file
M src/scripts/project-registration/src/components/Information/ProjectInformationFooter.test.ts +3 −3 Go to diff View file
M src/scripts/project-registration/src/components/Template/Advanced/UserProjectList.test.ts +2 −2 Go to diff View file
M src/scripts/project-registration/src/components/Template/Company/CompanyTemplateList.test.ts +1 −2 Go to diff View file
M src/scripts/project-registration/src/components/Template/TemplateFooter.test.ts +3 −3 Go to diff View file
M src/scripts/project-registration/src/components/Template/TemplateSelection.test.ts +1 −1 Go to diff View file
M src/scripts/project-registration/src/components/Template/Tuleap/TuleapTemplateList.test.ts +1 −2 Go to diff View file
M src/scripts/project-registration/src/index.ts +0 −1 Go to diff View file
M src/scripts/project-registration/src/store/actions.ts +6 −4 Go to diff View file
M src/scripts/project-registration/src/store/getters.test.ts +13 −13 Go to diff View file
M src/scripts/project-registration/src/store/getters.ts +4 −4 Go to diff View file
M src/scripts/project-registration/src/store/index.ts +2 −2 Go to diff View file
M src/scripts/project-registration/src/store/mutations.test.ts +4 −4 Go to diff View file
M src/scripts/project-registration/src/store/mutations.ts +9 −9 Go to diff View file
M src/scripts/project-registration/src/store/state.ts +2 −2 Go to diff View file
M src/scripts/project-registration/src/store/type.ts +1 −6 Go to diff View file