Fix various bugs in project integrations API
What does this MR do and why?
This MR fixes various bugs in the project integration API:
- Fix missing fields in Discord integration update endpoint
- Fix broken update of slack integration
deployment_channel
field (#28903) - Fix missing
deployment_events
field in project integration responses (#28903, #196575) - Fix broken update for
confidential_note_channel
(#23479, #28903 (comment 272724550)) - Fix missing
alert_channel
andalert_events
(#196575) - Fix broken update for
job_events
andcommit_events
(#196573)
Fixes #28903 #23479 #196575 #196573
Fixes most of the remaining issues highlighted in &2411
How to set up and validate locally
Missing fields in Discord integration update endpoint
- Try changing the
notify_only_broken_pipelines
orpush_events
fields on the/api/v4/projects/$PROJECT_ID/integrations/discord
endpoint.
deployment_channel
field
Broken update of slack integration - Try changing the
deployment_channel
fields on the/api/v4/projects/$PROJECT_ID/integrations/slack
endpoint.
deployment_events
field in project integration responses
Fix missing - Fetch
/api/v4/projects/$PROJECT_ID/integrations/slack
endpoint. - Verify that
deployment_events
is present.
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Marin Hannache