Support plugin-defined automations - #2553
Draft
BelhsanHmida wants to merge 4 commits into
Draft
BelhsanHmida wants to merge 4 commits into
BelhsanHmida wants to merge 4 commits into
Conversation
Documentation build overview
12 files changed ·
|
5 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Plugin authors can now register automation types backed by a
DataGenerator. Registered types use their own strict configuration and parameter schemas, queue, display name, and result terminology while using the existing automation API, CLI, dispatcher, job monitoring, and UI.AutomationHandlerregistry with built-in adapters for forecasting and scheduling.__automation_types__.documentation/changelog.rstLook & Feel
The automation page builds its type tabs from the registered handlers. Existing records whose plugin is not installed remain visible and are labelled
plugin unavailable.Custom plugin automations can be created through the API or CLI. For example:
Invalid or unknown configuration and parameter fields return validation errors associated with the relevant payload section.
How to test
Relevant test modules:
flexmeasures/data/tests/test_plugin_automations_fresh_db.pyflexmeasures/api/v3_0/tests/test_plugin_automations_api_fresh_db.pyflexmeasures/cli/tests/test_plugin_automations.pyflexmeasures/ui/tests/js/test_automation_actions.pyFurther Improvements
Related Items
Closes #2530.
Sign-off