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

Creating alert link with alert id and rule id #140634

Merged
merged 4 commits into from
Sep 13, 2022

Conversation

benakansara
Copy link
Contributor

@benakansara benakansara commented Sep 13, 2022

Summary

Part of #139269

This PR is only for creating alert details page link with alert id and rule id.

@benakansara benakansara requested a review from a team as a code owner September 13, 2022 15:30
@benakansara benakansara added the release_note:skip Skip the PR/issue when compiling release notes label Sep 13, 2022
Copy link
Contributor

@kdelemme kdelemme left a comment

Choose a reason for hiding this comment

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

LGTM!

@benakansara benakansara enabled auto-merge (squash) September 13, 2022 19:15
@kibana-ci
Copy link
Collaborator

💚 Build Succeeded

Metrics [docs]

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
observability 521.2KB 521.3KB +62.0B

History

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

@benakansara benakansara merged commit 8647bd8 into elastic:main Sep 13, 2022
@kibanamachine kibanamachine added v8.5.0 backport:skip This commit does not require backporting labels Sep 13, 2022
@@ -14,8 +14,10 @@ export const paths = {
rules: RULES_PAGE_LINK,
ruleDetails: (ruleId?: string | null) =>
ruleId ? `${RULES_PAGE_LINK}/${encodeURI(ruleId)}` : RULES_PAGE_LINK,
alertDetails: (alertId?: string | null) =>
alertId ? `${ALERT_PAGE_LINK}/${encodeURI(alertId)}` : ALERT_PAGE_LINK,
alertDetails: (alertId?: string | null, ruleId?: string | null) =>
Copy link
Contributor

Choose a reason for hiding this comment

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

@benakansara, alertId and ruleId should not be optional arguments. But the PR is already merged

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@fkanout agreed, I think there is no use case where alertDetails() will be called without parameters. But in case it does, user will be redirected to Alerts page. It will not break the page. For code clarity, I agree to not make it optional. I will include this change in another PR.

@benakansara benakansara deleted the feature/alert-details-link branch November 18, 2022 00:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:skip This commit does not require backporting release_note:skip Skip the PR/issue when compiling release notes v8.5.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants