Replace old Security API doc links with API ref links in doc link service#223388
Conversation
|
Pinging @elastic/kibana-docs (Team:Docs) |
|
I've added a commit because it seems like there are some hard-coded occurrences of the old URLs which is something we hit in #217722 too. I tried to switch from "be" to "includes" so we could omit that hard-coded URL part of the string from the test like in #219005 or #219656 but it continued to fail until I copied in the full new URL. Ideally this would be fixed after discussing with appropriate dev team. |
Hi @lcawl I think your problem was that in the first commit where you tried to change this, the Basically use this version please: |
Is there a way to do it but omit the last sentence from that test (" See https://www.elastic.co/docs/api/doc/kibana/v8/group/endpoint-security-detections-api for more detail.")? That's what I was trying and failing to accomplish, but has been accomplished in other places where we test only a part of a string not the whole string (e.g. in degraded_field_flyout.ts). This minimizes the fragility of the test suite when/if the URL changes again in the doc link service. |
As discussed offline, the |
jkelas
left a comment
There was a problem hiding this comment.
I verified the code, it is OK.
I discussed the commented issue with the author and advised on the proper structure.
LGTM now. Approving.
💚 Build Succeeded
Metrics [docs]Async chunks
Page load bundle
History
|
…vice (elastic#223388) This PR replaces the old Security API doc links with API refence links in the Kibana doc link service. [This security-docs PR](elastic/security-docs#6872), which removes outdated Security Detections asciidoc API docs, is failing with the following error: > INFO:build_docs:Bad cross-document links: > INFO:build_docs: Kibana [8.x]: src/platform/packages/shared/kbn-doc-links/src/get_doc_links.ts contains broken links to: > INFO:build_docs: - en/security/8.x/rule-api-overview.html > INFO:build_docs: - en/security/8.x/signals-migration-api.htm Replacing these links in the Kibana doc link service should unblock the docs PR. The links were replaced in `main` in [this PR](elastic#219005). --------- Co-authored-by: Lisa Cawley <lcawley@elastic.co> Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com> Co-authored-by: Jacek Kolezynski <jacek.kolezynski@elastic.co> (cherry picked from commit 3579e5c)
💔 Some backports could not be created
Note: Successful backport PRs will be merged automatically after passing CI. Manual backportTo create the backport manually run: Questions ?Please refer to the Backport tool documentation |
…ink service (#223388) (#224208) This will backport the following commits from `8.19` to `8.18`: * #223388 Co-authored-by: Lisa Cawley <lcawley@elastic.co> Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com> Co-authored-by: Jacek Kolezynski <jacek.kolezynski@elastic.co>
This PR replaces the old Security API doc links with API reference links in the Kibana doc link service.
This security-docs PR, which removes outdated Security Detections asciidoc API docs, is failing with the following error:
Replacing these links in the Kibana doc link service should unblock the docs PR.
The links were replaced in
mainin this PR.