Skip to content

escalations and approvals commands crash: still calling removed DB functions #657

@nikrich

Description

@nikrich

Bug

All hive escalations and hive approvals subcommands crash with removed DB function errors:

Affected commands:

  • hive escalations listgetPendingEscalations() removed
  • hive escalations show <id>getEscalationById() removed
  • hive escalations acknowledge <id>getEscalationById() removed
  • hive approvals listgetPendingHumanEscalations() removed
  • hive approvals show <id>getEscalationById() removed
  • hive approvals approve <id> → (likely same)
  • hive approvals deny <id> → (likely same)

Error

Error: getPendingEscalations() removed — use CodeshipClient API instead
    at file:///app/dist/types/db-types.js:47:11
    at file:///app/dist/cli/commands/escalations.js:16:21

Root Cause

Same pattern as #655 — these commands still use the old direct-DB accessor functions that have been replaced with throwing stubs. They need to be migrated to use the CodeshipClient API.

Additional Note

The corresponding API endpoints also don't exist yet:

  • GET /escalations → 404
  • GET /approvals → 404

So even after the CLI is updated, the API backend needs these endpoints implemented.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions