hay-kot / homebox

Homebox is the inventory and organization system built for the Home User
https://hay-kot.github.io/homebox/
GNU Affero General Public License v3.0
2.65k stars 189 forks source link

Add custom fields to locations #411

Open proffalken opened 1 year ago

proffalken commented 1 year ago

What is the problem you are trying to solve with this feature?

I'm working on an Automated Storage and Retrieval System (ASRS) that will use Homebox as the backend.

At the moment, I need to keep a separate database that maps the locations in HomeBox to the grid reference of the container it is trying to retrieve.

It would be great to remove that second database and get this data directly from HomeBox, however as not everyone will need an X/Y/Z Coordinate field, it feels better to have custom fields that can be called anything and hold any value for locations and my code can then translate these fields into the data it needs when it queries the API.

What is the solution you are proposing?

Add the existing "custom fields" option currently only available for Items to Locations to ensure this caters for multiple use-cases rather than just my own.

What alternatives have you considered?

Maintaining a second database that has the lookup values, or writing my own inventory software.

Additional context

As discussed on Discord. Creating this issue purely so I've got somewhere to track it.

My Go is near non-existent, but I'm willing to have a shot at this as long as others can guide me!

Contributions

PreHack1 commented 1 year ago

Maybe https://github.com/hay-kot/homebox/issues/410 would also be a great solution for this.

majant0 commented 1 year ago

This was also suggested in #155 although for a different use case.

typkrft commented 1 year ago

Custom fields and "propagation" would be nice. For instance if a particular location is covered by an insurance policy, then various items of that location might also be covered. A custom field to add one or many policies to a location and/or the ability to either tie attributes to tags. Automatically adding fields to subitems would be nice based on attributes given to locations.