Skip to content

Ci Catalog index implement version

What does this MR do and why?

Replace the mock data for the catalog item version with the actual data that is coming from the API and update the specs accordingly if required.

Screenshots or screen recordings

Before After
Screenshot_2023-05-29_at_3.08.05_PM

How to set up and validate locally

  1. Make sure you have an ultimate license for your GDK
  2. Enable the feature flag: ci_namespace_catalog_experimental
  3. Login as a user
  4. Create a few projects that you will be able to convert to Ci resources (ideally 20+).
  5. Once you have done so, get the ID of the first new project you wanted to convert. Then in Rails console, run:
projects = Project.where("id > ?", your_first_project_id)
projects.each do |project|
  project.update!(description: 'description')  
  ::Ci::Catalog::Resource.new(project_id: project.id).save   
end  
  1. Navigate to /$namespace/$project/-/ci/catalog/resources
  2. Notice that you can see a versions on catalog items

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #413250 (closed)

Merge request reports