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

feat: remove dependency on Workspace API #695

Merged
merged 12 commits into from
Jan 11, 2023
Merged

feat: remove dependency on Workspace API #695

merged 12 commits into from
Jan 11, 2023

Conversation

olexii4
Copy link
Contributor

@olexii4 olexii4 commented Jan 2, 2023

Signed-off-by: Oleksii Orel [email protected]

What does this PR do?

Remove dependency on Workspace API.

What issues does this PR fix or reference?

fixes eclipse-che/che#21846

You can test this PR at https://eclipse-che.apps.cluster-pd8pf.pd8pf.sandbox1822.opentlc.com/dashboard/

@che-bot
Copy link
Contributor

che-bot commented Jan 2, 2023

Click here to review and test in web IDE: Contribute

@che-bot
Copy link
Contributor

che-bot commented Jan 2, 2023

Click here to review and test in web IDE: Contribute

@che-bot
Copy link
Contributor

che-bot commented Jan 3, 2023

Click here to review and test in web IDE: Contribute

@che-bot
Copy link
Contributor

che-bot commented Jan 5, 2023

Click here to review and test in web IDE: Contribute

@che-bot
Copy link
Contributor

che-bot commented Jan 6, 2023

Click here to review and test in web IDE: Contribute

@che-bot
Copy link
Contributor

che-bot commented Jan 6, 2023

Click here to review and test in web IDE: Contribute

Comment on lines 86 to 89
timeouts: {
inactivityTimeout: -1,
runTimeout: -1,
startTimeout: 300,
},
} as any,
Copy link
Contributor

@akurinnoy akurinnoy Jan 9, 2023

Choose a reason for hiding this comment

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

Can you elaborate on why you need to remove the runTimeout field?

@che-bot
Copy link
Contributor

che-bot commented Jan 9, 2023

Click here to review and test in web IDE: Contribute

@codecov
Copy link

codecov bot commented Jan 10, 2023

Codecov Report

Merging #695 (15de778) into main (91affc8) will increase coverage by 1.04%.
The diff coverage is 61.65%.

@@            Coverage Diff             @@
##             main     #695      +/-   ##
==========================================
+ Coverage   62.42%   63.46%   +1.04%     
==========================================
  Files         289      283       -6     
  Lines        8941     8413     -528     
  Branches     1435     1325     -110     
==========================================
- Hits         5581     5339     -242     
+ Misses       3120     2855     -265     
+ Partials      240      219      -21     
Flag Coverage Δ
unittests 63.46% <61.65%> (+1.04%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
.../dashboard-backend/src/routes/api/devfileSchema.ts 58.82% <ø> (+0.92%) ⬆️
...oard-frontend/src/components/EditorTools/index.tsx 0.00% <ø> (ø)
...-frontend/src/components/WorkspaceEditor/index.tsx 0.00% <ø> (ø)
...frontend/src/containers/WorkspaceDetails/index.tsx 87.50% <ø> (-1.27%) ⬇️
...shboard-frontend/src/containers/WorkspacesList.tsx 92.59% <ø> (+0.48%) ⬆️
...es/GetStarted/GetStartedTab/SamplesListGallery.tsx 55.55% <0.00%> (-6.41%) ⬇️
...WorkspaceDetails/OverviewTab/StorageType/index.tsx 0.00% <0.00%> (ø)
...hboard-frontend/src/pages/WorkspacesList/index.tsx 69.14% <0.00%> (+0.12%) ⬆️
...dashboard-frontend/src/services/bootstrap/index.ts 0.00% <ø> (ø)
.../dashboard-frontend/src/services/helpers/editor.ts 68.18% <ø> (ø)
... and 45 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@che-bot
Copy link
Contributor

che-bot commented Jan 11, 2023

Click here to review and test in web IDE: Contribute

@github-actions
Copy link

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

… fixup! feat: remove dependency on Workspace API
@che-bot
Copy link
Contributor

che-bot commented Jan 11, 2023

Click here to review and test in web IDE: Contribute

@github-actions
Copy link

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

@@ -15,7 +15,6 @@ import { baseApiPath } from '../../constants/config';
import { getSchema } from '../../services/helpers';
import { devfileVersionSchema } from '../../constants/schemas';
import { restParams } from '../../typings/models';
import * as devfileSchemaV100 from '../../devfileSchemas/1.0.0/devfile.json';
Copy link
Member

Choose a reason for hiding this comment

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

@olexii4 since we are not doing the validation of v1 I'm wondering if the factory automatic conversion from v1 to v2 is going to still work?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

All validation for the Devfile v1 during factory flow on the che-server side.
Знімок екрана 2023-01-11 о 12 17 47

@openshift-ci
Copy link

openshift-ci bot commented Jan 11, 2023

[APPROVALNOTIFIER] This PR is NOT APPROVED

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

@olexii4 olexii4 merged commit 071afc4 into main Jan 11, 2023
@olexii4 olexii4 deleted the CHE-21846 branch January 11, 2023 13:04
@devstudio-release
Copy link

Build 3.5 :: dashboard_3.x/169: Console, Changes, Git Data

@devstudio-release
Copy link

@devstudio-release
Copy link

@che-bot che-bot added this to the 7.60 milestone Jan 11, 2023
@devstudio-release
Copy link

@devstudio-release
Copy link

Build 3.5 :: copyIIBsToQuay/650: Console, Changes, Git Data

@devstudio-release
Copy link

Build 3.5 :: push-latest-container-to-quay_3.x/1510: SUCCESS

Copied: dashboard-rhel8; /job/DS_CI/job/update-digests_3.x triggered;
/job/DS_CI/job/Releng/job/copyIIBsToQuay triggered for OCP v4.12 v4.11 v4.10

@devstudio-release
Copy link

@devstudio-release
Copy link

Build 3.5 :: sync-to-downstream_3.x/1961: SUCCESS

Build container: devspaces-dashboard synced; /DS_CI/get-sources-rhpkg-container-build_3.x/1892 triggered;

@devstudio-release
Copy link

Build 3.5 :: dashboard_3.x/169: SUCCESS

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

@devstudio-release
Copy link

Build 3.5 :: update-digests_3.x/1839: Console, Changes, Git Data

@devstudio-release
Copy link

Build 3.5 :: update-digests_3.x/1839: UNSTABLE

No new images detected: nothing to do!

@devstudio-release
Copy link

Build 3.5 :: copyIIBsToQuay/650: SUCCESS

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.5-57
  * 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.18-2
+ x86_64-rhel8 IIB(s) copied:
  + quay.io/devspaces/iib:3.5-v4.12-411504-410106-x86_64
  + quay.io/devspaces/iib:3.5-v4.12-x86_64
  + quay.io/devspaces/iib:next-v4.12-x86_64
  + quay.io/devspaces/iib:3.5-v4.11-411501-410097-x86_64
  + quay.io/devspaces/iib:3.5-v4.11-x86_64
  + quay.io/devspaces/iib:next-v4.11-x86_64
  + quay.io/devspaces/iib:3.5-v4.10-411499-410093-x86_64
  + quay.io/devspaces/iib:3.5-v4.10-x86_64
  + quay.io/devspaces/iib:next-v4.10-x86_64
+ s390x-rhel8 IIB(s) copied:
  + quay.io/devspaces/iib:3.5-v4.12-411504-410106-s390x
  + quay.io/devspaces/iib:3.5-v4.11-411501-410097-s390x
  + quay.io/devspaces/iib:3.5-v4.10-411499-410093-s390x
  + quay.io/devspaces/iib:3.5-v4.10-s390x
  + quay.io/devspaces/iib:next-v4.10-s390x
+ ppc64le-rhel8 IIB(s) copied:
  + quay.io/devspaces/iib:3.5-v4.12-411504-410106-ppc64le
  + quay.io/devspaces/iib:3.5-v4.11-411501-410097-ppc64le
  + quay.io/devspaces/iib:3.5-v4.10-411499-410093-ppc64le
  + quay.io/devspaces/iib:3.5-v4.10-ppc64le
  + quay.io/devspaces/iib:next-v4.10-ppc64le

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.

[Dashboard] Remove dependency on Workspace API provided by che-server
5 participants