-
Notifications
You must be signed in to change notification settings - Fork 2
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
Units migration - default units: Automatically detect imperial/metric units #35
Comments
@twothreenine @yksflip The logic I implemented to detect whether there are any imperial units in the db is here:
<- That means, if there's any old plaintext unit ending in oz or lb , it will add imperial units to the default units available in the article master data form after the initial migration.
As for the list of default units, I have now configured the following (to see to which unit a code is referring either use the article units index in the foodsoft fork or check out Leo's excel files in #10): Piece units: Metric scalar units: Imperial scalar units: Regarding the seeds, I've added it to the temporary hackathon seeds in German (without imperial units) and English (with imperial units). This part will obviously have to be copied when we finally implement #16. If you want to correct anything about that, please comment & reopen. |
When migrating to the new unit schema, automatically detect whether there are any metric/imperial units in the old db and add default units accordingly. see #24
For seeds, make it depend on the seed's locale.
The text was updated successfully, but these errors were encountered: