stable

Clone or download

Read-only

Have a common representation for Element

part of story #20066 display stories childen of features Until this patch we didn't share anything between ProgramIncrement, Feature and UserStory All of them are artifact, and will have common property (like id, title, xref ...) Has we didn't have a common representation in Backend, we ended with differences in naming, wich prevents us to use a global type in front end Now we inherit following structure: +----------------------------+ | Element | | | +----------------------------+ | id | | uri | | xref | | title | +----------+-----------------+-------------------------------+ | | | | | | | | | | | | | | | +------------------------+--+ +----+-----------------+ +--------------+--------------+ | ProgramIncrement | | Feature | | User story | | | | | | | +---------------------------+ +----------------------+ +----------------------------+ | status | | tracker | | is_open | | dates | | user_stories[] | | project | | permissions | | background_color | | | | feature: [] | | color_xref | | | +---------------------------+ +----------------------+ +----------------------------+ The next step to it will be to have a common Card for element and avoiding repeating ourselves (especially for accessibility rules) Change-Id: I3a9f4fe87b2e400b8fb3425f02c0646d5492a077

Modified Files

Name
M plugins/program_management/include/Adapter/Program/Backlog/ProgramIncrement/ProgramIncrementsRetriever.php +2 −0 Go to diff View file
M plugins/program_management/include/Adapter/Program/Feature/FeatureRepresentationBuilder.php +1 −0 Go to diff View file
R plugins/program_management/include/Adapter/Program/Feature/Links/FeatureBacklogItemsRepresentationBuilder.php Go to diff View file
R plugins/program_management/include/Program/Backlog/Feature/Content/Links/RetrieveFeatureBacklogItems.php Go to diff View file
M plugins/program_management/include/Program/Backlog/ProgramIncrement/ProgramIncrement.php +12 −0 Go to diff View file
A plugins/program_management/include/REST/v1/ElementRepresentation.php +58 −0 Go to diff View file
M plugins/program_management/include/REST/v1/FeatureRepresentation.php +3 −16 Go to diff View file
M plugins/program_management/include/REST/v1/ProgramBacklogItemsResource.php +8 −8 Go to diff View file
M plugins/program_management/include/REST/v1/ProgramIncrementRepresentation.php +6 −11 Go to diff View file
R plugins/program_management/include/REST/v1/FeatureBacklogItemsRepresentation.php Go to diff View file
M plugins/program_management/scripts/program_management/src/components/Backlog/ProgramIncrement/FeatureCard.test.ts +16 −16 Go to diff View file
M plugins/program_management/scripts/program_management/src/components/Backlog/ProgramIncrement/FeatureCard.vue +18 −18 Go to diff View file
M plugins/program_management/scripts/program_management/src/components/Backlog/ProgramIncrement/FeatureCardBacklogItems.test.ts +11 −11 Go to diff View file
M plugins/program_management/scripts/program_management/src/components/Backlog/ProgramIncrement/FeatureCardBacklogItems.vue +3 −3 Go to diff View file
M plugins/program_management/scripts/program_management/src/components/Backlog/ProgramIncrement/ProgramIncrementFeatureList.test.ts +9 −9 Go to diff View file
M plugins/program_management/scripts/program_management/src/components/Backlog/ProgramIncrement/ProgramIncrementFeatureList.vue +5 −5 Go to diff View file
M plugins/program_management/scripts/program_management/src/components/Backlog/ProgramIncrement/ProgramIncrementList.vue +1 −1 Go to diff View file
M plugins/program_management/scripts/program_management/src/components/Backlog/ToBePlanned/ToBePlanned.test.ts +13 −13 Go to diff View file
M plugins/program_management/scripts/program_management/src/components/Backlog/ToBePlanned/ToBePlanned.vue +4 −4 Go to diff View file
M plugins/program_management/scripts/program_management/src/components/Backlog/ToBePlanned/ToBePlannedBacklogItems.test.ts +9 −9 Go to diff View file
M plugins/program_management/scripts/program_management/src/components/Backlog/ToBePlanned/ToBePlannedBacklogItems.vue +4 −6 Go to diff View file
M plugins/program_management/scripts/program_management/src/components/Backlog/ToBePlanned/ToBePlannedCard.test.ts +10 −10 Go to diff View file
M plugins/program_management/scripts/program_management/src/components/Backlog/ToBePlanned/ToBePlannedCard.vue +6 −10 Go to diff View file
M plugins/program_management/scripts/program_management/src/helpers/BacklogItems/children-feature-retriever.ts +4 −11 Go to diff View file
M plugins/program_management/scripts/program_management/src/helpers/ProgramIncrement/Feature/feature-retriever.test.ts +9 −9 Go to diff View file
M plugins/program_management/scripts/program_management/src/helpers/ProgramIncrement/Feature/feature-retriever.ts +1 −5 Go to diff View file
M plugins/program_management/scripts/program_management/src/helpers/ProgramIncrement/program-increment-retriever.test.ts +2 −4 Go to diff View file
M plugins/program_management/scripts/program_management/src/helpers/ProgramIncrement/program-increment-retriever.ts +2 −4 Go to diff View file
M plugins/program_management/scripts/program_management/src/helpers/ToBePlanned/element-to-plan-retriever.test.ts +10 −10 Go to diff View file
M plugins/program_management/scripts/program_management/src/helpers/ToBePlanned/element-to-plan-retriever.ts +2 −2 Go to diff View file
M plugins/program_management/scripts/program_management/src/helpers/feature-extractor.test.ts +3 −7 Go to diff View file
M plugins/program_management/scripts/program_management/src/helpers/feature-extractor.ts +1 −1 Go to diff View file
M plugins/program_management/scripts/program_management/src/store/actions.test.ts +22 −23 Go to diff View file
M plugins/program_management/scripts/program_management/src/store/getters.test.ts +6 −7 Go to diff View file
M plugins/program_management/scripts/program_management/src/store/getters.ts +3 −4 Go to diff View file
M plugins/program_management/scripts/program_management/src/store/mutations.test.ts +26 −35 Go to diff View file
M plugins/program_management/scripts/program_management/src/store/mutations.ts +8 −11 Go to diff View file
M plugins/program_management/scripts/program_management/src/type.ts +18 −6 Go to diff View file
M plugins/program_management/tests/rest/v1/ProjectResourceTest.php +2 −2 Go to diff View file
M plugins/program_management/tests/unit/Adapter/Program/Backlog/ProgramIncrement/ProgramIncrementsRetrieverTest.php +6 −2 Go to diff View file
M plugins/program_management/tests/unit/Adapter/Program/Feature/Content/ProgramIncrementContentRetrieverTest.php +4 −0 Go to diff View file
M plugins/program_management/tests/unit/Adapter/Program/Feature/FeatureElementsRetrieverTest.php +4 −0 Go to diff View file
M plugins/program_management/tests/unit/Adapter/Program/Feature/FeatureRepresentationBuilderTest.php +2 −0 Go to diff View file
R plugins/program_management/tests/unit/Adapter/Program/Feature/Links/FeatureBacklogItemsRepresentationBuilderTest.php Go to diff View file