Skip to content

fix: handle quoted alert JSON in workflow functions - #6659

Open
aditya-786 wants to merge 1 commit into
keephq:mainfrom
aditya-786:fix/iohandler-quoted-values
Open

fix: handle quoted alert JSON in workflow functions#6659
aditya-786 wants to merge 1 commit into
keephq:mainfrom
aditya-786:fix/iohandler-quoted-values

Conversation

@aditya-786

Copy link
Copy Markdown
Contributor

Summary

  • preserve rendered alert JSON as one quoted workflow-function argument
  • apply quote escapes using token-relative offsets for prefixed and repeated calls
  • cover single and double delimiters without changing non-JSON string parsing

Testing

  • SKIP_DOCKER=true pytest tests/test_iohandler.py tests/test_functions.py -o addopts='' -q (190 passed)
  • ruff check keep/iohandler/iohandler.py tests/test_iohandler.py

Closes #5302

@dosubot dosubot Bot added the size:M This PR changes 30-99 lines, ignoring generated files. label Jul 30, 2026

@shahargl shahargl left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@dosubot dosubot Bot added the lgtm This PR has been approved by a maintainer label Jul 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lgtm This PR has been approved by a maintainer size:M This PR changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[🐛 Bug]: Keep's keep.dictget() function parsing has an issue

2 participants