Skip to content

Conversation

@joshrotenberg
Copy link
Collaborator

Summary

This PR adds enterprise action commands for managing tasks and workflows in Redis Enterprise clusters.

Features

  • List actions: View all actions/tasks with optional filtering by status and type
  • Get action details: Retrieve detailed information about a specific action
  • Action status: Get just the status information for an action
  • Cancel action: Cancel a running action
  • List actions for database: View actions specific to a database

Implementation Details

  • Support for both v1 and v2 API endpoints via --v2 flag
  • Integrated with existing output formatting system (JSON/YAML/Table)
  • JMESPath query support for filtering output
  • Client-side filtering for status and action_type

Testing

Successfully tested against Docker compose Redis Enterprise environment:

  • Listed all actions with v2 endpoint
  • Retrieved specific action details
  • Filtered actions by status
  • Checked action status

Closes #166

- Add list, get, status, cancel, and list-for-bdb subcommands
- Support both v1 and v2 API endpoints with --v2 flag
- Add filtering by status and action type for list command
- Integrate with existing output formatting and JMESPath query support
- Test coverage against Docker compose environment

Implements #166
- Add #[allow(dead_code)] attributes for methods used via trait impl
- Fix collapsible if statement using if-let chain syntax
- Ensure all clippy checks pass with -D warnings flag
@joshrotenberg joshrotenberg merged commit 85f4efc into main Sep 13, 2025
22 checks passed
@joshrotenberg joshrotenberg deleted the feat/enterprise-action-commands branch September 13, 2025 19:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(enterprise): implement action tracking commands

2 participants