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

feat: add project unpause command #2716

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

avallete
Copy link
Contributor

What kind of change does this PR introduce?

Feature

What is the current behavior?

Currently, there is no functionality to unpause a paused Supabase project through the CLI.

What is the new behavior?

This PR introduces a new command supabase projects unpause that allows users to unpause a paused Supabase project. The new features include:

  1. A new API endpoint /v1/projects/{ref}/unpause for unpausing projects. (see: https://github.com/supabase/infrastructure/pull/20022)
  2. A new CLI command supabase projects unpause <ref> to unpause a project.
  3. The ability to list and select only inactive projects when unpausing.
  4. Updated project listing to include the project status.
  5. New tests for the unpause functionality.

Key changes:

  • Added a new unpause package with the main logic for unpausing a project.
  • Modified the project listing to show the project status.
  • Added filtering capability to show only inactive projects when unpausing.

Additional context

Closes: #2715
Related: https://www.notion.so/supabase/resume-project-from-cli-10d5004b775f80f6bbc2e12a29fa80c5

@avallete avallete requested a review from a team as a code owner September 30, 2024 15:32
@coveralls
Copy link

Pull Request Test Coverage Report for Build 11109357807

Details

  • 24 of 63 (38.1%) changed or added relevant lines in 4 files are covered.
  • 5 unchanged lines in 1 file lost coverage.
  • Overall coverage decreased (-0.2%) to 59.887%

Changes Missing Coverage Covered Lines Changed/Added Lines %
internal/utils/flags/project_ref.go 5 8 62.5%
internal/projects/unpause/unpause.go 14 25 56.0%
cmd/projects.go 1 26 3.85%
Files with Coverage Reduction New Missed Lines %
internal/gen/keys/keys.go 5 12.9%
Totals Coverage Status
Change from base Build 11074058380: -0.2%
Covered Lines: 6484
Relevant Lines: 10827

💛 - Coveralls

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.

Add command to unpause project from the cli
2 participants