stable

Clone or download

Read-only

Get the background color in kanban REST routes

Part of story #11543 Use new palette colors as background color in A.D How to test: - Kanban item representations now have a member 'background_color_name' which is the standardized dash-case name of the TLP color of the item The change should be propagated to: - Filtered and un-filtered column routes GET kanban/:id/backlog , archive, items - single item GET kanban_items/:id - 'background_color_name' is an empty string when something is not defined Change-Id: I9ca0393403bdd5a11ccf26f5fdd034f6d0c15feb

Modified Files

Name
M plugins/agiledashboard/include/AgileDashboard/REST/v1/Kanban/ItemCollectionRepresentationBuilder.php +10 −16 Go to diff View file
M plugins/agiledashboard/include/AgileDashboard/REST/v1/Kanban/ItemRepresentationBuilder.php +144 −17 Go to diff View file
M plugins/agiledashboard/include/AgileDashboard/REST/v1/Kanban/KanbanItemRepresentation.php +19 −42 Go to diff View file
M plugins/agiledashboard/include/AgileDashboard/REST/v1/Kanban/KanbanItemsResource.php +6 −1 Go to diff View file
M plugins/agiledashboard/include/AgileDashboard/REST/v1/Kanban/KanbanResource.php +17 −5 Go to diff View file
M plugins/agiledashboard/include/AgileDashboard/REST/v1/Kanban/TrackerReport/FilteredItemCollectionRepresentationBuilder.php +13 −26 Go to diff View file
A plugins/cardwall/include/Semantic/BackgroundColorFieldRetriever.php +60 −0 Go to diff View file
A plugins/cardwall/include/Semantic/BackgroundColorSemanticFieldNotFoundException.php +25 −0 Go to diff View file
M plugins/cardwall/include/Semantic/CardFields.class.php +28 −7 Go to diff View file
M plugins/cardwall/include/autoload.php +4 −2 Go to diff View file
M plugins/cardwall/phpunit/carwall/Semantic/CardFieldsTrackerPresenterBuilderTest.php +3 −3 Go to diff View file
M plugins/cardwall/tests/Semantic/CardFieldsTest.php +15 −5 Go to diff View file
A plugins/tracker/include/Tracker/FormElement/Field/ListFields/Bind/BindDecoratorColorRetriever.php +57 −0 Go to diff View file
M plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Field_List_BindDecorator.class.php +5 −1 Go to diff View file
M plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Field_List_BindFactory.class.php +28 −17 Go to diff View file
M plugins/tracker/include/Tracker/FormElement/Tracker_FormElement_Field_List_Bind_StaticValue.class.php +25 −17 Go to diff View file
A plugins/tracker/phpunit/Tracker/FormElement/Field/ListFields/Bind/BindDecoratorColorRetrieverTest.php +121 −0 Go to diff View file
M plugins/tracker/tests/Tracker_FormElement_Field_List_BindFactoryTest.php +21 −9 Go to diff View file