close
Skip to content

feat(application): more precise plan upgrade/downgrade direction - #226

Merged
LorrisSaintGenez merged 3 commits into
mainfrom
feat/directional-plan-change
Jun 3, 2026
Merged

LorrisSaintGenez merged 3 commits into
mainfrom
feat/directional-plan-change

Conversation

@LorrisSaintGenez

@LorrisSaintGenez LorrisSaintGenez commented Jun 2, 2026 •

Copy link
Copy Markdown
Contributor

What

  • application upgrade/downgrade now list only the plans relevant to the current plan, in the order returned by the plans endpoint (no hardcoding): upgrade shows higher tiers, downgrade shows lower tiers.
  • Read the current plan from the application data (attributes.plan.label) and match it to the self-serve list by label.
  • No-op with a message when already at the highest/lowest plan, or when the requested plan equals the current one.
  • Explicit --plan still overrides direction; unknown/legacy plans fall back to the full list.

Test

go run ./cmd/algolia application upgrade --dry-run     # higher tiers only / "nothing to upgrade to"
go run ./cmd/algolia application downgrade --dry-run   # lower tiers only
go run ./cmd/algolia application upgrade --plan <current-plan>  # "already on … no change needed"

GROUT-361

@codacy-production

codacy-production Bot commented Jun 2, 2026 •

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 32 complexity · 6 duplication

Metric Results
Complexity 32
Duplication 6

View in Codacy

TIP This summary will be updated as you push new changes.

@LorrisSaintGenez
LorrisSaintGenez merged commit c500a26 into main Jun 3, 2026
3 checks passed
@LorrisSaintGenez
LorrisSaintGenez deleted the feat/directional-plan-change branch June 3, 2026 17:44
social4hyq pushed a commit to social4hyq/homebrew-core that referenced this pull request Sep 20, 2026
algolia 1.11.0

Created-by: HarmonybrewBot
Commit-by: HarmonybrewBot
Merged-by: HarmonybrewBot
Description: Created by `brew bump`

---

Created with `brew bump-formula-pr`.<details>
  <summary>release notes</summary>
  <pre>## What's Changed
* feat(open): add new dashboard shortcuts by @LorrisSaintGenez in algolia/cli#225
* feat(application): update/upgrade/downgrade/plans commands by @LorrisSaintGenez in algolia/cli#224
* docs: add npm install option to README by @tkrugg in algolia/cli#223
* feat(application): add name, tos and plan selection during application creation by @LorrisSaintGenez in algolia/cli#227
* feat(identify): send user data to identify after oauth flow by @LorrisSaintGenez in algolia/cli#228
* feat(application): more precise plan upgrade/downgrade direction by @LorrisSaintGenez in algolia/cli#226
* feat(telemetry): CLI flow events by @LorrisSaintGenez in algolia/cli#243
* feat: add auth get command by @levimichael in algolia/cli#253
* chore(api client): Upgrade Algolia Go API client by @tkrugg in algolia/cli#254
* fix: update 'auth get' to support refresh by @levimichael in algolia/cli#255
* feat(auth): Add token to `auth get` command by @levimichael in algolia/cli#257

## New Contributors
* @levimichael made their first contribution in algolia/cli#253

**Full Changelog**: https://github.com/algolia/cli/compare/v1.10.5...v1.11.0</pre>
  <p>View the full release notes at <a href="https://github.com/algolia/cli/releases/tag/v1.11.0">https://github.com/algolia/cli/releases/tag/v1.11.0</a>.</p>
</details>
<hr>

See merge request: Harmonybrew/homebrew-core!13019
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.

2 participants