Add a Convention taxonomy reference field to Assets and Logs

Created on 28 September 2023, about 1 year ago
Updated 4 April 2024, 9 months ago

Problem/Motivation

This is an alternative implementation to #3336224: Add a convention ID base field to assets and logs (simple string) β†’ . See that issue for full context. This idea came up on today's dev call.

Proposed resolution

The idea is: we add a new "Conventions" vocabulary to farmOS, and we add a "Convention" term reference field to Assets and Logs so they can reference the convention that they intend to follow.

The convention term name could be anything the user wants, but best practice would be for it to be a convention ID as described here: https://github.com/mstenta/farmOS-conventions/issues/3

Combined with #3390486: Add an External URI field to all taxonomy terms β†’ , users would also have the option of linking these terms to an external ontology item URL.

Remaining tasks

  1. Add Conventions vocabulary.
  2. Add Convention term reference field to Assets and Logs.

User interface changes

A new Conventions taxonomy and the ability to create/reference new terms in it from Assets and Logs.

API changes

A new ontology_url field in the attributes section of taxonomy_term entities in JSON:API.

A new convention bundle for taxonomy terms, and a new convention field in the relationships section of asset and log entities in JSON:API.

Data model changes

See above.

✨ Feature request
Status

Fixed

Version

3.0

Component

Miscellaneous

Created by

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

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024