gbdev / database

JSON database of every Homebrew Hub entries. Propose here additions, improvements and fixes, every change propagates to Homebrew Hub.
https://hh.gbdev.io
Other
80 stars 39 forks source link

Distinguish scraped from manually verified/corrected entries #77

Open asiekierka opened 3 years ago

asiekierka commented 3 years ago

In the event of an active platform which is being scraped multiple times, it's a good idea to know which entries have been manually adjusted or corrected, so that their metadata is not overridden with a flawed or incomplete version.

An ideal solution, IMO, would be for the raw, scraped data to be stored separately from manually corrected/user-provided data. From there, they could be merged every time an update is performed.

An alternate solution would be for the metadata to contain the source of the information, allowing skipping such unwanted overrides in this way.

avivace commented 2 years ago

In the event of an active platform which is being scraped multiple times, it's a good idea to know which entries have been manually adjusted or corrected, so that their metadata is not overridden with a flawed or incomplete version.

An ideal solution, IMO, would be for the raw, scraped data to be stored separately from manually corrected/user-provided data. From there, they could be merged every time an update is performed.

An alternate solution would be for the metadata to contain the source of the information, allowing skipping such unwanted overrides in this way.

This is a quite interesting issue. However, I honestly fail to see a feasible way to implement this without destroying the current pipelines in a major way.

E.g.: We could add an "audit report" [1] property to the JSON schema reporting every action that has been taken on a entry, reporting which scraper generated it and how, so the generation process is reproducible. On the top of this "initial" step, one could add ones describing user interventions on those JSONs.

At this point I don't see how we can keep the JSONs human editable as they are now, though.

[1] Some of those concepts are described in the OAIS model specification - https://public.ccsds.org/pubs/650x0m2.pdf

dag7dev commented 4 months ago

can it be an interesting addition to add a "manual" or "verified" tag, so that manually reviewed entries could be tagged?