Aggregated Group Inventory

Created on 22 September 2021, almost 3 years ago
Updated 30 October 2023, 10 months ago

Problem/Motivation

This idea came out of this forum topic comment: https://farmos.discourse.group/t/automating-inventory/934/3

provide some mechanisms for recursively calculating the total inventory of all members within a group combined

Proposed resolution

I think this would essentially be done in a new GroupInventory class that overrides the AssetInventory class, in the same way that GroupAssetLocation overrides AssetLocation

Remaining tasks

TBD

User interface changes

Group assets show an aggregated inventory of all member assets within them.

API changes

Group assets in the API include an aggregated inventory of all member assets within them.

Data model changes

Similar to UI and API changes above, but because this is computed/cached it can perhaps be considered a "higher-level" data model change, not affecting lower-level database schema.

✨ Feature request
Status

Active

Version

3.0

Component

Farm Groups

Created by

πŸ‡ΊπŸ‡ΈUnited States m.stenta

Live updates comments and jobs are added and updated live.
  • Needs manual testing

    The change/bugfix cannot be fully demonstrated by automated testing, and thus requires manual testing in a variety of environments.

  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024