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

indexer-common,cli: actions update command #551

Merged
merged 1 commit into from
Dec 12, 2022
Merged

Conversation

fordN
Copy link
Contributor

@fordN fordN commented Dec 2, 2022

This PR introduces an actions update ... command for updating one or more actions in the action queue. In order to support this command to update many actions in a single request an updateActions resolver has been added as well.

In the CLI the user can use options to filter the actions that will be updated and the user can provide key value pairs for the action keys that will be updated.

graph indexer actions update [options] [<key1> <value1> ...]

Example usage, update all failed, reallocate actions to have force=true:

graph indexer actions update --status failed --type reallocate force true

Along with the added functionality a new test of the updateActions resolver has been included. In a subsequent PR I'll add CLI level tests of success and failure modes for the update command.

Shout out to @hopeyen for doing most of the work here on this feature! I was just there to do some final interface updates and push it across the finish line.

@fordN fordN requested review from hopeyen and tilacog and removed request for hopeyen December 2, 2022 18:57
@fordN fordN self-assigned this Dec 2, 2022
Copy link
Contributor

@hopeyen hopeyen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

overall looks great!

packages/indexer-cli/src/actions.ts Show resolved Hide resolved
packages/indexer-cli/src/actions.ts Show resolved Hide resolved
@fordN fordN force-pushed the ford/actions-update-command branch 5 times, most recently from 9475fed to d5a6bf2 Compare December 9, 2022 22:08
@fordN fordN force-pushed the ford/actions-update-command branch from d5a6bf2 to cd6fd7c Compare December 12, 2022 17:46
@fordN fordN merged commit d820a46 into main Dec 12, 2022
@fordN fordN deleted the ford/actions-update-command branch December 12, 2022 18:32
@fordN fordN linked an issue Jan 31, 2023 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: 🚗 Merged
Development

Successfully merging this pull request may close these issues.

AQI: Support updating an action queue item in place from indexer-cli
2 participants