-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[Response Ops][Actions] PagerDuty action UI improvements #175342
Comments
Pinging @elastic/response-ops (Team:ResponseOps) |
@ymao1 Don't the params get validated when saving the rule? Saving a rule with |
It looks like we don't validate the action params when saving the rule. Likely due to the fact that the params could contain context variables and we can inject those until runtime. Does that sound correct @pmuellr? |
@ymao1 that is exactly it, ill handle it 👍 |
Fixes #175342 ## Summary The Pagerduty action UI does not allow users to save when there are linting errors in the `Custom Details` field. Previously the validation was skipped if there were Mustache templates in the field.
) Fixes elastic#175342 ## Summary The Pagerduty action UI does not allow users to save when there are linting errors in the `Custom Details` field. Previously the validation was skipped if there were Mustache templates in the field. (cherry picked from commit 8fe7433)
) (#175540) # Backport This will backport the following commits from `main` to `8.12`: - [[ResponseOps][Connectors] Fix bug in PagerDuty Connector (#175507)](#175507) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Antonio","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-01-25T13:32:38Z","message":"[ResponseOps][Connectors] Fix bug in PagerDuty Connector (#175507)\n\nFixes #175342 \r\n\r\n## Summary\r\n\r\nThe Pagerduty action UI does not allow users to save when there are\r\nlinting errors in the `Custom Details` field.\r\n\r\nPreviously the validation was skipped if there were Mustache templates\r\nin the field.","sha":"8fe74333a841817a93e329acc17c1b598d6d5688","branchLabelMapping":{"^v8.13.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["bug","release_note:skip","Feature:Actions","Team:ResponseOps","v8.12.1","v8.13.0"],"title":"[ResponseOps][Connectors] Fix bug in PagerDuty Connector","number":175507,"url":"https://github.com/elastic/kibana/pull/175507","mergeCommit":{"message":"[ResponseOps][Connectors] Fix bug in PagerDuty Connector (#175507)\n\nFixes #175342 \r\n\r\n## Summary\r\n\r\nThe Pagerduty action UI does not allow users to save when there are\r\nlinting errors in the `Custom Details` field.\r\n\r\nPreviously the validation was skipped if there were Mustache templates\r\nin the field.","sha":"8fe74333a841817a93e329acc17c1b598d6d5688"}},"sourceBranch":"main","suggestedTargetBranches":["8.12"],"targetPullRequestStates":[{"branch":"8.12","label":"v8.12.1","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v8.13.0","branchLabelMappingKey":"^v8.13.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/175507","number":175507,"mergeCommit":{"message":"[ResponseOps][Connectors] Fix bug in PagerDuty Connector (#175507)\n\nFixes #175342 \r\n\r\n## Summary\r\n\r\nThe Pagerduty action UI does not allow users to save when there are\r\nlinting errors in the `Custom Details` field.\r\n\r\nPreviously the validation was skipped if there were Mustache templates\r\nin the field.","sha":"8fe74333a841817a93e329acc17c1b598d6d5688"}}]}] BACKPORT--> Co-authored-by: Antonio <[email protected]>
) Fixes elastic#175342 ## Summary The Pagerduty action UI does not allow users to save when there are linting errors in the `Custom Details` field. Previously the validation was skipped if there were Mustache templates in the field.
The Pagerduty action UI allows users to save even when there is a lint error in the Custom Details field
Here, there is a small red line indicating invalid JSON but I'm able to click save anyway.
Then, when clearing the Custom Details field, the field is set to an empty string, which will fail validation when running the action.
Clearing the above text box changes custom details from
to
which will cause the action to fail. User has to then manually change the custom details input to
{}
so that it is considered valid JSON, which is what the schema validation expects.The text was updated successfully, but these errors were encountered: