-
Notifications
You must be signed in to change notification settings - Fork 244
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
Propagate local Devfile changes to the UI #6970
Propagate local Devfile changes to the UI #6970
Conversation
✅ Deploy Preview for odo-docusaurus-preview canceled.
|
Skipping CI for Draft Pull Request. |
I would prefer to add a I had created this PoC a while ago to get events from a watch K8s API's endpoint: https://github.com/feloy/kubernetes-explorer/blob/master/src/app/services/kubernetes.service.ts |
878cbc3
to
33f8ba3
Compare
For the record, and as discussed together earlier today, the main reason for having this |
This does not seem to work because the generated server always responds with application/json, and it is not possible to respond with a different content-type. This reverts commit cf3ce83677649763b8166c4847501c37246dd757.
This reverts commit b985c007a0561edbe185adc3b9582e12aa3f072b.
…events" This reverts commit c5c9033.
…otify Devfile changes
Here, this is being used to automatically reload the Devfile in the YAML view whenever the API server notifies of filesystem changes in the Devfile (and related resources).
This is needed to be able to persist Devfiles from the UI to the filesystem
Co-authored-by: Philippe Martin <[email protected]>
…fileUpdated event data Co-authored-by: Philippe Martin <[email protected]>
… page Co-authored-by: Philippe Martin <[email protected]>
26f5667
to
9083f80
Compare
Kudos, SonarCloud Quality Gate passed!
|
/override windows-integration-test/Windows-test |
@rm3l: Overrode contexts on behalf of rm3l: windows-integration-test/Windows-test In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
What type of PR is this:
/kind feature
/area dev
What does this PR do / why we need it:
This PR introduces a new
/notifications
API endpoint that is able to send SSE events to connected clients. Currently, if sendsDevfileUpdated
events only (along with a Heartbeat comment) whenever the local Devfile is updated on the local filesystem.The UI listens on this
DevfileUpdated
event and automatically overwrites the Devfile in the YAML view (and in other related tabs).This is the first part for propagating changes from the local filesystem to the UI. Another PR will follow after to warn users whenever a
DevfileUpdated
event is received and allow them to either overwrite or discard the new Devfile.Which issue(s) this PR fixes:
Fixes acceptance criteria 1 of #6902
PR acceptance criteria:
Unit test
Integration test
Documentation
How to test changes / Special notes to the reviewer: