-
Notifications
You must be signed in to change notification settings - Fork 52
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
Do not show modal for trusted repositories #1172
Conversation
Signed-off-by: Oleksii Kurinnyi <[email protected]>
Signed-off-by: Oleksii Kurinnyi <[email protected]>
Signed-off-by: Oleksii Kurinnyi <[email protected]>
@@ -10,6 +10,8 @@ | |||
|
|||
FROM docker.io/node:18.19.1-alpine3.19 | |||
|
|||
LABEL quay.expires-after=1w |
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.
was not aware of this feature - https://docs.redhat.com/ja/documentation/red_hat_quay/3.3/html/use_red_hat_quay/tag-expiration
why do we need it?
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.
we use this docker file to build images for testing purposes, so we don't need them to be in the registry forever.
great follow up PR, should be backported to 7.90.x for 3.16 cc: @dmytro-ndp @artaleks9 |
Signed-off-by: Oleksii Kurinnyi <[email protected]>
Docker image build succeeded: quay.io/eclipse/che-dashboard:pr-1172 kubectl patch commandkubectl patch -n eclipse-che "checluster/eclipse-che" --type=json -p="[{"op": "replace", "path": "/spec/components/dashboard/deployment", "value": {containers: [{image: "quay.io/eclipse/che-dashboard:pr-1172", name: che-dashboard}]}}]" |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1172 +/- ##
=======================================
Coverage 90.08% 90.08%
=======================================
Files 432 432
Lines 44718 44763 +45
Branches 3078 3095 +17
=======================================
+ Hits 40282 40323 +41
- Misses 4399 4402 +3
- Partials 37 38 +1 ☔ View full report in Codecov by Sentry. |
Signed-off-by: Oleksii Kurinnyi <[email protected]>
Docker image build succeeded: quay.io/eclipse/che-dashboard:pr-1172 kubectl patch commandkubectl patch -n eclipse-che "checluster/eclipse-che" --type=json -p="[{"op": "replace", "path": "/spec/components/dashboard/deployment", "value": {containers: [{image: "quay.io/eclipse/che-dashboard:pr-1172", name: che-dashboard}]}}]" |
@akurinnoy : thanks for the fixup! Validation results on Dev Spaces 3.16.0.RC + quay.io/eclipse/che-dashboard:pr-1172
worked as expected: Untrusted.Repository.modal.reappears.when.the.workspace.starts.webm
worked as expected: test_start_existed_workspace.webm
couldn't reproduce Things to addressStoring of trusted sources seems to be broken, and popup.appears.again.when.create.new.workspace.from.the.same.factory.URL.webmNeed help to configure Che Dashboard to Dev Spaces specific samples in Dashboard |
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.
LGTM
Signed-off-by: Oleksii Kurinnyi <[email protected]>
Docker image build succeeded: quay.io/eclipse/che-dashboard:pr-1172 kubectl patch commandkubectl patch -n eclipse-che "checluster/eclipse-che" --type=json -p="[{"op": "replace", "path": "/spec/components/dashboard/deployment", "value": {containers: [{image: "quay.io/eclipse/che-dashboard:pr-1172", name: che-dashboard}]}}]" |
@akurinnoy : I have retested new image from this PR: quay.io/eclipse/che-dashboard@sha256:6192db43235b5f1b729e5e8ea5c72d5793d3a527abdf907e488d4ecfc1d9365a In the updated User Dashboard the Untrusted Author popup didn't appear again when create new workspace from the same factory URL. I still need help with verification of the next fix: Provided Dev Spaces configuration didn't work. |
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.
@akurinnoy : I have managed to test it with Dev Spaces 3.16.0.RC using quay.io/abazko/che-dashboard:CRW-7139 which is quay.io/eclipse/che-dashboard:pr-1172 adapted to run in Dev Spaces by @tolusha .
No issues mentioned in the description of PR have been reproduced:
che-dashboard_pull_1172_with_devspaces.webm
Well done!
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: akurinnoy, dmytro-ndp, olexii4 The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@dmytro-ndp, Thank you! |
* fix: unexpected modal for untrusted repo Signed-off-by: Oleksii Kurinnyi <[email protected]> * fix: disable the Logs and Events tabs until the workspace is created Signed-off-by: Oleksii Kurinnyi <[email protected]> * chore: set dockerimage tag expiration date Signed-off-by: Oleksii Kurinnyi <[email protected]> * fixup! fix: unexpected modal for untrusted repo * fixup! fix: disable the Logs and Events tabs until the workspace is created * fix: configmap samples are trusted Signed-off-by: Oleksii Kurinnyi <[email protected]> * fix: two browser tabs when starting a factory flow Signed-off-by: Oleksii Kurinnyi <[email protected]> * fixup! fix: two browser tabs when starting a factory flow * fix: unexpected modal for trusted source Signed-off-by: Oleksii Kurinnyi <[email protected]> --------- Signed-off-by: Oleksii Kurinnyi <[email protected]>
* Do not show modal for trusted repositories (#1172) * fix: unexpected modal for untrusted repo Signed-off-by: Oleksii Kurinnyi <[email protected]> * fix: disable the Logs and Events tabs until the workspace is created Signed-off-by: Oleksii Kurinnyi <[email protected]> * chore: set dockerimage tag expiration date Signed-off-by: Oleksii Kurinnyi <[email protected]> * fixup! fix: unexpected modal for untrusted repo * fixup! fix: disable the Logs and Events tabs until the workspace is created * fix: configmap samples are trusted Signed-off-by: Oleksii Kurinnyi <[email protected]> * fix: two browser tabs when starting a factory flow Signed-off-by: Oleksii Kurinnyi <[email protected]> * fixup! fix: two browser tabs when starting a factory flow * fix: unexpected modal for trusted source Signed-off-by: Oleksii Kurinnyi <[email protected]> --------- Signed-off-by: Oleksii Kurinnyi <[email protected]> * fix: untrusted modal Signed-off-by: Oleksii Kurinnyi <[email protected]> --------- Signed-off-by: Oleksii Kurinnyi <[email protected]>
What does this PR do?
This PR fixes
Screenshot/screencast of this PR
Bug # 1
Screen.Recording.2024-08-21.at.13.15.53.mov
Bug # 2
Screen.Recording.2024-08-21.at.13.41.02.mov
With fixes
Screen.Recording.2024-08-21.at.13.23.35.mov
What issues does this PR fix or reference?
fixes eclipse-che/che#23097
fixes eclipse-che/che#23107
fixes eclipse-che/che#23106
fixes CRW-7139
Is it tested? How?
See the screencasts.
Release Notes
Docs PR