1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-12-28 00:06:53 +01:00
unleash.unleash/src/lib/schema
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
..
api-token-schema.test.ts Feat/add alias to api tokens (#1931) 2022-08-19 10:48:33 +02:00
api-token-schema.ts Refactor: rename frontend api key (#1935) 2022-08-18 08:20:51 +00:00
constraint-value-types.test.ts Feat/new constraint operators (#1397) 2022-03-04 17:29:42 +01:00
constraint-value-types.ts refactor: always add values to constraints (#1448) 2022-03-17 12:32:04 +01:00
feature-schema.test.ts fix: enforce weight precision to 1 decimal (#2749) 2023-01-05 12:39:18 +01:00
feature-schema.ts fix: enforce weight precision to 1 decimal (#2749) 2023-01-05 12:39:18 +01:00
role-schema.test.ts feat: custom project roles (#1220) 2022-01-13 11:14:17 +01:00
role-schema.ts feat: custom project roles (#1220) 2022-01-13 11:14:17 +01:00