Add a concept of "lifespan" to assets, similar to "location", "group membership", etc - and allow it to be tracked via logs. So one log can define the start of an asset's life, and one can define the end.
Old summary:
(The following is the old summary of this issue. See #2934961: Change asset "active" property to "archived" for insight into how/why this changed.)
Currently assets are marked as "active" or "inactive" via a checkbox when you edit the asset. This serves the most-basic purpose of showing/hiding assets in farmOS (so you can hide old plantings, for example) - but it's not very advanced.
Ideally, the "active" status of an asset would be determined by logs - similar to it's location. In other words, when you log an activity (and/or other log types) on an asset, you should have the ability to change the status of the asset along with that log. If you had multiple logs affecting the asset's status, the most recent one would be the determining factor (just like location determination via movement logs).
Comments
Comment #2
m.stentaAll farmOS repositories have been merged into the farmOS distribution (see #2876992: Merge farmOS repositories into drupal.org/project/farm). I'm going through and moving all open issues from the various project issue queues to the central queue now...
Comment #3
m.stentaI am adapting this feature request to dovetail with: #2934961: Change asset "active" property to "archived"
This feature will add a log-based lifespan concept to assets, whereas the other one will be specifically for "archiving" assets. They are two separate things, and should be treated as such.
Comment #4
m.stentaQuestion: what happens if you have more than two logs defining start and end to the asset's lifespan? Do we just take the earliest and latest ones and ignore everything in between?
Comment #5
m.stentaRelated discussion: https://github.com/farmOS/farmOS/issues/197
Comment #6
m.stentaRelated discussion: #2401525: New log type: Disposition
Comment #7
m.stentaInteresting and related idea from this forum post: https://farmos.discourse.group/t/feedback-after-my-first-2-months-questi...
Comment #8
m.stentaMoving this to 8.x-2.x. Curious if we can leverage the State Machine module: https://www.drupal.org/project/state_machine - perhaps with some way of linking state changes/revisions to Logs?
Comment #9
m.stentaComment #10
m.stentaComment #11
m.stentaClosing old discussions... let's use the forum instead.