Skip to content

JSON escape complex strings in Slack attachments JSON (#8665) #11098

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

pclalv
Copy link

@pclalv pclalv commented Oct 27, 2022

Note on DCO:

If the DCO action in the integration test fails, one or more of your commits are not signed off. Please click on the Details link next to the DCO action for instructions on how to resolve this.

Checklist:

  • Either (a) I've created an enhancement proposal and discussed it with the community, (b) this is a bug fix, or (c) this does not need to be in the release notes.
  • The title of the PR states what changed and the related issues number (used for the release note).
  • I've included "Closes [ISSUE #]" or "Fixes [ISSUE #]" in the description to automatically close the associated issue.
  • I've updated both the CLI and UI to expose my feature, or I plan to submit a second PR with them.
  • Does this PR require documentation updates?
  • I've updated documentation as required by this PR.
  • Optional. My organization is added to USERS.md.
  • I have signed off all my commits as required by DCO
  • I have written unit and/or e2e tests for my change. PRs without these are unlikely to be merged.
  • My build is green (troubleshooting builds).

Fixes #8665

@pclalv pclalv force-pushed the json-escape-complex-strings-in-slack-attachments-json branch from 3d52c2d to b91fcbd Compare October 27, 2022 21:29
@codecov
Copy link

codecov bot commented Oct 27, 2022

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 60.25%. Comparing base (be042c4) to head (e06d459).

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #11098      +/-   ##
==========================================
+ Coverage   60.23%   60.25%   +0.01%     
==========================================
  Files         346      346              
  Lines       59212    59212              
==========================================
+ Hits        35668    35678      +10     
+ Misses      20664    20658       -6     
+ Partials     2880     2876       -4     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@pclalv pclalv force-pushed the json-escape-complex-strings-in-slack-attachments-json branch from ab79b5e to de58cfd Compare October 28, 2022 15:27
@christoffer-eide
Copy link

+1 for documenting this

js is not meant to escape JSON, it's meant for javascript.

For example, it generates invalid JSON if the string contains ' (single quote):
#8665 (comment)

There are probably other scenarios where js won't work 🤷‍♂️

@thiagowfx
Copy link
Contributor

Confirming that js works and is a step in the right direction (even if not a full solution).

@andrii-korotkov-verkada
Copy link
Contributor

Closed the PR due to it being old and unlikely to be able to resolve merge conflicts. But feel free to re-open/re-submit if the work is still planned.

@STASiAN
Copy link

STASiAN commented Mar 6, 2025

Is only the rebase needed?

Copy link

bunnyshell bot commented Mar 6, 2025

❌ Preview Environment undeployed from Bunnyshell

Available commands (reply to this comment):

  • 🚀 /bns:deploy to deploy the environment

@andrii-korotkov-verkada
Copy link
Contributor

Maybe only rebase, but it's been a while, maybe more is needed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Argo CD notification does not work when error message contains "
6 participants