Skip to content

Add docs for legacy URL aliases#110279

Merged
jportner merged 9 commits intoelastic:masterfrom
jportner:issue-110145-add-legacy-url-alias-conflict-docs
Aug 30, 2021
Merged

Add docs for legacy URL aliases#110279
jportner merged 9 commits intoelastic:masterfrom
jportner:issue-110145-add-legacy-url-alias-conflict-docs

Conversation

@jportner
Copy link
Contributor

@jportner jportner commented Aug 26, 2021

Resolves #110145.

I do not intend to backport this as it is not applicable to pre-8.0 versions of Kibana.

Docs preview links:

@jportner jportner added v8.0.0 release_note:skip Skip the PR/issue when compiling release notes backport:skip This PR does not require backporting labels Aug 26, 2021
@jportner jportner requested a review from legrego August 26, 2021 16:42
Copy link
Member

@legrego legrego left a comment

Choose a reason for hiding this comment

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

Looks great overall! Just a couple of questions and suggestions from me. It's probably worth asking the docs team to review as well

in this situation, you might want to disable the legacy URL alias completely. This leaves the saved object intact and you will not lose any
data by disabling the alias -- you just won't be able to use the old URL to access that saved object anymore.

To disable a legacy URL alias, you'll need three pieces of information about it: the `targetSpace`, the `targetType`, and the `sourceId`.
Copy link
Member

Choose a reason for hiding this comment

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

It might be good to describe exactly what these terms are. They'll likely be foreign concepts to the users who end up on this page.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ah, I was a bit torn on that. I do explain them on the linked API page, I thought it may be best if we don't state the same thing on two different pages. I'm interested to see what the Docs team thinks.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@gchaps based on your comments below, it sounds like you think this is clear enough with your suggested changes?

Comment on lines +38 to +40
Legacy URL aliases are intended to be fully transparent, but there are some very rare situations where this can lead to an error. For
example, you may have a dashboard and one of the visualizations may fail to load, directing you to this page. If you encounter an error
in this situation, you might want to disable the legacy URL alias completely. This leaves the saved object intact and you will not lose any
Copy link
Member

Choose a reason for hiding this comment

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

This explains the symptom of the error, but not what caused the error. Do you think it would be helpful to give an example of that causes these types of errors, or would that be TMI?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm afraid that an example of the causes would be a bit too much. You can't get into that situation through "normal" usage of Kibana (simply by virtue of upgrading to 8.0, or by sharing objects, or by importing objects) -- we believe the only way to get into this situation is by using third-party integrations.

I did toy with the idea of showing a screenshot of an error that you might see as an example, but that's not been implemented yet. Also interested to hear what the Docs team thinks about this.

Copy link
Contributor

Choose a reason for hiding this comment

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

I think the text is good as it is, especially since the only way to get into the situation is by using third-party integrations. I don't feel a screenshot is necessary.

@jportner jportner requested a review from a team August 26, 2021 19:02
@jportner jportner marked this pull request as ready for review August 26, 2021 19:02
(Required, object array) The aliases to disable.
+
.Properties of `aliases`
[%collapsible%open]
Copy link
Contributor

Choose a reason for hiding this comment

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

How about formatting with a box as in this doc .

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm not sure what is making that one show in boxes but this one isn't. Perhaps the sub-properties end in ::: instead of ::? It doesn't make a difference in my IDE previewer, but I'll make the change and see if it changes how it's rendered in the docs website.

Copy link
Contributor

Choose a reason for hiding this comment

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

I wouldn't spend too much time on this. The formatting also works find as it is.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I tried one more thing and it's fixed now 😄
Needed to add [role="child_attributes"] before the section.

Copy link
Contributor

@gchaps gchaps left a comment

Choose a reason for hiding this comment

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

LGTM with one minor edit.

@jportner jportner merged commit 30f1974 into elastic:master Aug 30, 2021
@jportner jportner deleted the issue-110145-add-legacy-url-alias-conflict-docs branch August 30, 2021 17:27
@jportner
Copy link
Contributor Author

jportner commented Oct 9, 2021

I do not intend to backport this as it is not applicable to pre-8.0 versions of Kibana.

I updated the UI components in #114172 and backported it to 7.x, and I added doc links to these docs in that PR. So I need to backport this too.

@jportner jportner added v7.16.0 auto-backport Deprecated - use backport:version if exact versions are needed and removed backport:skip This PR does not require backporting labels Oct 9, 2021
@kibanamachine
Copy link
Contributor

💔 Backport failed

Status Branch Result
7.x Commit could not be cherrypicked due to conflicts

To backport manually run:
node scripts/backport --pr 110279

jportner added a commit to jportner/kibana that referenced this pull request Oct 9, 2021
# Conflicts:
#	docs/developer/advanced/index.asciidoc
jportner added a commit that referenced this pull request Oct 9, 2021
# Conflicts:
#	docs/developer/advanced/index.asciidoc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-backport Deprecated - use backport:version if exact versions are needed release_note:skip Skip the PR/issue when compiling release notes v7.16.0 v8.0.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Docs] Manually disabling legacy URL aliases

4 participants