Skip to content
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

fix(frontend): fix jaeger secure option validation #2467

Merged
merged 1 commit into from May 2, 2023

Conversation

jorgeepc
Copy link
Contributor

@jorgeepc jorgeepc commented May 1, 2023

This PR fixes a bug where the secure options switch in the Jaeger form was not enabling the save button.

Changes

  • fix secure options validation

Fixes

Checklist

  • tested locally
  • added new dependencies
  • updated the docs
  • added a test

@jorgeepc jorgeepc self-assigned this May 1, 2023
@@ -91,6 +103,7 @@ const GrpcClient = () => {
[dataStoreType]: {grpc: {tls: {insecure: !checked}}},
},
});
onValidation(form.getFieldsValue());
Copy link
Contributor Author

@jorgeepc jorgeepc May 1, 2023

Choose a reason for hiding this comment

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

We need to trigger the validation here because the antd form does not trigger the onValuesChange method if you use form.setFieldsValue.
https://ant.design/components/form#setfieldsvalue-do-not-trigger-onfieldschange-or-onvalueschange

@jorgeepc jorgeepc requested a review from xoscar May 1, 2023 20:22
@jorgeepc jorgeepc merged commit 7a93164 into main May 2, 2023
31 checks passed
@jorgeepc jorgeepc deleted the 2460-fix-jaeger-secure-option branch May 2, 2023 15:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Disabling 'secure options' on Jaeger config does not activate the 'Save' button
2 participants