Skip to content

feat: heroku sdk integration ps commands#3732

Merged
michaelmalave merged 9 commits into
feat/heroku-sdk-integrationfrom
mm/feat/heroku-sdk-integration-ps-commands
May 29, 2026
Merged

feat: heroku sdk integration ps commands#3732
michaelmalave merged 9 commits into
feat/heroku-sdk-integrationfrom
mm/feat/heroku-sdk-integration-ps-commands

Conversation

@michaelmalave
Copy link
Copy Markdown
Contributor

@michaelmalave michaelmalave commented May 28, 2026

Summary

This PR refines the SDK migration work on top of feat/heroku-sdk-integration by simplifying ps command implementation and consolidating typing/call patterns in the touched command paths. Scope is limited to ps commands, minor maintenance-command alignment, and related test/lockfile updates.

  • Refactor ps:index, ps:restart, and ps:scale to use streamlined SDK interaction patterns
  • Remove now-unnecessary adapter indirection introduced during earlier migration iterations
  • Update ps unit tests to match the revised SDK call flow and output expectations
  • Align maintenance command touchpoints and PG type usage with the updated integration branch behavior
  • Refresh package-lock.json to reflect dependency state after the refactor

Type of Change

  • fix: Bug fix or issue (patch semvar update)
  • feat: Introduces a new feature to the codebase (minor semvar update)
  • perf: Performance improvement
  • docs: Documentation only changes
  • tests: Adding missing tests or correcting existing tests
  • chore: Code cleanup tasks, dependency updates, or other changes

Verification

npm install && npm run build
npm run test

Additional Context

  • Breaking: none expected
  • Risk: low to medium; scoped to process command internals and test alignment
  • Merge target: feat/heroku-sdk-integration

Related Issue

W-22265197

sbosio and others added 5 commits May 18, 2026 15:40
fix: add missing warning to 'data:pg:migrate'
…3724)

Both Claude Code and GitHub Copilot Code Review look for tool-specific
instruction files (CLAUDE.md and .github/copilot-instructions.md
respectively). Point both at the canonical AGENTS.md so we don't have
to maintain duplicate guidelines per tool.
…#3721)

Co-authored-by: Claude Sonnet 4.6 <noreply@anthropic.com>
…g shared runUpgrade/prepareUpgrade/dryRunUpgrade helpers and refactor the corresponding upgrade commands to use them instead of repeating inline SDK method casting.
…targeted @ts-expect-error annotations and explicit function types to document current heroku-types gaps while keeping calls type-safe.
Copy link
Copy Markdown
Contributor

@eablack eablack left a comment

Choose a reason for hiding this comment

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

It's good that we're integrated the SDK successfully here, but a big part of what we're trying to accomplish with it isn't just to replace the underlying API client (though that is an exciting part of it) -- we also want to abstract useful logic workflows from the CLI into the SDK so we can use them elsewhere. scale seems like a worthwhile candidate for that. Lemme know what you think.

Comment thread src/lib/ps/sdk-adapter.ts Outdated
Comment thread src/commands/ps/scale.ts
…interactions in ps:index/ps:scale, and update lockfile and unit tests to match the simplified implementation and typing behavior
…mplify quota parameter handling, while tightening ps:scale type-safe shield size formatting to avoid unsafe fallback conversions
@michaelmalave michaelmalave merged commit 66cd833 into feat/heroku-sdk-integration May 29, 2026
4 of 17 checks passed
@michaelmalave michaelmalave deleted the mm/feat/heroku-sdk-integration-ps-commands branch May 29, 2026 21:04
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.

4 participants