Skip to content

[UBP] Use findStripeSubscriptionId in BillingAccountSelector component #12954

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

Merged
merged 1 commit into from
Sep 14, 2022

Conversation

andrew-farries
Copy link
Contributor

@andrew-farries andrew-farries commented Sep 14, 2022

Description

Use the more general findStripeSubscriptionId API rather than findStripeSubscriptionIdForTeam to allow the latter to be safely removed from the server JSON-RPC API in a subsequent PR.

The BillingAccountSelector component is used on the individual user settings page:

image

Related Issue(s)

Part of #12685

How to test

  1. Create some Gitpod-something teams in the preview environment and sign them up for UBP.
  2. Visit your billing settings page and use the billing account selector controls to define your cost center.

The selected cost center is respected. (Easiest way to verify this is to examine the d_b_users.usageAttributionId field in the db).

Release Notes

NONE

Documentation

Werft options:

  • /werft with-preview
  • /werft with-payment

Use the more general `findStripeSubscriptionId` rather than
`findStripeSubscriptionIdForTeam` to allow the latter to be safely
removed from the server JSON-RPC API.
@andrew-farries andrew-farries requested a review from a team September 14, 2022 11:30
@github-actions github-actions bot added the team: webapp Issue belongs to the WebApp team label Sep 14, 2022
@werft-gitpod-dev-com
Copy link

started the job as gitpod-build-af-use-find-stripe-subscription-id.2 because the annotations in the pull request description changed
(with .werft/ from main)

@roboquat roboquat merged commit 55940a8 into main Sep 14, 2022
@roboquat roboquat deleted the af/use-find-stripe-subscription-id branch September 14, 2022 11:57
@roboquat roboquat added deployed: webapp Meta team change is running in production deployed Change is completely running in production labels Sep 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
deployed: webapp Meta team change is running in production deployed Change is completely running in production release-note-none size/XS team: webapp Issue belongs to the WebApp team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants