Skip to content
This repository has been archived by the owner on Apr 4, 2023. It is now read-only.

Persist cheEditor and kubernetes components when updating the devfile #1083

Closed
wants to merge 1 commit into from

Conversation

vitaliy-guliy
Copy link
Contributor

@vitaliy-guliy vitaliy-guliy commented Apr 20, 2021

Signed-off-by: Vitaliy Gulyy vgulyy@redhat.com

What does this PR do?

  • Fixes updating of the devfile by a request from Che-Theia.
  • Fixes setting of the plugins to the devfile form the Plugins panel.

Link with #1076

Screenshot/screencast of this PR

What issues does this PR fix or reference?

How to test this PR?

PR Checklist

As the author of this Pull Request I made sure that:

Reviewers

Reviewers, please comment how you tested the PR when approving it.

Happy Path Channel

HAPPY_PATH_CHANNEL=next

Signed-off-by: Vitaliy Gulyy <vgulyy@redhat.com>
const components: DevfileComponent[] = [];
if (devfileV1.components) {
devfileV1.components.forEach(component => {
if (component.type === 'cheEditor' || component.type === 'kubernetes') {
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't see why we filter out these components ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Giving them to the client does not have any sense, as it uses devfile2.

Copy link
Contributor Author

@vitaliy-guliy vitaliy-guliy Apr 20, 2021

Choose a reason for hiding this comment

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

Do you prefer to send them to the client and mark with special attribute?

@codecov
Copy link

codecov bot commented Apr 20, 2021

Codecov Report

Merging #1083 (7a0c786) into master (eeb4526) will increase coverage by 1.83%.
The diff coverage is 50.35%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1083      +/-   ##
==========================================
+ Coverage   29.45%   31.28%   +1.83%     
==========================================
  Files         277      277              
  Lines        9336     9403      +67     
  Branches     1380     1407      +27     
==========================================
+ Hits         2750     2942     +192     
+ Misses       6487     6364     -123     
+ Partials       99       97       -2     
Impacted Files Coverage Δ
...theia-about/src/browser/about-che-theia-dialog.tsx 0.00% <ø> (ø)
...ovisioner/src/node/git-configuration-controller.ts 0.00% <0.00%> (ø)
...theia-plugin-remote/src/node/plugin-remote-init.ts 0.00% <0.00%> (ø)
...-che-theia-plugin-remote/src/node/plugin-remote.ts 0.00% <0.00%> (ø)
...plugin-remote/src/node/terminal-container-aware.ts 0.00% <0.00%> (ø)
...a-plugin-remote/src/node/webviews-content-aware.ts 0.00% <0.00%> (ø)
...che-theia-remote-api/src/common/devfile-service.ts 0.00% <ø> (ø)
...e-theia-remote-api/src/common/workspace-service.ts 0.00% <ø> (ø)
...er/src/node/che-server-certificate-service-impl.ts 0.00% <0.00%> (ø)
...-impl-k8s/src/node/k8s-certificate-service-impl.ts 0.00% <0.00%> (ø)
... and 28 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 8fd3b88...7a0c786. Read the comment docs.

@che-bot
Copy link
Contributor

che-bot commented Apr 20, 2021

✅ E2E Happy path tests succeed 🎉

Try Che-Theia editor only Try Che-Theia with Java/maven example Try Che-Theia with NodeJs example

See Details

name link
che-theia quay.io/crw_pr/che-theia:1083
che-theia-endpoint-runtime-binary quay.io/crw_pr/che-theia-endpoint-runtime-binary:1083

Tested with Eclipse Che Single User on K8S (minikube v1.1.1)

  • Use comment "[crw-ci-test]" to rerun happy path E2E test.
  • Use comment "[crw-ci-test --rebuild]" to re-build the images and rerun happy path E2E test.

@vitaliy-guliy
Copy link
Contributor Author

There is another approach has been merged to master #1084
Another PR for kubernetes components wil be provided within eclipse-che/che#19634

@vitaliy-guliy vitaliy-guliy deleted the devfileV1-components branch February 2, 2022 22:08
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants