brightway-lca / brightway2-data

Tools for the management of inventory databases and impact assessment methods. Part of the Brightway LCA framework.
https://docs.brightway.dev/
BSD 3-Clause "New" or "Revised" License
8 stars 23 forks source link

WIP: Add event tracking to projects #174

Open jsvgoncalves opened 3 months ago

jsvgoncalves commented 3 months ago

In the current approach, the project table has a current_revision column. Each revision's a set of metadata, such as parent_revision, optional title , etc.

{
"metadata": {
  "revision": <this-revision-id>
  "parent_revision": <parent-revision-id>
  "title": "<optional>"
  "description": "<optional>"
  "authors": "<optional>" (maybe shouldn't be optional)
},
"data": {…}
}

Data is defined type and per object, e.g.:

"metadata": {…}
"data": {
  "activity": [deepdiff_1, deepdiff_2],
  "exchange": [deepdiff_3],
  "exchanges": []
}

Open questions: