-
Notifications
You must be signed in to change notification settings - Fork 111
Persist cheEditor and kubernetes components when updating the devfile #1083
Conversation
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') { |
There was a problem hiding this comment.
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 ?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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 Report
@@ 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
Continue to review full report at Codecov.
|
✅ E2E Happy path tests succeed 🎉 See Details
Tested with Eclipse Che Single User on K8S (minikube v1.1.1)
|
There is another approach has been merged to master #1084 |
Signed-off-by: Vitaliy Gulyy vgulyy@redhat.com
What does this PR do?
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:
What issues does this PR fix or reference
andHow to test this PR
completedReviewers
Reviewers, please comment how you tested the PR when approving it.
Happy Path Channel
HAPPY_PATH_CHANNEL=next