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
React Hook Form: Update to v 7.49.2 #79493
Conversation
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.
one change required, everything else LGTM from the Alerting side :)
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.
Addressed the Alerting-related concern in f24bf2f – LGTM from our side
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.
LGTM. Just a nit
public/app/features/alerting/unified/components/mute-timings/MuteTimingTimeRange.tsx
Show resolved
Hide resolved
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.
from a code standpoint this lgtm 👍
haven't tested behaviour in alerting/explore etc - i'll leave that to the relevant affected teams
think it would be useful to confirm that this won't be a breaking change for e.g. a plugin using our form 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.
Explore/Correlations looks good! 👍
/deploy-to-hg |
|
|
* Update RHF to latest * Update Form types * Fix alerting types * Fix correlations types * Update tests * Fix tests * Update LabelsField.tsx to use InputControl * Update RuleEditorGrafanaRules.test.tsx * Update RuleEditorCloudRules.test.tsx * Only require one label * Update RuleEditorRecordingRule.test.tsx * Fix labels rules * Revert * Remove RHF from ignore rules * Revert * update form validation for overriding group timings * Fix changes to correlations * Fix auth type errors --------- Co-authored-by: Gilles De Mey <gilles.de.mey@gmail.com> Co-authored-by: Kristina Durivage <kristina.durivage@grafana.com>
What is this feature?
Update the react-hook-form package to the latest version.
Why do we need this feature?
The version of RHF we have is a few years old. Updating to the new version has a few benefits:
Special notes for your reviewer:
I see that RHF is included in the renovate ignore list to avoid breaking the Form component API. I think we'd just deprecate the Form component from grafana/ui, which would remove the extra non ui-related dependency we need to maintain.