Skip to content

[Switch to PAYG] Deduplicate calls to server.subscribeToStripe #16822

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 4 commits into from
Mar 14, 2023

Conversation

AlexTugarev
Copy link
Member

@AlexTugarev AlexTugarev commented Mar 13, 2023

Description

This PR fixes superfluous and expensive calls to server (e.g. getAccountStatement 7 -> 2), but also ensures server.subscribeToStripe is called just a single time.

Screenshot 2023-03-14 at 12 00 56

Release Notes

NONE

Documentation

Build Options:

  • /werft with-werft
    Run the build with werft instead of GHA
  • leeway-no-cache
  • /werft no-test
    Run Leeway with --dont-test
Publish Options
  • /werft publish-to-npm
  • /werft publish-to-jb-marketplace
Installer Options
  • with-ee-license
  • with-dedicated-emulation
  • with-ws-manager-mk2
  • workspace-feature-flags
    Add desired feature flags to the end of the line above, space separated

Preview Environment Options:

  • /werft with-local-preview
    If enabled this will build install/preview
  • /werft with-preview
  • /werft with-large-vm
  • /werft with-gce-vm
    If enabled this will create the environment on GCE infra
  • /werft with-integration-tests=all
    Valid options are all, workspace, webapp, ide, jetbrains, vscode, ssh

@werft-gitpod-dev-com
Copy link

started the job as gitpod-build-at-dedupe-subscribe.1 because the annotations in the pull request description changed
(with .werft/ from main)

@AlexTugarev AlexTugarev marked this pull request as draft March 13, 2023 13:35
@roboquat roboquat added size/L and removed size/S labels Mar 14, 2023
@AlexTugarev AlexTugarev changed the title WIP dedupe subscribe [Switch to PAYG] Deduplicate calls to server.subscribeToStripe Mar 14, 2023
};
}

case "wait-for-signup": {
Copy link
Member Author

Choose a reason for hiding this comment

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

consolidated in subscribeToStripe

Copy link
Member

@geropl geropl left a comment

Choose a reason for hiding this comment

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

Code LGTM, tested and works as expected ✔️

@roboquat roboquat merged commit d319d8c into main Mar 14, 2023
@roboquat roboquat deleted the at/dedupe-subscribe branch March 14, 2023 14:54
@roboquat roboquat added deployed: webapp Meta team change is running in production deployed Change is completely running in production labels Mar 15, 2023
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/L team: webapp Issue belongs to the WebApp team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants