-
Notifications
You must be signed in to change notification settings - Fork 6
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
Implement script storage #36
Comments
oops, wrong button! |
I would have gone for one file per rule, in json – with a directory for active rules and another one for inactive ones. I don't think that sqlite adds anything useful to the mix. |
Works for me. |
@Yoric A couple questions:
|
No, I'm afraid that I haven't updated thinkerbell to the latest taxonomy. Since the Taxonomy API is still changing, as I'm writing the real implementation of
Making it |
Yeah it compiles on its own, but I'm not sure how to write ScriptManager in a way that doesn't require I'm wondering if it may make sense to hold off on finishing this until taxonomy's more baked. In theory, ScriptManager should be straightforward to implement (i.e. reading files, loading them into the script manager); I'm just snagging myself on the hookup points with the API. Or, if you can see what I'm doing wrong in handling the API, I can try to get unstuck. |
I feel that you don't even need to touch the API for this issue. Let me take a look at your branch. |
@mcav Actually, I realize that sqlite would add something to the mix. It would save us from command injections, path injections, etc. So I revise my judgement and I would suggest heading towards sqlite, either now or in a future iteration. |
We need some kind of CRUD API for Thinkerbell.
Possibly something along the lines of:
Note that none of the methods should cause a panic, ever.
For a v2, we should also handle argument
on_event
ofExecution::<Env>::run()
, but this can wait for a followup.edit Reworked with a sync API.
The text was updated successfully, but these errors were encountered: