-
Notifications
You must be signed in to change notification settings - Fork 61
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
When turned to using service account for a Sandbox a wrong warning me… #3879
When turned to using service account for a Sandbox a wrong warning me… #3879
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #3879 +/- ##
===========================================
+ Coverage 32.37% 45.42% +13.05%
===========================================
Files 85 85
Lines 6505 6487 -18
Branches 1349 1341 -8
===========================================
+ Hits 2106 2947 +841
+ Misses 4399 3540 -859 ☔ View full report in Codecov by Sentry. |
I haven't run into this issue, and I'm not able to reproduce it, so I have no idea if this fixes it. |
In order to reproduce you need to have at least two contexts pointing to a Sandbox cluster, one of them is to be a valid account (valid user and namespace), and the second one some "outdated" (pointing to a different project or an outdated username), f.i. I have:
Steps to reproduce:
|
I think I probably misunderstand something. If you're trying switching to the outdated context, but then using the token causes you to switch to the valid context, then it makes sense to present the warning that the namespace is different. |
This is exactly what it should do. |
@datho7561 here is the demo of the wrong warning message appearance: Screencast.from.2024-02-12.15-02-20.webmWe're going to switch to project |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the screencast, Victor. For whatever reason, I can't reproduce your issue on my computer. However, this change seems reasonable, and doesn't cause any new issues from my testing, so if it fixes the bug for you, I think we should go ahead and merge this.
First though, it seems there is a function that becomes unused after your change, so we should probably remove it
…ssage appears redhat-developer#3878 Fixes: redhat-developer#3878 Signed-off-by: Victor Rubezhny <[email protected]>
b06bcc1
to
6feb4ba
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. Thank you, Victor!
…ssage appears #3878
Fixes: #3878