Add service to component (odo add binding)#2803
Add service to component (odo add binding)#2803rgrunber merged 1 commit intoredhat-developer:mainfrom
odo add binding)#2803Conversation
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## main #2803 +/- ##
==========================================
- Coverage 33.88% 33.72% -0.17%
==========================================
Files 70 71 +1
Lines 4326 4395 +69
Branches 777 780 +3
==========================================
+ Hits 1466 1482 +16
- Misses 2860 2913 +53
... and 1 file with indirect coverage changes Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report in Codecov by Sentry. |
baa15ba to
119a03e
Compare
141bff4 to
694cf06
Compare
|
@mohitsuman @msivasubramaniaan this PR is ready for review |
694cf06 to
619f49c
Compare
|
|
619f49c to
efecc5c
Compare
msivasubramaniaan
left a comment
There was a problem hiding this comment.
Here are the comments which needs to be addressed in order to UI
- The webview should align with VSCode theme in terms of button color, font size, font family

- Binding name accepts the invalid names as well

- In order to showing the error message while loading, we can make the button disabled and show the error message based on user input
- Don't open multiple service binding webview for same component
efecc5c to
0947c84
Compare
0947c84 to
fbe1c96
Compare
JessicaJHee
left a comment
There was a problem hiding this comment.
Works well from my testing! Could consider adding a notification when the service was successfully binded (either in the webview and not have it close on it own, or a vscode window popup?), I wasn't sure if everything worked when the webview closed.
Another small thing with the add service binding button, could we keep that disabled but visible when the user hasn't picked the service or service name instead of replacing the error box? But it's not a big deal so if it takes a long time to implement then I don't think it's worth changing.
aaeddd6 to
13b65b3
Compare
rgrunber
left a comment
There was a problem hiding this comment.
Works for me. We should merge and improve afterwards if there are any other issues.
13b65b3 to
d4bb85b
Compare
|
@datho7561 have we added segment event to this command workflow. We need to update around:
|
d4bb85b to
45914b9
Compare
|
I added two new events to track the usage of the "Bind Service" UI: |
|
@msivasubramaniaan if you think it's good, could you please +1 when you have time (no rush) |
With a running `crc` cluster, run `npm run cluster-ui-test` in order to run the cluster-dependent UI test suite. - renamed `smoke-test` to `cluster-ui-test` and removed some of the tests that overlap between the suites - Most of this work is also done in redhat-developer#2803, so I just copied it from over there - Temporarily addresses redhat-developer#2780, we will need to rewrite it once the new create component workflow is in place Fixes redhat-developer#2777 Signed-off-by: David Thompson <davthomp@redhat.com>
|
@rgrunber let me know if you think it's good. However, I think we are blocked on Muthu giving a +1 in order to merge the PR |
With a running `crc` cluster, run `npm run cluster-ui-test` in order to run the cluster-dependent UI test suite. - renamed `smoke-test` to `cluster-ui-test` and removed some of the tests that overlap between the suites - Most of this work is also done in #2803, so I just copied it from over there - Temporarily addresses #2780, we will need to rewrite it once the new create component workflow is in place Fixes #2777 Signed-off-by: David Thompson <davthomp@redhat.com>
Right click on a component in the components view and select "Bind Service" in order to bind the component to an Operator-backed service. In order for this to work: - the service binding operator must be installed on the cluster - an operator that manages instances of services must be installed (I tested with the RHOAS operator) - there must be an instance of the service that is managed by the operator in the current project Other things in this PR: - Add a walkthrough GIF of using the UI - Add a smoke test to check that the "Bind Service" context menu item exists - Fix the smoke tests. This includes fixing the existing test case for redhat-developer#2780, even though we are going to rewrite that as a WebView UI soon. I did this, since for the "Bind Service" smoke test, we need a component present in the components view. Signed-off-by: David Thompson <davthomp@redhat.com>
45914b9 to
22df9bf
Compare

Right click on a component in the components view and select "Bind Service" in order to bind the component to an Operator-backed service.
In order for this to work:
Other things in this PR:
Closes #2668
Signed-off-by: David Thompson davthomp@redhat.com