Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for untrue !Deleted flag #3049

Merged

Conversation

ashley-o0o
Copy link
Contributor

@ashley-o0o ashley-o0o commented Jul 31, 2024

Closes: RHOAIENG-8553

Description

Fixes a bug where a workbench created with a custom images shows a "! Deleted" flag when not true
Steps to reproduce this bug is in the JIRA ticket linked. Note the cluster type. I'm unable to reproduce this bug on a ROSA cluster currently.
Please reach out to me on slack if you need help testing this.

How Has This Been Tested?

npm run test. Locally on an OCP cluster

Test Impact

A jest test was added that checks if the fix fails when the image doesn't match
Before:
Screenshot 2024-07-31 at 1 52 59 PM

After:
Screenshot 2024-07-31 at 1 52 32 PM

Request review criteria:

Self checklist (all need to be checked):

  • The developer has manually tested the changes and verified that the changes work
  • Commits have been squashed into descriptive, self-contained units of work (e.g. 'WIP' and 'Implements feedback' style messages have been removed)
  • Testing instructions have been added in the PR body (for PRs involving changes that are not immediately obvious).
  • The developer has added tests or explained why testing cannot be added (unit or cypress tests for related changes)

If you have UI changes:

  • Included any necessary screenshots or gifs if it was a UI change.
  • Included tags to the UX team if it was a UI/UX change.

After the PR is posted & before it merges:

  • The developer has tested their solution on a cluster by using the image produced by the PR to main

@openshift-ci openshift-ci bot requested review from alexcreasy and pnaik1 July 31, 2024 17:51
@openshift-merge-robot openshift-merge-robot added the needs-rebase PR needs to be rebased label Jul 31, 2024
@ashley-o0o ashley-o0o force-pushed the 8553/fix-delete-flag-bug branch 3 times, most recently from 3596a57 to 32eb024 Compare July 31, 2024 19:04
@openshift-merge-robot openshift-merge-robot removed the needs-rebase PR needs to be rebased label Aug 1, 2024
@ashley-o0o ashley-o0o force-pushed the 8553/fix-delete-flag-bug branch 2 times, most recently from 3dc53ca to 447b9d1 Compare August 5, 2024 14:21
@christianvogt christianvogt requested review from lucferbux and removed request for alexcreasy and pnaik1 August 5, 2024 20:26
@christianvogt
Copy link
Contributor

@lucferbux can you please review this change

Copy link
Contributor

@lucferbux lucferbux left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok, with those tweaks the PR should be ready to go, it's great that the testint caught our error before integrating.

@ashley-o0o ashley-o0o force-pushed the 8553/fix-delete-flag-bug branch 4 times, most recently from f36a69f to ad52267 Compare August 7, 2024 17:23
Copy link
Contributor

@lucferbux lucferbux left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes look great now, I would recommend run the logic with @atheo89 and @jstourac detailed here before giving the lgtm.

I'll be out starting tomorrow, if they cannot verify it today, @mturley can you help me out here and give a lgtm?

@openshift-ci openshift-ci bot added the lgtm label Aug 8, 2024
Copy link
Contributor

openshift-ci bot commented Aug 8, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: lucferbux

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

The pull request process is described here

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

@openshift-ci openshift-ci bot added the approved label Aug 8, 2024
@lucferbux lucferbux removed the lgtm label Aug 8, 2024
@lucferbux
Copy link
Contributor

/hold

@openshift-ci openshift-ci bot added the do-not-merge/hold This PR is hold for some reason label Aug 8, 2024
@jstourac
Copy link
Member

jstourac commented Aug 8, 2024

Hi @lucferbux , I won't get to this today in the end, but will try to do it the first thing tomorrow. Andriana is on PTO, so she won't respond till next week, I'm afraid.

Copy link
Member

@jstourac jstourac left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I reviewed the code briefly and put two comments. Otherwise LGTM, but I'm not a typescript developer, so take this into account 🙂

Also, I tried the image on my cluster and seems that the fix works as expected.

@ashley-o0o
Copy link
Contributor Author

/unhold

@openshift-ci openshift-ci bot removed the do-not-merge/hold This PR is hold for some reason label Aug 9, 2024
@jstourac
Copy link
Member

jstourac commented Aug 9, 2024

/lgtm

@openshift-ci openshift-ci bot added the lgtm label Aug 9, 2024
@openshift-merge-bot openshift-merge-bot bot merged commit b9e2a52 into opendatahub-io:main Aug 9, 2024
6 checks passed
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.

6 participants