Update Catalog star icon
What does this MR do and why?
Star icon should always be star-o regardless of star count.
Screenshots or screen recordings
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
Before | After |
---|---|
How to set up and validate locally
- Enable the FF
global_ci_catalog
- Create a few projects that you will be able to convert to Ci resources. Create them under the admin namespace for ease of testing.
- 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 -1)
projects.each do |project|
project.update!(description: 'description')
::Ci::Catalog::Resource.new(project_id: project.id).save
end
- Then in the rails console, do
Ci::Catalog::Resource.all.each do |r| r.update("state", "published") end
- Navigate to
Explore -> CI/CD Catalog
- Notice that you see Catalog resources
- Notice the favorite icon is the bordered one
- Go favorite any of these projects
- Notice the star is still bordered
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.