Generalize the `subscribeTeamToStripe` method so that it works for user
attribution ids too.
Implement the `subscribeTeamToStripe` method in terms of the new general
method.
Add a general method for finding the stripe subscription id for a given
attribution id. Implement the existing `findStripeSubscriptionIdForTeam`
method in terms of the new method.
Currently, The service ping can be disabled by going into the
admin settings. Users are more likely to do that if they have
no clue what is being sent.
This PR tries to improve this experience, by showcasing the
exact data that is being sent below the option. This is possible
by creating a new TelemetryDataProvider and injecting that
both in the `installation-admin-collector` controller
and the `gitpod-service` (`getTelemetryData` func is added here
that can be used).
This PR also adds a gaurd to the `/admin/settings` page which
was missing previously
Signed-off-by: Tarun Pothulapati <tarun@gitpod.io>
replace cluster with gitpod instance in desc
Signed-off-by: Tarun Pothulapati <tarun@gitpod.io>
easy nits around design and TelemetryData naming
Signed-off-by: Tarun Pothulapati <tarun@gitpod.io>
gaurd telemetry method with admin access
Signed-off-by: Tarun Pothulapati <tarun@gitpod.io>
replace TelemetryData at more places
Signed-off-by: Tarun Pothulapati <tarun@gitpod.io>
gaurd access to `admin/settings` like other admin settings
Signed-off-by: Tarun Pothulapati <tarun@gitpod.io>
call useEffect hook early
Signed-off-by: Tarun Pothulapati <tarun@gitpod.io>
Co-authored-by: George Tsiolis <tsiolis.g@gmail.com>
Co-authored-by: Laurie T. Malau <laurie@gitpod.io>
Co-authored-by: Alex Tugarev <alex.tugarev@typefox.io>
instead of showing the configuration page, let's show a simple `New Workspace` button to start a workspace.
we rescue the auto-inferred configuration or use the existing one to trigger a prebuild right away.
Co-authored-by: Jan Keromnes <janx@linux.com>
Co-authored-by: Alex Tugarev <alex@gitpod.io>