-
Notifications
You must be signed in to change notification settings - Fork 14
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
Connect sagas to the actual SUSE Manager config UI #2356
Conversation
d1741a9
to
05f8871
Compare
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.
Looking great!
Besides the two minor comments the main issues I found are:
- on saving when the certificate is left empty in the ui
ca_cert: ""
is passed to the api which does not pass validation. If the certificate is not wanted then theca_cert
property should not be in the api request payload. - similarly, when patching settings if we want to remove the certificate, we need to provide the api with
ca_cert: null
instead ofca_cert: ""
otherwise the same validation would not pass.
@nelsonkopliku thanks for catching that behavior, I applied the fixes 👍 |
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.
Almost there.
Saving is working correctly, ca_cert is not sent if the user did not provide any 👍
On update, however, we need an explicit ca_cert: null
if we want to remove the certificate, currently the field is not sent at all, meaning it remains untouched.
Besides this the Remove action seems to not be retained in the modal when changing creds like cert or password.
25f08cb
to
e2f0491
Compare
@nelsonkopliku thanks! It should be okay now.
I didn't quite understand this, but I guess you mean that closing and reopening the modal should display the |
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.
Yes, you got it right! I was referring to that.
Besides the CI, LGTM. Great job!
Thank you! 😄 |
99b4411
to
722920f
Compare
* Connect sagas to the actual SUSE Manager config UI * Apply fixes from review * Fix linting error about else after return
Description
Connecting the actual settings page to the settings API for SUSE Manager integration.
How was this tested?
Jest tests updates, added new ones