question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Feature Request: Default Quantity Units

See original GitHub issue

It would be useful to have a preloaded set of QUs, such as:

Gram (g), Kilogram (kg), Ounce (oz), Pound (lb), Stone (st) Millilitre (ml), Litre (l), Fluid Ounce (fl. oz), Cup ©, Pint (pt), Quart (qt), Gallon (gal) Teaspoon (tsp), Tablespoon (tbsp)

I suspect these will end up in the migrations directory, probably adding to the quantity_unit_conversions table.

I’m struggling a bit to find some of the exact 1=1 comparisons, but, as far as I can make out:

  • 1000g = 1kg
  • 1000ml = 1l
  • 5ml = 1tsp
  • 3tsp = 1tbsp
  • 16tbsp = 1cup
  • 16oz = 1lb
  • 14lb = 1st
  • 30ml = 1fl. oz
  • 16fl. oz = 1pt
  • 473ml = 1pt
  • 2pt = 1qt

The problem comes around where international values differ, like this quote:

Not all tablespoons are the same. The Australian tablespoon is 20 ml; the British tablespoon is 17.7 ml. In most Canadian recipes, the tablespoon is 15 ml., while the American tablespoon is 14.2 ml. In British, Australian and sometimes Canadian recipes, the “imperial pint” is used which is 20 fluid ounces. American and sometimes Canadian recipes use the American pint of 16 fluid ounces.

And later

Not all measuring cups are the same American cups are 237ml while a metric cup is 250 ml

Or this quote:

1 US gal = 3.7854118 litres 1 UK gal (imperial) = 4.54609 litres

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

4reactions
JonTheNiceGuycommented, Jul 11, 2020

Hi Berrnd,

I came to this as a relatively new user. I don’t really have a feel for an “onboarding” process, but for me, the task list seems pretty insurmountable initially. I have to go around my house and start adding stuff… and having a set of “standard” QUs would be quite useful. And I agree, ounces and gallons are pretty uncommon for Germany, whereas ml and l are likely to be rareish in the US… so perhaps, as part of the setup it checks whether QUs have already been populated (with anything more than “pack” and “piece”), and if so, offers to install some QUs.

Having international measures are quite useful, particularly when a recipe you’re importing uses those values, so perhaps “Tablespoon (tbsp) [US]”, “Tablespoon (tbsp) [Aus]” and “Tablespoon (tbsp) [UK]” would give you the opportunity to go in and remove those ones you don’t use? I’m not sure. I don’t really know the internals of how this would work (like I said, I’m relatively new to Grocy)… Or you can just ignore them.

But, I understand your view, I’m just bringing it up, as it made me quite nervous when I was trying to work out what QUs I needed to add for my own stuff, and putting in the comparisons between them… Ugh.

0reactions
berrndcommented, Feb 10, 2022

Closed in favor of #129.

Quote of https://github.com/grocy/grocy/issues/451#issuecomment-1019558559:

No products (like anything else) will ever be shipped by default. When having a generic import/export way some “default lists” could be easily shared. All that is also already possible today by using the API.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Feature request - Product: Unit of Quantity / Category #4638
I would like to have the ability to define the Unit of the Quantity eg. 5 Pieces of somthing, 1 Year of Software...
Read more >
Min Max Default Quantity for WooCommerce - Plugins
This plugin lets you show a Unit next to any product, you can also show total price based on quantity selected! Plugin Features...
Read more >
Default order settings for dimensions and product variants
Default order settings define the site and warehouse where items will be sourced from or stored, the minimum, maximum, multiple and standard ...
Read more >
Feature Request Process | Blackboard - Vanderbilt University
The following diagram shows the steps in the feature request process and identifies the campus units responsible for aspects of the process.
Read more >
Feature Request - UDM Pro - Ubiquiti Community
Hi All, I'm presuming this is the correct place to place a feature request. This is with regards to a UDMPro unit I've...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found