-
Notifications
You must be signed in to change notification settings - Fork 40
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
[UX] Switch the "Precision" and "Scale" fields for decimal numbers from selects into proper number fields (with min/max) #4734
Comments
BTW, when I do
|
...more info: https://www.drupal.org/docs/7/api/schema-api/data-types/decimal-numeric
^^ I would like that (some trimmed/groomed version of it) added to the help text in the UI.
|
Yep, 14 is the default Regarding decimal in MariaDB, here's the official info:
|
Thanks @indigoxela 🙏 ...it seems that we have our max values then. |
I made a PR for this. I didn't change the min-max values, just used the existing ones. |
Many thanks for your PR 🙏 , it seems to work as expected in the sandbox, but NumberFieldSettingsTestCase fails. So this needs some closer inspection. |
FTR: I removed the "good first issue" label, as that didn't seem appropriate when a functional test needs fixing. 😉 |
I added a new commit that updates the values in the test. It was using a precision of 7 which isn't allowed (10 is the minimum). I made it 12 and updated the values to test that works. Also the Tests still failing though. Don't know why. |
That's odd, both tests seem unrelated (neither BackupSettingsTestCase nor ModuleUninstallTestCase are involved in the change). It might be, that these are (random) false negatives, so here's a trick: Close your PR, wait a minute, then re-open your PR (via GitHub UI). I'd bet, both tests pass then. |
Wow, nice catch. Who added 7 there... (🤡 guess who...). And decimal_separator is clearly a formatter setting (display only). Many thanks for cleaning that up. 👍 |
The text was updated successfully, but these errors were encountered: