-
-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Regularly check that recipe flags are still valid #911
Comments
We don't need to check it "regularly" IMO, wee need to check it when we change a scraper cmd line interface. This is mostly a procedural problem. How can we secure that? I would propose that introduction of new version of scraper go through a precise list of checks. But maybe there is a better approach. |
You're right. We could have a maintenance script which is ran after all offliners definitions update and reports inconsistencies in recipes. And then fix inconsistencies manually either via manual SQL queries or manual recipe updates through the UI; I don't believe fixing them automatically is a good thing because there are many different situations to consider + we might want to not always fix all of them (there is only one offliner definition but this is in fact linked to the scraper version used, so in some situations we might want to continue to use an former scraper version and hence a former set of flags, like we currently have with zimit2 and zimit1 ... except the flags have not changed) |
How I use to implement this is:
But I would first implement anyway the checklist to solve the problem with a process. |
@benoit74 The dataset are the recipes here, maybe even tasks. |
We already have SQL update scripts, which are aimed at updating the DB schema and data. They are automatically applied at each application restart. They are ran inside a transaction, so should any of them fail the update stops. I'm not sure this is a solution however because:
Let's have a look at it once we work on this issue, maybe this is still sufficient. |
Every once in a while, offliners definitions (list of flags & validation constraints) are updated to reflect changes in scrapers capabilities / usage. However, no check on existing recipes flags are performed, meaning they could be incorrect given the new offliners definitions
We should check:
The text was updated successfully, but these errors were encountered: