stable

Clone or download

Read-only

feat: Enable TestManagement use mercure messages

Part of story #32297 Have Tuleap Test Management realtime be Mercure based This patch aims to allow TestManagement to use mercure messages *Missing in this patch:* - Presences are not loaded when loading campaign - When a user leave campaign, others are not notified *Testing:* 1) Set feature_flag_enable_mercure_dev_testmanagement to 1 2) Connect to the same campaign using two different accounts then check that any of those actions: - Changing the state of an execution - Deleting an execution - Creating an execution - Linking an artifact - Updating the campaign - Switch test viewed - Presences on campaign - Score updated Is displayed on both instances Signed-off-by: Kevin Traini <kevin.traini@enalean.com> Change-Id: I2ad36f8faf04677a59a8f3b79f4166aef50e091d

Modified Files

Name
M plugins/testmanagement/include/RealTime/RealTimeMessageSender.php +44 −27 Go to diff View file
A plugins/testmanagement/include/RealTime/RealtimeUserRepresentation.php +47 −0 Go to diff View file
M plugins/testmanagement/scripts/testmanagement/package.json +1 −0 Go to diff View file
M plugins/testmanagement/scripts/testmanagement/pnpm-lock.yaml +24 −0 Go to diff View file
M plugins/testmanagement/scripts/testmanagement/src/app-controller.js +2 −0 Go to diff View file
M plugins/testmanagement/scripts/testmanagement/src/app.js +2 −0 Go to diff View file
M plugins/testmanagement/scripts/testmanagement/src/campaign/campaign-service.js +6 −3 Go to diff View file
M plugins/testmanagement/scripts/testmanagement/src/execution-collection/execution-service.js +12 −4 Go to diff View file
M plugins/testmanagement/scripts/testmanagement/src/execution/execution-list-controller.js +35 −20 Go to diff View file
M plugins/testmanagement/scripts/testmanagement/src/execution/execution.js +2 −0 Go to diff View file
A plugins/testmanagement/scripts/testmanagement/src/realtime/buildEventDispatcher.test.js +135 −0 Go to diff View file
A plugins/testmanagement/scripts/testmanagement/src/realtime/buildEventDispatcher.ts +45 −0 Go to diff View file
A plugins/testmanagement/scripts/testmanagement/src/realtime/mercure-config.js +31 −0 Go to diff View file
A plugins/testmanagement/scripts/testmanagement/src/realtime/mercure-disconnect-directive.js +34 −0 Go to diff View file
A plugins/testmanagement/scripts/testmanagement/src/realtime/mercure-disconnect.tpl.html +3 −0 Go to diff View file
A plugins/testmanagement/scripts/testmanagement/src/realtime/mercure-service.js +164 −0 Go to diff View file
A plugins/testmanagement/scripts/testmanagement/src/realtime/mercure.js +31 −0 Go to diff View file
A plugins/testmanagement/scripts/testmanagement/src/realtime/realtime-mercure.ts +106 −0 Go to diff View file
M plugins/testmanagement/scripts/testmanagement/src/shared-properties/shared-properties-service.js +11 −1 Go to diff View file
M src/common/User/REST/UserRepresentation.class.php +2 −9 Go to diff View file