Skip to content

Conversation

@olexii4
Copy link
Contributor

@olexii4 olexii4 commented Dec 1, 2025

What does this PR do?

This PR fixes the issue where workspace creation from samples always created new workspaces, ignoring the "Create new" checkbox. The fix ensures factory attributes (revision, editor, storageType, etc.) are included in source comparison.

Screenshot/screencast of this PR

What issues does this PR fix or reference?

Fixes https://issues.redhat.com/browse/CRW-9659

Is it tested? How?

  1. Deploy DS with the image from this PR.
  2. Go to User Dashboard and ensure "Create New" check box is turned on by default.
  3. Create a new workspace from Java Lombok sample.
  4. Turn off "Create New" check box.
  5. Try to create a new workspace from Java Lombok sample.

Release Notes

Docs PR

@openshift-ci
Copy link

openshift-ci bot commented Dec 1, 2025

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

@che-bot
Copy link
Contributor

che-bot commented Dec 1, 2025

Click here to review and test in web IDE: Contribute

@github-actions
Copy link

github-actions bot commented Dec 1, 2025

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

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-1422", name: che-dashboard}]}}]"

@codecov
Copy link

codecov bot commented Dec 1, 2025

Codecov Report

❌ Patch coverage is 98.01325% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 92.59%. Comparing base (721cecf) to head (55efc12).
⚠️ Report is 5 commits behind head on main.

Files with missing lines Patch % Lines
...ontend/src/store/Workspaces/Preferences/helpers.ts 90.32% 3 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff            @@
##             main    #1422    +/-   ##
========================================
  Coverage   92.59%   92.59%            
========================================
  Files         519      520     +1     
  Lines       48700    48819   +119     
  Branches     3604     3621    +17     
========================================
+ Hits        45092    45206   +114     
- Misses       3570     3575     +5     
  Partials       38       38            

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@github-actions
Copy link

github-actions bot commented Dec 1, 2025

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

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-1422", name: che-dashboard}]}}]"

@github-actions
Copy link

github-actions bot commented Dec 1, 2025

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

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-1422", name: che-dashboard}]}}]"

1 similar comment
@github-actions
Copy link

github-actions bot commented Dec 1, 2025

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

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-1422", name: che-dashboard}]}}]"

@github-actions
Copy link

github-actions bot commented Dec 1, 2025

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

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-1422", name: che-dashboard}]}}]"

@olexii4 olexii4 force-pushed the CHE-23666 branch 2 times, most recently from 84993ed to 3810a85 Compare December 1, 2025 16:48
@github-actions
Copy link

github-actions bot commented Dec 1, 2025

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

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-1422", name: che-dashboard}]}}]"

1 similar comment
@github-actions
Copy link

github-actions bot commented Dec 1, 2025

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

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-1422", name: che-dashboard}]}}]"

@github-actions
Copy link

github-actions bot commented Dec 1, 2025

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

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-1422", name: che-dashboard}]}}]"

@github-actions
Copy link

github-actions bot commented Dec 1, 2025

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

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-1422", name: che-dashboard}]}}]"

@github-actions
Copy link

github-actions bot commented Dec 1, 2025

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

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-1422", name: che-dashboard}]}}]"

@github-actions
Copy link

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

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-1422", name: che-dashboard}]}}]"

@olexii4 olexii4 marked this pull request as ready for review December 18, 2025 10:48
@olexii4 olexii4 changed the title [wip]fix: preserve branch info when creating workspace with editor definition fix: workspace source comparison Dec 18, 2025
@svor svor requested a review from vinokurig December 18, 2025 11:18
@github-actions
Copy link

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

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-1422", name: che-dashboard}]}}]"

Copy link
Contributor

@vinokurig vinokurig left a comment

Choose a reason for hiding this comment

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

Works as expected according to the provided description. Import via SSH url with branch works as expected.

Copy link
Contributor

@svor svor left a comment

Choose a reason for hiding this comment

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

LGTM

@svor svor requested a review from artaleks9 December 24, 2025 09:10
Signed-off-by: Oleksii Orel <oorel@redhat.com>
Signed-off-by: Oleksii Orel <oorel@redhat.com>
Signed-off-by: Oleksii Orel <oorel@redhat.com>
Signed-off-by: Oleksii Orel <oorel@redhat.com>
Signed-off-by: Oleksii Orel <oorel@redhat.com>
@github-actions
Copy link

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

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-1422", name: che-dashboard}]}}]"

@artaleks9
Copy link
Contributor

/retest

@artaleks9
Copy link
Contributor

artaleks9 commented Dec 25, 2025

Verified on Eclipse Che deployed on OCP v4.20 with quay.io/eclipse/che-dashboard:pr-1422

Creating an existing/new workspace associated with the "Create new" checkbox works correctly.
The "trust the authors of this repository" popup functionality works as expected.

pr-1422

@openshift-ci
Copy link

openshift-ci bot commented Dec 25, 2025

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: artaleks9, olexii4, svor, vinokurig

The full list of commands accepted by this bot can be found 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

@olexii4 olexii4 merged commit 2059704 into main Dec 26, 2025
19 checks passed
@olexii4 olexii4 deleted the CHE-23666 branch December 26, 2025 03:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants