stable

Clone or download

Read-only

Inject "can update mapped field" in DOM

Part of story #13626 Drag and drop cards - When browsing as anonymous user, every tracker in "data-trackers" should have a "can_update_mapped_field" property set to false. - When your user does not have permission to update a given tracker's Status field (or mapped field in case of freestyle mapping), then "can_update_mapped_field" will be false. - When you do have permission, it will be true. Note: injection in Vue store will come later when the drag and drop code will make use of this property. Change-Id: I5b8163d760b2b6ad1fcb78d9cabbcc6632d40f51

Modified Files

Name
M plugins/taskboard/include/Board/BoardPresenter.php +9 −3 Go to diff View file
M plugins/taskboard/include/Board/BoardPresenterBuilder.php +7 −1 Go to diff View file
M plugins/taskboard/include/Column/FieldValuesToColumnMapping/ArtifactMappedFieldValueRetriever.php +1 −1 Go to diff View file
M plugins/taskboard/include/Column/FieldValuesToColumnMapping/Freestyle/FreestyleMappingDao.php +1 −1 Go to diff View file
M plugins/taskboard/include/Column/FieldValuesToColumnMapping/Freestyle/FreestyleMappingFactory.php +1 −1 Go to diff View file
M plugins/taskboard/include/Column/FieldValuesToColumnMapping/MappedFieldRetriever.php +1 −1 Go to diff View file
M plugins/taskboard/include/Column/FieldValuesToColumnMapping/MappedValuesRetriever.php +1 −1 Go to diff View file
M plugins/taskboard/include/Column/FieldValuesToColumnMapping/TrackerMappingPresenterBuilder.php +11 −20 Go to diff View file
M plugins/taskboard/include/REST/v1/Cell/CardMappedFieldUpdater.php +1 −1 Go to diff View file
R plugins/taskboard/include/TaskboardTracker.php Go to diff View file
A plugins/taskboard/include/Tracker/TrackerCollection.php +53 −0 Go to diff View file
A plugins/taskboard/include/Tracker/TrackerCollectionRetriever.php +62 −0 Go to diff View file
A plugins/taskboard/include/Tracker/TrackerPresenter.php +39 −0 Go to diff View file
A plugins/taskboard/include/Tracker/TrackerPresenterCollectionBuilder.php +64 −0 Go to diff View file
M plugins/taskboard/include/taskboardPlugin.php +3 −1 Go to diff View file
A plugins/taskboard/phpunit/Board/BoardPresenterTest.php +133 −0 Go to diff View file
M plugins/taskboard/phpunit/Column/FieldValuesToColumnMapping/ArtifactMappedFieldValueRetrieverTest.php +1 −1 Go to diff View file
M plugins/taskboard/phpunit/Column/FieldValuesToColumnMapping/Freestyle/FreestyleMappingFactoryTest.php +1 −1 Go to diff View file
M plugins/taskboard/phpunit/Column/FieldValuesToColumnMapping/MappedFieldRetrieverTest.php +1 −1 Go to diff View file
M plugins/taskboard/phpunit/Column/FieldValuesToColumnMapping/MappedValuesRetrieverTest.php +1 −1 Go to diff View file
M plugins/taskboard/phpunit/Column/FieldValuesToColumnMapping/TrackerMappingPresenterBuilderTest.php +24 −60 Go to diff View file
M plugins/taskboard/phpunit/REST/v1/Cell/CardMappedFieldUpdaterTest.php +1 −1 Go to diff View file
A plugins/taskboard/phpunit/Tracker/TrackerCollectionRetrieverTest.php +147 −0 Go to diff View file
A plugins/taskboard/phpunit/Tracker/TrackerCollectionTest.php +61 −0 Go to diff View file
A plugins/taskboard/phpunit/Tracker/TrackerPresenterCollectionBuilderTest.php +136 −0 Go to diff View file
M plugins/taskboard/templates/taskboard.mustache +1 −0 Go to diff View file