1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-22 19:07:54 +01:00
unleash.unleash/frontend/src
Gastón Fournier 29be130757
fix: enforce weight precision to 1 decimal (#2749)
## About the changes
According to our docs, we only support up to 1 decimal place for
weights. This is to use integers to represent the percentages (we divide
them by 10) and supporting more decimals results in bad maths due to
floating point arithmetics.

This PRs adds Frontend and Backend validations to enforce this
restriction

Closes #2222

## Discussion points
Should we reconsider supporting more decimal places, that door remains
open, but for now we'll just adhere to our documentation because that
change would require some development.
2023-01-05 12:39:18 +01:00
..
__mocks__
assets Change request event tracking (#2570) 2022-11-30 12:04:29 +01:00
component fix: enforce weight precision to 1 decimal (#2749) 2023-01-05 12:39:18 +01:00
constants Feat clone environment modal (#2245) 2022-10-28 09:15:46 +01:00
contexts Custom event tracking (#2151) 2022-10-10 14:06:44 +02:00
hooks Orval generator POC (#2724) 2023-01-05 11:57:53 +01:00
interfaces feat: service accounts (hooks) (#2732) 2023-01-04 14:05:40 +00:00
openapi Orval generator POC (#2724) 2023-01-05 11:57:53 +01:00
themes Makestyles 7-1 (#2813) 2023-01-04 11:17:13 +02:00
types chore(deps): update dependency prettier to v2.8.1 (#2509) 2022-12-27 10:45:43 +01:00
utils Orval generator POC (#2724) 2023-01-05 11:57:53 +01:00
index.tsx feat: message banner (#2726) 2022-12-22 15:16:51 +00:00
setupTests.ts
vite-env.d.ts