Skip to content
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

[Synthetics] Fix parsing of response check json expression #161634

Merged
merged 2 commits into from
Jul 12, 2023

Conversation

shahzad31
Copy link
Contributor

@shahzad31 shahzad31 commented Jul 11, 2023

Summary

Fixes #161232

Parameter parser was interfering with json expression since both can contain ${} expression

Fix parsing of response check json expression !!

Testing

Create a monitor with following expression and make sure the config that's passed to private location is as expected and integration is created for the monitor

image

@apmmachine
Copy link
Contributor

🤖 GitHub comments

Expand to view the GitHub comments

Just comment with:

  • /oblt-deploy : Deploy a Kibana instance using the Observability test environments.
  • run elasticsearch-ci/docs : Re-trigger the docs validation. (use unformatted text in the comment!)

@shahzad31 shahzad31 marked this pull request as ready for review July 11, 2023 10:25
@shahzad31 shahzad31 requested a review from a team as a code owner July 11, 2023 10:25
@botelastic botelastic bot added the Team:Uptime - DEPRECATED Synthetics & RUM sub-team of Application Observability label Jul 11, 2023
@elasticmachine
Copy link
Contributor

Pinging @elastic/uptime (Team:uptime)

@kibana-ci
Copy link
Collaborator

💚 Build Succeeded

Metrics [docs]

Unknown metric groups

ESLint disabled line counts

id before after diff
enterpriseSearch 14 16 +2
securitySolution 409 413 +4
total +6

Total ESLint disabled count

id before after diff
enterpriseSearch 15 17 +2
securitySolution 488 492 +4
total +6

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

Copy link
Contributor

@awahab07 awahab07 left a comment

Choose a reason for hiding this comment

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

LGTM

@shahzad31 shahzad31 merged commit 707a637 into elastic:main Jul 12, 2023
2 checks passed
@shahzad31 shahzad31 deleted the fix-parsing branch July 12, 2023 10:27
kibanamachine pushed a commit to kibanamachine/kibana that referenced this pull request Jul 12, 2023
@kibanamachine
Copy link
Contributor

💚 All backports created successfully

Status Branch Result
8.9

Note: Successful backport PRs will be merged automatically after passing CI.

Questions ?

Please refer to the Backport tool documentation

kibanamachine added a commit that referenced this pull request Jul 12, 2023
…1634) (#161741)

# Backport

This will backport the following commits from `main` to `8.9`:
- [[Synthetics] Fix parsing of response check json expression
(#161634)](#161634)

<!--- Backport version: 8.9.7 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT
[{"author":{"name":"Shahzad","email":"shahzad31comp@gmail.com"},"sourceCommit":{"committedDate":"2023-07-12T10:27:34Z","message":"[Synthetics]
Fix parsing of response check json expression
(#161634)","sha":"707a637f426dbef9cb3201b356cab5af118c8850","branchLabelMapping":{"^v8.10.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:fix","Team:uptime","v8.9.0","v8.10.0"],"number":161634,"url":"https://github.com/elastic/kibana/pull/161634","mergeCommit":{"message":"[Synthetics]
Fix parsing of response check json expression
(#161634)","sha":"707a637f426dbef9cb3201b356cab5af118c8850"}},"sourceBranch":"main","suggestedTargetBranches":["8.9"],"targetPullRequestStates":[{"branch":"8.9","label":"v8.9.0","labelRegex":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.10.0","labelRegex":"^v8.10.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/161634","number":161634,"mergeCommit":{"message":"[Synthetics]
Fix parsing of response check json expression
(#161634)","sha":"707a637f426dbef9cb3201b356cab5af118c8850"}}]}]
BACKPORT-->

Co-authored-by: Shahzad <shahzad31comp@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release_note:fix Team:Uptime - DEPRECATED Synthetics & RUM sub-team of Application Observability v8.9.0 v8.10.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Synthetics] Yaml exception for json response body in package policy creation
6 participants