Created on 29 January 2018, almost 7 years ago
Updated 30 October 2023, about 1 year ago

Problem/Motivation

In some case, you may want to make one log dependent on another (or multiple) logs that come before it.

For example, in grazing rotations, you shouldn't mark rotation #2 done before you mark rotation #1 done (see https://github.com/farmOS/farm_grazing/issues/28).

Proposed resolution

This could be a simple field or property on log entities that points to one or more other logs, and would not allow you to mark a log "done" until all its dependencies are.

Remaining tasks

Figure out:

- Do we need to also enforce that dependency logs always have a timestamp BEFORE the dependent logs (that seems like a requirement, conceptually - but maybe isn't really necessary to enforce? It is certainly a bit more complex) - if a log's timestamp changes we would need to enforce that it doesn't end up out of order, and therefore there would need to be an accepted way to reorder logs if necessary
- What does the UI look like for adding dependencies to a log? Just a log reference field?
- Where does all the logic need to be for enforcing? Insert/update/delete hooks? Use the new farm_constraint system?
- ...

User interface changes

...

API changes

...

Data model changes

...

✨ Feature request
Status

Closed: outdated

Version

2.0

Component

Farm Logs

Created by

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

Live updates comments and jobs are added and updated live.
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