stable

Clone or download

Read-only

Allow php backend to send Kanban structural messages

This patch allows the php backend to send the necessary messages to update kanban structure informations in real time This patch merely intends to replicate existing functionality without changing the existing implementation, any necessary architecture refactor will be done in a following path 1. Setting up mercure in your bash-web 2. Adding demo to your mercure config file to enable demo ui 2. setting feature_flag_enable_mercure_dev to 1 in bash-web 4. Go to any kanban, note the id, and then use js console to run fetch('https://tuleap-web.tuleap-aio-dev.docker/plugins/agiledashboard/mercure_realtime_token/$id',{method:'POST'}) .then((response) => response.text()) .then((data) => console.log(data)); to get the jwt token 5. Open https://tuleap-web.tuleap-aio-dev.docker/.well-known/mercure/ui/, and change the token to the one you recieved in 3 , then subscribe to Kanban/$ID 6. Edit the kanban title, edit a column, move a column, create a column, delete a column , delete the kanban, each action should result in a mercure message Part of story #28301 Have Kanban realtime be Mercure based Change-Id: Id9019d98c338943d37f60c82b796c833c2157aeb

Modified Files

Name
M plugins/agiledashboard/include/AgileDashboard/Kanban/RealTimeMercure/KanbanArtifactMessageSenderMercure.php +1 −1 Go to diff View file
A plugins/agiledashboard/include/AgileDashboard/Kanban/RealTimeMercure/KanbanStructureRealTimeMercure.php +38 −0 Go to diff View file
M plugins/agiledashboard/include/AgileDashboard/REST/v1/Kanban/KanbanColumnsResource.php +16 −1 Go to diff View file
M plugins/agiledashboard/include/AgileDashboard/REST/v1/Kanban/KanbanResource.php +20 −13 Go to diff View file