stable

Clone or download

Read-only

Tracker admins can define implied timeframes in trackers

part of: story #21362 Base artifact timeframe on a linked artifact How to test: --> When you switch modes, the right configuration section is displayed - It is not possible to imply the semantic from another tracker when: --> There are other trackers implying their semantics from the current one. --> The tracker has no artifact link field - The trackers are not listed in the tracker select box when: --> The tracker is the current tracker --> The tracker has no artifact link field --> The tracker has an implied semantic Change-Id: I51bf652de14dff74c6bc5ce9df43c23476b4fbdd

Modified Files

Name
M plugins/tracker/include/Tracker/Semantic/Timeframe/Administration/SemanticTimeframeAdministrationPresenter.php +15 −4 Go to diff View file
M plugins/tracker/include/Tracker/Semantic/Timeframe/Administration/SemanticTimeframeAdministrationPresenterBuilder.php +33 −3 Go to diff View file
M plugins/tracker/include/Tracker/Semantic/Timeframe/IComputeTimeframes.php +2 −0 Go to diff View file
M plugins/tracker/include/Tracker/Semantic/Timeframe/SemanticTimeframe.php +13 −2 Go to diff View file
M plugins/tracker/include/Tracker/Semantic/Timeframe/SemanticTimeframeDao.php +11 −5 Go to diff View file
M plugins/tracker/include/Tracker/Semantic/Timeframe/SemanticTimeframeDuplicator.php +1 −1 Go to diff View file
A plugins/tracker/include/Tracker/Semantic/Timeframe/SemanticTimeframeSuitableTrackersOtherSemanticsCanBeImpliedFromRetriever.php +82 −0 Go to diff View file
M plugins/tracker/include/Tracker/Semantic/Timeframe/SemanticTimeframeUpdator.php +38 −22 Go to diff View file
M plugins/tracker/include/Tracker/Semantic/Timeframe/TimeframeImpliedFromAnotherTracker.php +5 −0 Go to diff View file
M plugins/tracker/include/Tracker/Semantic/Timeframe/TimeframeNotConfigured.php +5 −0 Go to diff View file
M plugins/tracker/include/Tracker/Semantic/Timeframe/TimeframeWithDuration.php +6 −0 Go to diff View file
M plugins/tracker/include/Tracker/Semantic/Timeframe/TimeframeWithEndDate.php +7 −1 Go to diff View file
A plugins/tracker/scripts/semantics/timeframe/constants.ts +21 −0 Go to diff View file
M plugins/tracker/scripts/semantics/timeframe/index.ts +12 −0 Go to diff View file
M plugins/tracker/scripts/semantics/timeframe/po/fr_FR.po +43 −2 Go to diff View file
A plugins/tracker/scripts/semantics/timeframe/src/components/App.test.ts +77 −0 Go to diff View file
M plugins/tracker/scripts/semantics/timeframe/src/components/App.vue +42 −2 Go to diff View file
M plugins/tracker/scripts/semantics/timeframe/src/components/TimeframeAdminSubmitButtons.test.ts +3 −0 Go to diff View file
M plugins/tracker/scripts/semantics/timeframe/src/components/TimeframeAdminSubmitButtons.vue +5 −1 Go to diff View file
A plugins/tracker/scripts/semantics/timeframe/src/components/TimeframeConfigModeSelector.test.ts +83 −0 Go to diff View file
A plugins/tracker/scripts/semantics/timeframe/src/components/TimeframeConfigModeSelector.vue +81 −0 Go to diff View file
A plugins/tracker/scripts/semantics/timeframe/src/components/TimeframeImpliedFromAnotherTrackerConfig.test.ts +85 −0 Go to diff View file
A plugins/tracker/scripts/semantics/timeframe/src/components/TimeframeImpliedFromAnotherTrackerConfig.vue +113 −0 Go to diff View file
M plugins/tracker/scripts/semantics/timeframe/src/helpers/local-vue-for-tests.ts +4 −0 Go to diff View file
M plugins/tracker/scripts/semantics/timeframe/type.ts +10 −0 Go to diff View file
M plugins/tracker/templates/timeframe-semantic/timeframe-semantic-admin.mustache +4 −0 Go to diff View file
M plugins/tracker/tests/integration/SemanticTimeframeDaoTest.php +4 −4 Go to diff View file
M plugins/tracker/tests/unit/Tracker/Semantic/Timeframe/SemanticTimeframeDuplicatorTest.php +2 −2 Go to diff View file
A plugins/tracker/tests/unit/Tracker/Semantic/Timeframe/SemanticTimeframeSuitableTrackersOtherSemanticsCanBeImpliedFromRetrieverTest.php +126 −0 Go to diff View file
M plugins/tracker/tests/unit/Tracker/Semantic/Timeframe/SemanticTimeframeUpdatorTest.php +46 −6 Go to diff View file
M plugins/tracker/tests/unit/Tracker/Semantic/Timeframe/TimeframeWithDurationTest.php +1 −1 Go to diff View file
M plugins/tracker/tests/unit/Tracker/Semantic/Timeframe/TimeframeWithEndDateTest.php +1 −1 Go to diff View file