Skip to content

Conversation

@cotti
Copy link
Contributor

@cotti cotti commented Oct 27, 2025

Closes #2092

@cotti cotti self-assigned this Oct 27, 2025
@cotti cotti requested a review from a team as a code owner October 27, 2025 07:52
@cotti cotti added the feature label Oct 27, 2025
@cotti cotti requested a review from a team as a code owner October 27, 2025 07:52
@cotti cotti requested a review from Mpdreamz October 27, 2025 07:52
@github-actions
Copy link

github-actions bot commented Oct 27, 2025

🔍 Preview links for changed docs

Copy link
Member

@Mpdreamz Mpdreamz left a comment

Choose a reason for hiding this comment

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

I am not in love with with the previous moniker.

Could this be a mutation? e.g

{{ .elasticsearch | version_legacy }}

Ideally we can support version and base also as mutations

{{ .elasticsearch | version }}
{{ .elasticsearch | version_base }} ?


foreach (var (id, system) in versionsConfig.VersioningSystems)
foreach (var (id, system, previousVersion) in
versionsConfig.VersioningSystems.Select(kvp =>
Copy link
Member

Choose a reason for hiding this comment

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

Ensure VersioningSystems is correct and we can read it.

e.g add system.Legacy as an additional property so we can keep on simply itterating on VersioningSystems

@shainaraskas
Copy link
Contributor

shainaraskas commented Oct 27, 2025

I am not in love with with the previous moniker.

legacy is not ideal either. it's a legacy-ish docs system, but the products are still in active support. while this term is good enough for me, I could see it being confusing for contributors and maybe sending the wrong message for users looking under the hood.

likewise, while I appreciate that this is a straightforward way to make this change, it's not going to be robust long term (i.e. once we hit a new major). the info we actually want here is "the last minor of the previous major", which will break down when we move to stack 10 and 9.x docs are accessible in a way other than traversing mapped pages. I'd rather just see this as another piece of info stored in versions.yml ... we can avoid adding it until it's needed, product by product.

alt: we just store this as a sub in docset.yml. again, we don't need this for all products afaik (maybe @colleenmcginnis can correct me if she sees a big need for this in ingest tool land)

@colleenmcginnis
Copy link
Contributor

alt: we just store this as a sub in docset.yml. again, we don't need this for all products afaik (maybe @colleenmcginnis can correct me if she sees a big need for this in ingest tool land)

Nope. I don't see any need for this in ingest docs. For the most part we just refer to 8.19 (minor only).

@shainaraskas
Copy link
Contributor

Finally, this actually doesn't do what I think @eedugon was asking for. I think edu wants to specify down to the patch version, and this just pulls the minor because it's using the mapped page info, which is not aware of the patch version.

@eedugon
Copy link
Contributor

eedugon commented Oct 28, 2025

I agree with @shainaraskas , we need something that substitutes to 8.16.6 today, and whenever we deliver a new patch release the substitution will change to 8.19.7, etc.

Getting 8.19 almost doesn't add any benefit as that's not going to change in the next 2 years.

@cotti
Copy link
Contributor Author

cotti commented Oct 28, 2025

I see. Yeah, the need for the patch version means the initial premise here of picking this information from legacy url mappings isn't good enough.

We can add this information to versions.yml, is this worth pursuing this change?

@shainaraskas
Copy link
Contributor

@cotti I think this is mostly a nice to have feature but not critical. might be worth doing if it's trivially easy

@eedugon
Copy link
Contributor

eedugon commented Oct 31, 2025

@cotti , @shainaraskas : if we want to automate this and go to the source of truth of that version I'd say that we can get it from the legacy elastic/docs repository.

The file /shared/versions/stack/8.19.asciidoc has the latest patch on the first line:

:version:                8.19.6

And it would be automatically updated after every release :)

So if we can make docs-builder to fetch it we wouldn't need to manually touch docs-V3 after releasing a 8.19 version.

But keeping it in versions.yaml and just manually updating it after every 8.19 release is also a good approach, happy with that also.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature Request]: Provide a version substitution for latest 8.19.x

6 participants