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

Editor Selector improvements #1079

Merged
merged 2 commits into from Apr 4, 2024
Merged

Editor Selector improvements #1079

merged 2 commits into from Apr 4, 2024

Conversation

akurinnoy
Copy link
Contributor

What does this PR do?

This PR improves the default behavior of the Create Workspace page, so now it initially enables the "default editor" flow when creating a new workspace. That means that if a user provides only a Git repo URL and clicks "Create&Open" then the dashboard will look into the repo for a custom editor, and if it does not find one, it will apply a default editor defined at the CR level.
Another improvement is showing "Tech Preview" labels propagated with some editors.

Screenshot 2024-03-28 at 11 30 49

Screenshot 2024-03-28 at 11 30 56

Screenshot 2024-03-28 at 11 31 11

What issues does this PR fix or reference?

Fixes eclipse-che/che#22879

Signed-off-by: Oleksii Kurinnyi <okurinny@redhat.com>
Signed-off-by: Oleksii Kurinnyi <okurinny@redhat.com>
@akurinnoy akurinnoy self-assigned this Mar 28, 2024
@che-bot
Copy link
Contributor

che-bot commented Mar 28, 2024

Click here to review and test in web IDE: Contribute

Copy link

Docker image build succeeded: quay.io/eclipse/che-dashboard:pr-1079

kubectl patch command
kubectl 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-1079", name: che-dashboard}]}}]"

Copy link

codecov bot commented Mar 28, 2024

Codecov Report

Attention: Patch coverage is 98.31933% with 2 lines in your changes are missing coverage. Please review.

Project coverage is 89.17%. Comparing base (b50ef27) to head (1641f75).
Report is 4 commits behind head on main.

Files Patch % Lines
.../components/EditorSelector/Gallery/Entry/index.tsx 88.23% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1079      +/-   ##
==========================================
+ Coverage   89.15%   89.17%   +0.01%     
==========================================
  Files         397      398       +1     
  Lines       40580    40664      +84     
  Branches     2735     2740       +5     
==========================================
+ Hits        36178    36261      +83     
- Misses       4376     4377       +1     
  Partials       26       26              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@ibuziuk ibuziuk requested a review from dmytro-ndp March 28, 2024 15:01
Copy link
Contributor

@olexii4 olexii4 left a comment

Choose a reason for hiding this comment

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

LGTM

@artaleks9 artaleks9 requested review from artaleks9 and removed request for dmytro-ndp April 3, 2024 11:33
@artaleks9
Copy link
Contributor

Verified on Eclipse Che with quay.io/eclipse/che-dashboard:pr-1079 - the functionality works as expected

Copy link

openshift-ci bot commented Apr 3, 2024

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: akurinnoy, artaleks9, ibuziuk, 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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@akurinnoy akurinnoy merged commit 89ad01c into main Apr 4, 2024
18 checks passed
@akurinnoy akurinnoy deleted the improve-editor-selector branch April 4, 2024 07:47
@devstudio-release
Copy link

Build 3.13 :: dashboard_3.x/470: Console, Changes, Git Data

@devstudio-release
Copy link

Build 3.13 :: dashboard_3.x/471: Console, Changes, Git Data

@devstudio-release
Copy link

@devstudio-release
Copy link

@devstudio-release
Copy link

@devstudio-release
Copy link

@devstudio-release
Copy link

@devstudio-release
Copy link

@devstudio-release
Copy link

@devstudio-release
Copy link

Build 3.13 :: dashboard_3.x/470: SUCCESS

Upstream sync done; /DS_CI/sync-to-downstream_3.x/6399 triggered

@devstudio-release
Copy link

@devstudio-release
Copy link

@devstudio-release
Copy link

@devstudio-release
Copy link

@devstudio-release
Copy link

@devstudio-release
Copy link

@devstudio-release
Copy link

Build 3.13 :: dashboard_3.x/471: SUCCESS

Upstream sync done; /DS_CI/sync-to-downstream_3.x/6400 triggered

@devstudio-release
Copy link

Build 3.13 :: copyIIBsToQuay/2599: Console, Changes, Git Data

@devstudio-release
Copy link

Build 3.13 :: sync-to-downstream_3.x/6401: SUCCESS

Build container: devspaces-operator-bundle synced; /DS_CI/get-sources-rhpkg-container-build_3.x/6363 triggered; /job/DS_CI/job/dsc_3.x triggered;

@devstudio-release
Copy link

Build 3.13 :: operator-bundle_3.x/2731: SUCCESS

Upstream sync done; /DS_CI/sync-to-downstream_3.x/6401 triggered

@devstudio-release
Copy link

Build 3.13 :: update-digests_3.x/6245: SUCCESS

Detected new images: rebuild operator-bundle
* dashboard; /DS_CI/operator-bundle_3.x/2731 triggered

@devstudio-release
Copy link

@devstudio-release
Copy link

Build 3.13 :: dsc_3.x/1882: Console, Changes, Git Data

@devstudio-release
Copy link

Build 3.13 :: update-digests_3.x/6246: UNSTABLE

No new images detected: nothing to do!

@devstudio-release
Copy link

Build 3.13 :: dsc_3.x/1882: SUCCESS

3.13.0-CI

@devstudio-release
Copy link

Build 3.13 :: copyIIBsToQuay/2599: SUCCESS

3.13
arches = x86_64, s390x, ppc64le;
  * LATEST DS OPERATOR BUNDLE = <a href=https://quay.io/repository/devspaces/devspaces-operator-bundle?tab=tags>registry-proxy.engineering.redhat.com/rh-osbs/devspaces-operator-bundle:3.13-90
  * LATEST DWO OPERATOR BUNDLE = <a href=https://quay.io/repository/devworkspace/devworkspace-operator-bundle?tab=tags>registry-proxy.engineering.redhat.com/rh-osbs/devworkspace-operator-bundle:0.27-3
+ x86_64-rhel8 IIB(s) copied:
  + quay.io/devspaces/iib:3.13-v4.15-702792-693074-x86_64
  + quay.io/devspaces/iib:3.13-v4.15-x86_64
  + quay.io/devspaces/iib:next-v4.15-x86_64
  + quay.io/devspaces/iib:3.13-v4.14-702771-693070-x86_64
  + quay.io/devspaces/iib:3.13-v4.14-x86_64
  + quay.io/devspaces/iib:next-v4.14-x86_64
  + quay.io/devspaces/iib:3.13-v4.13-702753-693064-x86_64
  + quay.io/devspaces/iib:3.13-v4.13-x86_64
  + quay.io/devspaces/iib:next-v4.13-x86_64
  + quay.io/devspaces/iib:3.13-v4.12-702725-693054-x86_64
+ s390x-rhel8 IIB(s) copied:
  + quay.io/devspaces/iib:3.13-v4.15-702792-693074-s390x
  + quay.io/devspaces/iib:3.13-v4.15-s390x
  + quay.io/devspaces/iib:next-v4.15-s390x
  + quay.io/devspaces/iib:3.13-v4.14-702771-693070-s390x
  + quay.io/devspaces/iib:3.13-v4.14-s390x
  + quay.io/devspaces/iib:next-v4.14-s390x
  + quay.io/devspaces/iib:3.13-v4.13-702753-693064-s390x
  + quay.io/devspaces/iib:3.13-v4.13-s390x
  + quay.io/devspaces/iib:next-v4.13-s390x
  + quay.io/devspaces/iib:3.13-v4.12-703022-693054-s390x
  + quay.io/devspaces/iib:3.13-v4.12-s390x
  + quay.io/devspaces/iib:next-v4.12-s390x
+ ppc64le-rhel8 IIB(s) copied:
  + quay.io/devspaces/iib:3.13-v4.15-702792-693074-ppc64le
  + quay.io/devspaces/iib:3.13-v4.15-ppc64le
  + quay.io/devspaces/iib:next-v4.15-ppc64le
  + quay.io/devspaces/iib:3.13-v4.14-702771-693070-ppc64le
  + quay.io/devspaces/iib:3.13-v4.14-ppc64le
  + quay.io/devspaces/iib:next-v4.14-ppc64le
  + quay.io/devspaces/iib:3.13-v4.13-702753-693064-ppc64le
  + quay.io/devspaces/iib:3.13-v4.13-ppc64le
  + quay.io/devspaces/iib:next-v4.13-ppc64le
  + quay.io/devspaces/iib:3.13-v4.12-703022-693054-ppc64le
  + quay.io/devspaces/iib:3.13-v4.12-ppc64le
  + quay.io/devspaces/iib:next-v4.12-ppc64le

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
6 participants