argoproj / argoproj/notifications-engine

[googlechat] Loose of cards v2 content

Open
#418 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Go
Stars
334
Forks
217
PR merge metrics
No merged PRs in 30d

Description

When specifying this card v2 content:

```yaml
- sections:
- widgets:
- textParagraph:
textSyntax: "MARKDOWN"
text: "❗Application **[my-app](https://argocd.local/applications/my-app)** on **MyEnv** has degraded."
- columns:
columnItems:
- widgets:
- decoratedText:
topLabelText:
textSyntax: "MARKDOWN"
text: "*Health Status*"
text: "Degraded"
- widgets:
- decoratedText:
topLabelText:
textSyntax: "MARKDOWN"
text: "*Repository*"
contentText:
textSyntax: "MARKDOWN"
text: "https://github.com/loganmzz/my-repository"
```

The resulting JSON sent to Google Chat endpoint is:

```json
{
"text": "",
"cardsV2": [
{
"card": {
"sections": [
{
"widgets": [
{
"textParagraph": {
"text": "Application **[my-app](https://argocd.local/applications/my-app)** on **MyEnv** has degraded."
}
},
{
"columns": {
"columnItems": [
{
"widgets": [
{
"decoratedText": {
"text": "Degraded"
}
}
]
},
{
"widgets": [
{
"decoratedText": {}
}
]
}
]
}
}
]
}
]
},
"cardId": "068cbc4d-3520-4e59-ba32-86a57ce873d4"
}
]
}
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Reproduce the supplied Google Chat cards v2 YAML and inspect the JSON sent to the Google Chat endpoint. Compare the lost textSyntax, topLabelText, and contentText fields with the input, then verify that the resulting cardsV2 JSON preserves the card content shown in the report.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.