-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Migrate the route "/api/invocations/{invocation_id}" of the workflows API to Fast API #17052
Conversation
Hi @heisner-tillman, I did not get a closer look at your PR yet but please be aware of potential duplicate effort due to #16707. |
FAILED = "failed" | ||
|
||
|
||
class EncodedInvocation(BaseModel): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you name these things {Something}Response
?
model_class: str = Field(default=Required, title="Model class", description="Model class name.") | ||
# TODO - Add proper models | ||
steps: Optional[List[Dict[str, Optional[str]]]] = None | ||
inputs: Optional[Dict[str, Dict[str, Optional[str]]]] = None | ||
input_step_parameters: Optional[Dict[str, Dict[str, Optional[str]]]] = None | ||
outputs: Optional[Dict[str, Dict[str, Optional[str]]]] = None | ||
output_collections: Optional[Dict[str, Dict[str, Optional[str]]]] = None | ||
output_values: Optional[Dict[str, Optional[str]]] = None | ||
# TODO understand where this comes from | ||
message: Optional[str] = Field( | ||
default=None, title="Message", description="Message associated with this invocation." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are these really optional, or is it just that they can be null ? That's not the same
To avoid duplication, this work will be continued in collaboration with @martenson on his pull request #16707! |
This is a part of #10889.
Summary
How to test the changes?
You can find the interactive API documentation here: http://127.0.0.1:8080/api/docs#/workflows/show_invocation_api_invocations__invocation_id__get
License