Backend: `~latest` will return the latest semantic version of the component
<!-- ## Implementation Issue To-Do list (_NOTE: This section can be removed when the issue is ready for creation_) - [ ] Ensure that issue title is concise yet descriptive - [ ] Add `Frontend :` or `Backend: ` per group [naming conventions](https://about.gitlab.com/handbook/engineering/development/ops/verify/pipeline-authoring/#splitting-issues) - [ ] Ensure the issue containing the feature or change proposal and related discussions is linked as related to this implementation issue. - [ ] Aside from default labeling, please make sure to include relevant labels for `type::`, `workflow::`, and `~frontend`/`~backend` labeling. - [ ] Issues with user-facing changes should include the `~UX` label. --> ## Summary With the recent implementation of semantic versioning in https://gitlab.com/gitlab-org/gitlab/-/issues/427286, there is a need now to ensure when a component is referencing `~latest` that it points to the latest semantic version of the component. ## Proposal `~latest` will point to the component's catalog_resource_versions latest semantic version record. ## Confirm purpose and User Reception (how does this benefit the user?) This feature is that it will allow component consumers to stay current without having to manually update to the latest major/minor/path version of the component. ## Additional details <!-- _NOTE: If the issue has addressed all of these questions, this separate section can be removed._ --> Some relevant technical details, if applicable, such as: - Does this need a ~"feature flag"? - Does there need to be an associated ~"instrumentation" issue created related to this work? - Is there an example response showing the data structure that should be returned (new endpoints only)? - What permissions should be used? - Is this EE or CE? - [ ] EE - [ ] CE - Additional comments: <!-- ## Documentation _NOTE: This section is optional, but can be used for easy access to any relevant documentation URLs._ --> ## Links/References
issue
Advertisement
Advertisement