Giter Club home page Giter Club logo

Comments (1)

monsieurtanuki avatar monsieurtanuki commented on August 12, 2024

I've just managed to change the product name in French on the prod website for 7613035982116 (and rolled back, of course).
As far as I understand the JSON that name was provided by the manufacturer, right?
But the protection of producer data is not implemented yet on the server side, right?

What are we supposed to store in off-dart? For each field (possibly with language):

  1. a bool stating that it was set by the producer?
  2. a timestamp (or null) of the latest update by the producer?
  3. the sorted lists of timestamps
  4. a timestamp + the id of the producer for the latest update?
  5. the sorted lists of timestamps + producers?
{
	"code": "7613035982116",
	"product": {
		"sources": [{
			"fields": [
				"product_name_fr",
				"abbreviated_product_name_fr",
				"generic_name_fr",
				"brands",
				"labels",
				"producer_version_id",
				"conservation_conditions_fr",
				"nutriscore_grade_producer",
				"customer_service_fr",
				"preparation_fr",
				"data_sources",
				"serving_size",
				"ingredients_text_fr"
			],
			"id": "org-nestle-france",
			"images": [],
			"import_t": 1679119300,
			"manufacturer": 1,
			"name": "nestle-france",
			"url": null
		}, {
			"fields": [],
			"id": "org-nestle-france",
			"images": [],
			"import_t": 1680150654,
			"manufacturer": 1,
			"name": "nestle-france",
			"url": null
		}, {
			"fields": [],
			"id": "org-nestle-france",
			"images": [],
			"import_t": 1680669259,
			"manufacturer": 1,
			"name": "nestle-france",
			"url": null
		}]
	},
	"status": 1,
	"status_verbose": "product found"
}

from openfoodfacts-dart.

Related Issues (20)

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.