Skip to content

feat(cli): name the add-on fix on add-on denials - #7841

Draft
pamelachia wants to merge 3 commits into
developfrom
pamchia/growth-1543-cli-show-add-on-setting-and-spend-cap
Draft

pamelachia wants to merge 3 commits into
developfrom
pamchia/growth-1543-cli-show-add-on-setting-and-spend-cap

Conversation

@pamelachia

@pamelachia pamelachia commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

When the Management API denies a request because a project add-on is missing, it points upgrade_url at the project's add-ons page. The CLI still printed "Your organization's plan does not include this feature" and counted the denial as a plan suggestion. I made the hint and the cli_upgrade_suggested event follow where upgrade_url points.

Changed:

  • Text hint on add-on denials: when upgrade_url points at a project add-ons page, the CLI prints "This feature needs a project add-on. Add-ons: ". Every other URL keeps the current plan hint, so output against an API that only sends billing URLs is unchanged. JSON output is unchanged.
  • fix_kind on cli_upgrade_suggested: addon or plan, read from the same URL, so add-on and plan denials can be counted separately.
  • Project group on add-on denials: an add-ons URL has no /org/<slug> part, so org_slug is empty on these events. When the error names no project, I attach the failure's events (cli_upgrade_suggested and cli_command_executed) to the project group of the ref in the URL.

Note: #7760 also edits the same hint and telemetry code. Whichever merges second needs a rebase.

Linear

  • fixes GROWTH-1543

@pamelachia pamelachia self-assigned this Nov 27, 2026

This branch has not been deployed

No deployments
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.

1 participant