Failing to correctly group ArgoCD slack notifications with groupingKey #21351
Labels
bug
Something isn't working
component:notifications
Related to notifications subsystem
version:2.11
Latest confirmed affected version is 2.11
Checklist:
argocd version
.Describe the bug
We want to group out slack notifications in the same thread when an automatic sync starts and succeeds/fails. Initially, I used the groupingKey
"{{.app.status.sync.revision}}"
(as well as this one"{{.app.status.operationState.syncResult.revision}}"
) specified in this doc, however, it wouldn't group the messages in the thread.I also attempted to group them with groupingKey set to
"{{.app.status.operationState.operation.id}}"
,{{.app.status.operationState.operation.revision}}
which also did not work.On top of this, I also tried to add a unique identifier of application name
{{.app.metadata.name}}
to the groupingKey such as"{{.app.metadata.name}}-{{.app.status.operationState.operation.revision}}"
which also didn't help.To Reproduce
This is our logic for sending out start, success and fail notifications (without groupingKey included)
Expected behavior
For an application, we have the slack messages for a sync operation (start + success or fail) being sent as a single thread
Screenshots
Version
Paste the output from `argocd version` here. v2.11.2
Logs
The text was updated successfully, but these errors were encountered: