Skip to content

Add API endpoint to publish CI Catalog Resource Version

Furkan Ayhan requested to merge 442783-publish-component-api into master

What does this MR do and why?

Today, when publishing a new version to the CI Catalog, the metadata of components are fetched from the repository and extracted from the files.

The goal is to move this responsibility to release-cli and accept the required metadata from the client. To this end, a new API endpoint will accept components_data and pass it to Ci::Catalog::Resources::ReleaseService.

In this MR, we are implementing the new API endpoint POST /projects/:id/catalog/publish to publish a CI Catalog Resource Version.

Related to #442783 (closed)

Implementation table

Step Status
Extract CI catalog component builder into a ser... (!159703 - merged)
Add published_by to CI Catalog Resource Version (!162843 - merged)
Backfill published_by_id of catalog_resource_ve... (!163301 - merged)
Add components_data to Ci Catalog services (!163723 - merged)
Add API endpoint to publish CI Catalog Resource... (!164858 - merged)

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Furkan Ayhan

Merge request reports

Loading