Skip to content

Conversation

@thepetk
Copy link
Contributor

@thepetk thepetk commented Oct 20, 2023

What does this PR do / why we need it

This PR fixes the issue of tags not getting updated when a user chooses another version of the stack. So it updates the detailed view of the stack to show every time the tags of the selected version.

On the other hand it adds a check to the grid and the detailed view. If a tag is named Deprecated it updates the color of the tag from blue to red.

Other than that unit tests have been added for all new functions.

Example Screenshots

  • Grid View with a default version Deprecated tag:
    Screenshot from 2023-10-20 20-37-40

  • Detailed view with deprecated:
    Screenshot from 2023-10-20 20-36-52

  • Detailed view of another version not having Deprecated tag:
    Screenshot from 2023-10-20 20-37-14

Which issue(s) does this PR fix

Fixes devfile/api#1289

PR acceptance criteria

  • Unit Tests
  • E2E Tests
  • Documentation

How to test changes / Special notes to the reviewer

  • follow the instructions mentioned inside the issue
  • after you have build the registry which contains a stack with a Deprecated tag inside, run locally the registry-viewer app:
    yarn nx serve registry-viewer --configuration=development

Signed-off-by: thepetk <thepetk@gmail.com>
Signed-off-by: thepetk <thepetk@gmail.com>
Signed-off-by: thepetk <thepetk@gmail.com>
Signed-off-by: thepetk <thepetk@gmail.com>
@openshift-ci
Copy link

openshift-ci bot commented Oct 23, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: kim-tsao, thepetk

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@thepetk thepetk merged commit 37ebc28 into devfile:bugfix/incorrect_tags Oct 23, 2023
@thepetk thepetk mentioned this pull request Oct 23, 2023
3 tasks
thepetk added a commit that referenced this pull request Oct 23, 2023
* Add functions for devfile tags

Signed-off-by: thepetk <thepetk@gmail.com>

* Update detailed view and grid

Signed-off-by: thepetk <thepetk@gmail.com>

* Create new color in tailwind

Signed-off-by: thepetk <thepetk@gmail.com>

* Apply format

Signed-off-by: thepetk <thepetk@gmail.com>

---------

Signed-off-by: thepetk <thepetk@gmail.com>
thepetk added a commit that referenced this pull request Oct 24, 2023
* Add functions for devfile tags



* Update detailed view and grid



* Create new color in tailwind



* Apply format



---------

Signed-off-by: thepetk <thepetk@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants