Skip to content

Conversation

@deadlycoconuts
Copy link
Contributor

@deadlycoconuts deadlycoconuts commented May 9, 2024

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:
Screenshot 2024-05-09 at 2 16 06 PM

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

Checklist

  • Added PR label
  • Added unit test, integration, and/or e2e tests
  • 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

None

@deadlycoconuts deadlycoconuts added the bug Something isn't working label May 9, 2024
@deadlycoconuts deadlycoconuts self-assigned this May 9, 2024
@codecov
Copy link

codecov bot commented May 9, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 60.29%. Comparing base (cfd27a2) to head (08cd60e).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #580      +/-   ##
==========================================
- Coverage   60.31%   60.29%   -0.02%     
==========================================
  Files         274      274              
  Lines       21930    21930              
==========================================
- Hits        13226    13223       -3     
- Misses       7855     7857       +2     
- Partials      849      850       +1     
Flag Coverage Δ
api-test 58.22% <ø> (-0.02%) ⬇️
sdk-test-3.10 75.47% <ø> (ø)
sdk-test-3.8 75.40% <ø> (ø)
sdk-test-3.9 75.40% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@deadlycoconuts deadlycoconuts marked this pull request as ready for review May 9, 2024 06:17
@deadlycoconuts deadlycoconuts force-pushed the fix_ui_bug_showing_incorrect_autoscaling_target branch from 9031d6c to 08cd60e Compare May 20, 2024 08:29
@deadlycoconuts
Copy link
Contributor Author

Thanks for the quick review @ariefrahmansyah ! Merging this now!

@ariefrahmansyah ariefrahmansyah merged commit 7506c07 into main May 21, 2024
@ariefrahmansyah ariefrahmansyah deleted the fix_ui_bug_showing_incorrect_autoscaling_target branch May 21, 2024 03:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants