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: delete workspace flow #1318

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft

fix: delete workspace flow #1318

wants to merge 2 commits into from

Conversation

olexii4
Copy link
Contributor

@olexii4 olexii4 commented Feb 17, 2025

What does this PR do?

Fix delete workspace flow.

Screenshot/screencast of this PR

What issues does this PR fix or reference?

fix eclipse-che/che#23337

Is it tested? How?

Release Notes

Docs PR

Copy link

openshift-ci bot commented Feb 17, 2025

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: 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

@che-bot
Copy link
Contributor

che-bot commented Feb 17, 2025

Click here to review and test in web IDE: Contribute

Copy link

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

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

@olexii4 olexii4 marked this pull request as draft February 17, 2025 15:12
@olexii4 olexii4 marked this pull request as ready for review February 18, 2025 01:38
Copy link

codecov bot commented Feb 18, 2025

Codecov Report

Attention: Patch coverage is 76.31579% with 9 lines in your changes missing coverage. Please review.

Project coverage is 91.52%. Comparing base (b7096ea) to head (60971f2).
Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
...orkspace-client/devworkspace/devWorkspaceClient.ts 57.14% 6 Missing ⚠️
...ons/actionCreators/createWorkspaceFromResources.ts 87.50% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1318      +/-   ##
==========================================
- Coverage   91.81%   91.52%   -0.30%     
==========================================
  Files         501      501              
  Lines       45535    45558      +23     
  Branches     3183     3167      -16     
==========================================
- Hits        41808    41695     -113     
- Misses       3695     3836     +141     
+ Partials       32       27       -5     

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

Copy link
Member

@ibuziuk ibuziuk left a comment

Choose a reason for hiding this comment

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

Changing storage type before removing workspace is not a good option since PVC will not be deleted / cleaned after that.

Given that this is a regression we need to:

  • detect the commit that resulted in this behaviour
  • review the changes and identify if there is another option to fix the problem

@dmytro-ndp @artaleks9 folks, maybe you have more details on which upstream version the problem started to happen

Also, marking eclipse-che/che#23337 as a blocker

Copy link

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

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

Copy link

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

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

@olexii4 olexii4 marked this pull request as draft February 19, 2025 14:27
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.

Workspace is not deleted when another workspace is running in the same user namespace
3 participants