Skip to content

[Feature Request] Empty Tag will Serve Latest Version (Highest Semver) #175

Open
@cahillsf

Description

@cahillsf

The current behavior of the docs site will serve the tag with the most recent time attribute (src code) if no tag is provided in the URL params. My current understanding is that the time attribute is populated based on the latest push to the tag when the tag is indexed. It seems that once the tag has been initially indexed, the time will not be updated as the app will only reindex tags it has not seen before (src).

This means that repo owners do not necessarily control the ordering of the tags and the site will not always serve the latest version as indicated by semver. For example, currently the CAPI repo is serving v1.4.5 when no tag is provided in the URL params, despite the fact that v1.5.0 is the true latest.

This is a request to update the logic when no tag is provided in the URL params to prefer the latest tag by semver (if the repo's tags adhere to semver), rather than the time attribute from the tags relation in the doc db.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions