-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
Use documentation link service for Watcher #93339
Conversation
@elasticmachine merge upstream |
@elasticmachine merge upstream |
@elasticmachine merge upstream |
@elasticmachine merge upstream |
@elasticmachine merge upstream |
[ACTION_TYPES.SLACK]: `${links.watcher.slackAction}`, | ||
[ACTION_TYPES.PAGERDUTY]: `${links.watcher.pagerDutyAction}`, | ||
[ACTION_TYPES.JIRA]: `${links.watcher.jiraAction}`, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i noticed when testing this that the #configuring-x
hash was removed from the end of the URL after these changes were applied. Do you think we should re-add them @jrodewig ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @jloleysens. This is intentional. I think the links are better without the anchor. The intro of each action page contains requirements that apply to both UI and API users. For example, in the Slack action docs:
Linking to the #configuring-x
"skips" this intro. The #configuring-x
sections just provide an API equivalent of the UI configuration. I don't think it'll be helpful to UI users in most cases.
💚 Build Succeeded
Metrics [docs]Async chunks
History
To update your PR or re-run it, just comment with: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for explaining the decision to remove the hash in the URLs @jrodewig . Happy for these changes to be merged.
Thanks @jloleysens! |
Summary
Relates to #88107
This PR replaces hard-coded links with keywords from the documentation link service.
CC @lcawl
Screenshot
The links are used in the Watcher UI in places like this: