Skip to content

feat: Add batch operations support #16

@anjor

Description

@anjor

Feature Request: Batch Operations Support

Overview

Implement batch operations support to allow executing multiple pltr commands in a single operation, improving efficiency for automation and bulk operations.

Proposed Implementation

  • Add pltr batch command group
  • Support file-based batch execution: pltr batch --file commands.txt
  • Support inline batch execution: pltr batch "dataset get RID1; sql execute 'SELECT 1'; admin user current"
  • Include error handling and rollback capabilities for failed operations
  • Support parallel execution where safe (read operations)
  • Add progress reporting for long-running batch operations

Use Cases

  • Data Pipeline Automation: Execute multiple dataset and SQL operations in sequence
  • Bulk Administration: Manage multiple users, groups, or permissions at once
  • CI/CD Integration: Run comprehensive data validation scripts
  • Reporting Workflows: Generate multiple reports with single command

Technical Requirements

  • Extend CLI framework to support batch command parsing
  • Implement transaction-like behavior for related operations
  • Add comprehensive error handling and recovery
  • Support both sequential and parallel execution modes
  • Include dry-run mode for validation

Acceptance Criteria

  • pltr batch --file batch.txt executes commands from file
  • pltr batch "cmd1; cmd2; cmd3" executes inline commands
  • Error handling prevents partial state corruption
  • Progress reporting for long operations
  • Dry-run mode validates without execution
  • Parallel execution for safe read operations
  • Comprehensive test coverage

Priority: Medium
Labels: enhancement, Phase-8
Effort: Large

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions