How to handle patches + scrapper #8
ForwardFeed
started this conversation in
General
Replies: 1 comment 33 replies
|
Hmm, both solutions are quite sensible. Considering references that must/should be set to properties, the second solution might be a more viable approach. Also allowing for flexibility, even when structural changes are required. Such an approach is likely to handle parallel PRs and duplicate values more effectively. However, I don't know if it's worth the extra effort. Because there will probably be only few overlapping PRs. If we decide on the second solution, storing the patches as individual files in a separate folder (such as patches/history or something similar) is easy to do. The good thing is that Git has pretty powerful version control, meaning even without permanent storage, changes remain traceable. |
33 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
As we've discussed previously we for now aim to use patches to update the database.
I planned to start to make the web scrapper repository, then I wondered how does the output should've looked like.
How do we handle patches since all data is scattered across multiple files.
The first one is pretty simple and less work.
The second one could introduce some interesting opening, for example the ability to extend the formatting and to add extra text solely for the purpose of explaining some values,
for example a patch JSON with a value commented
{ "value": 15.0, "comment": "This actually could be given as set as a range as the source cites multiple values, like 15.5, 16.5? but maybe we should just keep the average or the room temp value first" }And then the automation will strip the comment when inserting in the database
also should we keep all patches in memory? to have a sort of historic of it?
All reactions