Skip to content
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

Add plugin task type inference workflow #618

Open
3 tasks
keithmanville opened this issue Aug 16, 2024 · 0 comments
Open
3 tasks

Add plugin task type inference workflow #618

keithmanville opened this issue Aug 16, 2024 · 0 comments
Assignees
Labels
feature New feature to add to project

Comments

@keithmanville
Copy link
Collaborator

keithmanville commented Aug 16, 2024

Add a new workflow endpoint for inferring the types of a plugin task.

POST /workflows/pluginTaskProposal {"plugin_file": "contents"}

This feature should use #443 to infer parameter type names. From this it should query the database for matching names to propose existing types in the database along with missing types and the proposed data that can be used to create the type.

The response should be something like:

{
  task_name: {
    "inputParams": { name: { "proposed_types": [resource_id: int, ... ], "missing_type": PluginParameterTypeSchema } ... } }, 
    "outputParams": [{ "proposed_types": [resource_id: int, ... ], "missing_type": PluginParameterTypeSchema } , ...] }
   }, ...
}

You should always get either a proposed_type or a missing_type -- might need to further specify this when we get to implementing fuzzy matching.

This feature should build off of #443

This feature will be implemented in three separate stages:

Tasks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature to add to project
Projects
None yet
Development

No branches or pull requests

3 participants