-
Notifications
You must be signed in to change notification settings - Fork 13
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 CLI command to list and delete custom actions #28
Add CLI command to list and delete custom actions #28
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
1 Skipped Deployment
|
admyral/db/admyral_store.py
Outdated
delete(PythonActionSchema).where( | ||
PythonActionSchema.action_type == action_type | ||
) |
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.
You need to consider the user_id
too. Can you merge the newest changes into your branch.
47e4081
to
3d4de07
Compare
admyral/cli/action.py
Outdated
|
||
@action.command( | ||
"list", | ||
help="List all pushed actions", |
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.
help="List all pushed actions", | |
help="List all custom actions", |
authenticated_user: AuthenticatedUser = Depends(authenticate), | ||
) -> list[ActionMetadata]: | ||
""" | ||
List all stored Python actions. |
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.
List all stored Python actions. | |
List all stored custom Python actions. |
List all stored Python actions. | ||
|
||
Returns: | ||
A list of Python action objects. |
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.
A list of Python action objects. | |
A list of custom Python action objects. |
action_type: str, authenticated_user: AuthenticatedUser = Depends(authenticate) | ||
) -> None: | ||
""" | ||
Delete a Python action by its action type. |
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.
Delete a Python action by its action type. | |
Delete a custom Python action by its action type. |
Delete a Python action by its action type. | ||
|
||
Args: | ||
action_type: The action type. |
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.
action_type: The action type. | |
action_type: The function name of the custom action. |
d341b99
to
0d0e894
Compare
This PR adds two new CLI action commands:
list
to list all pushed actionsdelete
to delete a specified action