-
Notifications
You must be signed in to change notification settings - Fork 24
fix(api,ui): Fix autoscaling target parsing #380
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(api,ui): Fix autoscaling target parsing #380
Conversation
6b65992 to
4e28f71
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #380 +/- ##
==========================================
+ Coverage 62.15% 62.19% +0.04%
==========================================
Files 124 124
Lines 9747 9755 +8
==========================================
+ Hits 6058 6067 +9
- Misses 2953 2954 +1
+ Partials 736 734 -2
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
4e28f71 to
48a8e16
Compare
48a8e16 to
91396ad
Compare
ui/src/router/components/form/components/autoscaling_policy/AutoscalingPolicyPanel.js
Show resolved
Hide resolved
|
Thanks for the quick review @ariefrahmansyah ! Merging this now (oops I totally forgot about this hanging PR for over 2 weeks 🥲) |
# Description This PR introduces a fix to address a tiny UI bug whereby a red line appears when an autoscaling target value that is outside the configured step size (e.g. 1.003 when the step size is 1) is set:  The fix implemented is exactly the same as what has been done for Turing here: caraml-dev/turing#380 (comment). # Modifications - `ui/src/pages/version/components/forms/components/AutoscalingPolicyFormGroup.js` - Update to some props passed to the `EuiFieldNumber` component # Tests <!-- Besides the existing / updated automated tests, what specific scenarios should be tested? Consider the backward compatibility of the changes, whether corner cases are covered, etc. Please describe the tests and check the ones that have been completed. Eg: - [x] Deploying new and existing standard models - [ ] Deploying PyFunc models --> # Checklist - [x] Added PR label - [ ] Added unit test, integration, and/or e2e tests - [x] Tested locally - [ ] Updated documentation - [ ] Update Swagger spec if the PR introduce API changes - [ ] Regenerated Golang and Python client if the PR introduces API changes # Release Notes ```release-note None ```
Context
This is a follow up on PR #378, which introduces additional fixes and some minor refactoring to make the UI and API server behaviour consistent with that of Merlin's, especially with regards to the handling of autoscaling target values.
In short, this PR does the following: