GithubHelp home page GithubHelp logo

eaternity-edb-solution's People

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

gitter-badger

eaternity-edb-solution's Issues

easy overview and filtering / sorting of all fields from EDB

CSV Export of the EDB

welche referenz bezieht sich auf eiine Datenbank / welche aus der literatur
welches produkte sind verlinkte produkte

Vergleich von Co2werten von Gruppen berechneten werten (brightway/ecoinvent)

matching von neuen datensätzen (waterfoodprint) für eine Berechnung

für die übersetzungen mussten wir id und name exportieren um es bei webtranslateit hochzuladen

jedwede satistik auszurechnen

Bug - copy paste doesn't work in packaged app

Steps to reproduce:

  • npm run package (creates a release folder in the project root)
  • open app from there
  • choose data folder as usual
  • try to paste something into the search field
    -> doesn't work!

Wichtige Infos zur EDB-Solution

  1. Ich habe eine Übersicht über alle aktuellen EDB Felder gemacht:
    "EDB Felder Dokumentation.gsheet" (angehängt)

-> alle Felder sind dort beschrieben, inklusive ob sie required sind oder nicht, und welche Felder von einem parent übernommen werden oder nicht
-> Gewünschte/vorgeschlagene Änderungen können in der zweitletzen Spalte "Vorschläge für Änderungen" eingetragen werden
-> Bitte lest die Spalte "Erklärung unter Feldname" durch. Reicht die Beschreibung oder fehlt noch etwas?
-> Speziell sind die drei Spalten:

"Required auf Produkt selber?" - Jedes Produkt muss zwingend diese Felder ausgefüllt haben.
"Required über verlinktes Produkt" - Jedes Produkt muss zwingend das eigene Feld, oder über den ganzen Verlinkungs-Baum dieses Feld ausfüllen können.
"Wird von verlinktem Produkt übernommen?" - Ob ein Feld vom verlinkten Produkt übernommen wird, falls es nicht spezifiziert ist.

  1. Alle Dokumente zur EDB Solution, inkl. Konzepte und Vision davon ist im Ordner /Science/14. EDB Solution/ zu finden.

-> Die neusten Versionen sind jeweils auch dort zu finden unter /Application

  1. Die Weiterentwicklung der EDB Solution wird in folgenden Asana Projekten koordiniert:
    https://app.asana.com/0/8944236497616/8944236497616 , Section "EDB Solution"
    https://app.asana.com/0/232798153202068/232798153202068 , für Feedback und Decisions

┆Attachments: EDB Felder Dokumentation

[3] Input validation of EDB fields

Acceptance Criterias

  • alle Felder werden als korrekten Typ im JSON gespeichert
  • bei der eingabe wird folgende Sachen gecheckt:
    -- typ
  • beim speichern wird folgendes gecheckt:
    -- required
  • alle felder werden korrekt automatisch gerendert
  • spezielle Felder werden korrekt automatisch gerendert (Suggest Oracle, Chips)

┆Attachments: jsonformformat.js | typing323232.mov

Preview of fields from linked product

Acceptance Criteria

  1. In the product edit, if there is a parent product given and a field which inherits from the parent is empty, the field value from the parent is displayed in light-blue as a placeholder.
  2. If no parent is given, nothing is displayed.

2017-02-08 EDB Meeting Notes

• warum „frage save“ wenn nichts geändert wurde?
• Scrollen wird zu langsam bei zu vielen produkten
• „overwrite“ - ist zu harte terminologie, anderes Wort finden
• alles wird noch in prods.all. gespeichert
• linked-id -> braucht erklärung (füllt alle unbekannten informationen auf)
-> welche felder werden überschrieben (was ist parent was nicht) -> anzeigen
-> werte werden erst in das Exportfile ergänzt! und nicht angezeigt! (verwirrend)
• Hamburger button versteckt funktionen ( nicht so gut)
• nur required fields als missing
• nutrition id hat kein orcacle
• Warum ist „all-fields“ nicht inklusive references? (falsches Naming)
• id von newproduct ist noch NaN
• Copy FAO Code -> (kommt ins clipboard -> braucht meldung zur Information)
• Pasten funktioniert nicht
• Man kann nicht 2 Produkte gleichzeitig anzeigen
• Suche neben den Tags / Tags Statistik

Improve Saving mechanism

save always with the back button, no save button at all (with github we have still full control what we check in and what not)
no asking again when leaving the Product Edit
no save button

Decouple validation from save
validate only the newly saved product?

[8?] Temporäre Produkte handling

Ich möchte
Temporäre Produkte einfach und schnell in der Eaternity Webapp erstellen, danach in EDB korrekt nachpflegen

Akzeptanzkriterien

  1. Alle temporären Produkte von Eaternity Cloud manuell exportieren und in einem File abspeichern:

GET https://app.eaternity.org/batch/products/temp-products

[
{
"id": "192-4tbg-44t-gt5",
"name": "Bärlauch",
"linked-id": "fj4-21f4-fsdf4-g4t5",
"author": "[email protected]"
},
{
"id": "192-4tbg-44t-gt5",
"name": "Tomaten",
"linked-id": "fj4-21f4-fsdf4-g4t5",
"author": "[email protected]"
},
....
]

  1. Dieses File irgendwie in die EDB laden.

  2. Falls es neue temporäre Produkte gibt, werden neue Produkte mit derselben ID in der EDB angelegt, den Namen und die linked-id übernommen.

  3. Create Date pro Produkt einführen, zusätzliche Spalte im Table wo man nach create date sortieren kann.

  4. Bestehende Nährwert-Links von temporären Produkten in die EDB übernehmen (von postNutrsForTempBaseProducts.sh)

Implementation

  1. Es wird nur ein neues Produkt in der EDB angelegt, wenn es noch nicht existiert. Es wird kein update eines bestehenden Produktes gemacht.

Bestehende OwnKey's korrekt handeln?? Kein Unterschied zwischen BaseProduct und TemporaryBaseProduct machen!

Arbeitsablauf temporäre Produkte

Neues temporäres Produkt in Webapp kopiert BaseProdukt.
Wenn in EDB nachgepflegt, wird es einfach überschrieben beim nächsten Upload in die Cloud
Dafür muss die ID und der Link zum BaseProdukt der EDB übermittelt werden

[2] Link Nutrition file into product

Acceptance Criterias

  • i can search for a nutrition file with a suggest oracle, the kJ values and the country-code of the results are also shown in the list
  • the linked display values are ID, Name, kJ and country code
  • reusable for other stories

present the product-tree graphically

Ziel:
Eine graphische Darstellung vom Produkte-Baum für eine gute Übersicht / Navigation über die Vollständigkeit der Produkte und Synonyme

Akzeptanzkriterien

  1. Synonyme werden als zusätzliches Level im Produkte-Baum abgebildet
  2. Als MVP einfach eine seperate html Seite zum aufrufen
    (3. Später dann ein Button in die EDB Solution einbauen)

Implementation
Use d3
Wohl am besten ein Dendrogramm: http://bl.ocks.org/mbostock/4063570

easy manageable CO2-Processes

Problems:
co2-processes like drying vegetable, frozen meat are copied throughout the EDB and thus is a huge effort to change anything
there is no transparency in the references of the co2 process values, and no one knows how many times a value was copied
creating a new product involves searching from somewhere the correct process values
Comma separated values are error prone for input
Standard processes are now hardcoded in the code

Solution
A well defined set of possible real Processes used throughout Eaternity (independent from environmental or health dimension)
For every product, one can add as many possible processes as needed
There is an independent co2-processes data type, which is searchable, editable etc.
Every process can link to a co2-process-value, a nutritional-process-value etc
If no link is given for e.g. co2-process, the process inherits the value from its parent product

CO2-Process Fields
Id
Name of the process
Process-Type (dried, frozen etc.)
CO2-Value
References
Comments
...?

┆Attachments: Prozess verknüpfen 2.jpg

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.