Skip to content

Conversation

@bmorelli25
Copy link
Member

Summary

This PR proposes the addition of a new shared attribute, is-current-version. is-current-version will be set to true in the currently released stack version, and false in all other versions.

Release

At each minor and major release, a two-line update will be required. The previously current version will need to be set to false, and the newly current version will need to be set to true.

For example, in the 7.11 release, shared/versions/stack/7.10.asciidoc will set :is-current-version: to false and shared/versions/stack/7.11.asciidoc: will set :is-current-version: to true.

If Greg and Lisa are cool with this, I'll update the release documentation as well.

Related

Required for elastic/observability-docs#350.

Copy link
Contributor

@dedemorton dedemorton left a comment

Choose a reason for hiding this comment

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

LGTM.

I think the value of putting this in a central location outweighs the minor inconvenience of having an extra setting to change at release time. Plus if someone forgets, that's OK because it just means that the video will display in older versions (not a deal breaker).

It's been awhile since I've bumped doc versions, but beats has a script they use. If we don't have that for the docs build, might be time to add it (general comment, not intended for this PR).

Copy link
Member

@gtback gtback left a comment

Choose a reason for hiding this comment

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

I'm 👍🏻 with this approach. It's not the most elegant, but practicality beats complexity 😁

@lcawl
Copy link
Contributor

lcawl commented Jan 26, 2021

This reminds me of the work @nik9000 did to create a {source_branch} attribute seamlessly for us to use via #1147. Since "current" is currently defined in the conf.yaml, it would have been nice to have the build therefore set an "isCurrent" attribute (or whatever) from that info too. But I don't think it's worth investing time in a fancy solution like that in the current system.

Copy link
Contributor

@lcawl lcawl left a comment

Choose a reason for hiding this comment

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

Added comments and link for future vision, but LGTM in current world

@bmorelli25 bmorelli25 merged commit b9d239d into elastic:master Jan 27, 2021
@bmorelli25 bmorelli25 deleted the add-iscurrent branch January 27, 2021 18:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants