Skip to content
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

[Dashboard]: add send telemetry to admin settings #7732

Merged
merged 1 commit into from
Jan 26, 2022

Conversation

mrsimonemms
Copy link
Contributor

@mrsimonemms mrsimonemms commented Jan 20, 2022

Description

This adds the "send telemetry" checkbox to the Admin dashboard and sets the default option to true - the front-end for #7591

It also moves the guardAdminAccess method from the EE gitpod-server-impl.ts to the one in src. This is because we're going to open up more dashboard administrative options to users regardless of whether they have an enterprise license or not - clearly, the option to disable telemetry should be available to all users.

Related Issue(s)

Fixes #7573

How to test

Go to the Dashboard -> Settings and click the "send telemetry" checkbox

Release Notes

[Dashboard]: add send telemetry to admin settings

Documentation

@codecov
Copy link

codecov bot commented Jan 20, 2022

Codecov Report

Merging #7732 (9834d65) into main (4f2e71e) will increase coverage by 1.57%.
The diff coverage is n/a.

❗ Current head 9834d65 differs from pull request most recent head 9e9672f. Consider uploading reports for the commit 9e9672f to get more accurate results
Impacted file tree graph

@@            Coverage Diff            @@
##            main    #7732      +/-   ##
=========================================
+ Coverage   8.63%   10.20%   +1.57%     
=========================================
  Files         33       18      -15     
  Lines       2339     1009    -1330     
=========================================
- Hits         202      103      -99     
+ Misses      2133      905    -1228     
+ Partials       4        1       -3     
Flag Coverage Δ
components-gitpod-cli-app 10.20% <ø> (ø)
components-installation-telemetry-app ?
components-local-app-app-darwin-amd64 ?
components-local-app-app-darwin-arm64 ?
components-local-app-app-linux-amd64 ?
components-local-app-app-linux-arm64 ?
components-local-app-app-windows-386 ?
components-local-app-app-windows-amd64 ?
components-local-app-app-windows-arm64 ?
installer-raw-app ?

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
installer/pkg/common/ca.go
installer/pkg/components/ws-manager/role.go
installer/pkg/common/storage.go
installer/pkg/components/ws-manager/rolebinding.go
installer/pkg/components/ws-manager/configmap.go
installer/pkg/components/ws-manager/tlssecret.go
installer/pkg/common/render.go
installer/pkg/common/common.go
...components/ws-manager/unpriviledged-rolebinding.go
installer/pkg/common/display.go
... and 5 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 4f2e71e...9e9672f. Read the comment docs.

@mrsimonemms
Copy link
Contributor Author

mrsimonemms commented Jan 21, 2022

/werft run

👍 started the job as gitpod-build-sje-installation-admin-dashboard.3

@mrsimonemms mrsimonemms force-pushed the sje/installation-admin-dashboard branch 2 times, most recently from 7620919 to 38221c8 Compare January 21, 2022 14:20
@mrsimonemms
Copy link
Contributor Author

mrsimonemms commented Jan 24, 2022

/werft run

👍 started the job as gitpod-build-sje-installation-admin-dashboard.7

@mrsimonemms mrsimonemms force-pushed the sje/installation-admin-dashboard branch 4 times, most recently from 0146564 to 4ffc7dd Compare January 24, 2022 15:12
@mrsimonemms mrsimonemms changed the title Sje/installation admin dashboard [Dashboard]: add send telemetry to admin settings Jan 24, 2022
@mrsimonemms mrsimonemms force-pushed the sje/installation-admin-dashboard branch 2 times, most recently from ca8094d to fa64af9 Compare January 25, 2022 11:42
@roboquat roboquat added size/L and removed size/XXL labels Jan 25, 2022
@mrsimonemms mrsimonemms force-pushed the sje/installation-admin-dashboard branch 2 times, most recently from 009d6a8 to 0951ced Compare January 25, 2022 11:58
@mrsimonemms mrsimonemms added this to the release/2022.01 milestone Jan 25, 2022
@mrsimonemms mrsimonemms marked this pull request as ready for review January 25, 2022 12:23
@mrsimonemms
Copy link
Contributor Author

/assign @gitpod-io/engineering-webapp

@mrsimonemms mrsimonemms requested a review from a team January 25, 2022 12:24
@mrsimonemms mrsimonemms force-pushed the sje/installation-admin-dashboard branch from 12fbca4 to 24aea53 Compare January 26, 2022 13:28
@roboquat roboquat removed the lgtm label Jan 26, 2022
@mrsimonemms mrsimonemms requested a review from geropl January 26, 2022 13:29
@mrsimonemms
Copy link
Contributor Author

Request changes made

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.

Nice @mrsimonemms 🚀

I left two more nits, but feel free to ignore to proceed here!

@roboquat roboquat added the lgtm label Jan 26, 2022
@roboquat
Copy link
Contributor

LGTM label has been added.

Git tree hash: bbd9a19ca4bec142f1ed26d44a299b1131e68f82

@mrsimonemms mrsimonemms force-pushed the sje/installation-admin-dashboard branch from 24aea53 to 9e9672f Compare January 26, 2022 14:41
@roboquat roboquat removed the lgtm label Jan 26, 2022
@mrsimonemms
Copy link
Contributor Author

@geropl nits fixed

@geropl
Copy link
Member

geropl commented Jan 26, 2022

/lgtm

@roboquat roboquat added the lgtm label Jan 26, 2022
@roboquat
Copy link
Contributor

LGTM label has been added.

Git tree hash: 6271ab208f8968504a76720a3a148d9360d078f9

@roboquat
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: geropl, gtsiolis

Associated issue: #7591

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@mrsimonemms
Copy link
Contributor Author

mrsimonemms commented Jan 26, 2022

@geropl @gtsiolis thank you both for your help/patience on these PRs 🙏🏻 🎉

@mrsimonemms
Copy link
Contributor Author

/unhold

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved release-note size/L team: delivery Issue belongs to the self-hosted team team: webapp Issue belongs to the WebApp team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Dashboard]: create telemetry screen in admin panel
4 participants