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

[server] When adding a project to a team, install the prebuild webhook as the adding user, not as a (random) team owner #6991

Merged
merged 1 commit into from
Dec 1, 2021

Conversation

jankeromnes
Copy link
Contributor

Description

When adding a project to a team, install the prebuild webhook as the adding user, not as a (random) team owner

Related Issue(s)

Fixes #6743 (comment)

How to test

See steps in #6743 (comment)

Release Notes

[server] When adding a project to a team, install the prebuild webhook as the adding user, not as a (random) team owner

Documentation

/uncc

@roboquat roboquat added release-note team: webapp Issue belongs to the WebApp team size/S labels Dec 1, 2021
@codecov
Copy link

codecov bot commented Dec 1, 2021

Codecov Report

Merging #6991 (c747a4f) into main (c54c85a) will increase coverage by 12.67%.
The diff coverage is n/a.

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

@@             Coverage Diff             @@
##             main    #6991       +/-   ##
===========================================
+ Coverage   19.04%   31.72%   +12.67%     
===========================================
  Files           2       89       +87     
  Lines         168    16347    +16179     
===========================================
+ Hits           32     5186     +5154     
- Misses        134    10710    +10576     
- Partials        2      451      +449     
Flag Coverage Δ
components-content-service-lib 14.05% <ø> (?)
components-image-builder-app 34.44% <ø> (?)
components-image-builder-mk3-app 34.94% <ø> (?)
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 ?
components-supervisor-app 37.19% <ø> (?)
components-ws-daemon-app 21.96% <ø> (?)
components-ws-daemon-lib 21.96% <ø> (?)
components-ws-manager-app 40.68% <ø> (?)
components-ws-proxy-app 68.26% <ø> (?)
installer-raw-app 5.84% <ø> (?)

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

Impacted Files Coverage Δ
components/local-app/pkg/auth/pkce.go
components/local-app/pkg/auth/auth.go
components/supervisor/pkg/config/gitpod-config.go 79.46% <0.00%> (ø)
...s/content-service/pkg/service/ideplugin-service.go 0.00% <0.00%> (ø)
components/supervisor/pkg/ports/served-ports.go 80.00% <0.00%> (ø)
components/supervisor/pkg/terminal/ring-buffer.go 45.65% <0.00%> (ø)
components/ws-daemon/pkg/resources/limiter.go 77.77% <0.00%> (ø)
components/ws-proxy/pkg/proxy/auth.go 100.00% <0.00%> (ø)
components/content-service/pkg/git/porcelain.go 91.89% <0.00%> (ø)
...image-builder-mk3/pkg/orchestrator/orchestrator.go 41.24% <0.00%> (ø)
... and 81 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 c54c85a...6287726. Read the comment docs.

@JanKoehnlein
Copy link
Contributor

/lgtm

@roboquat
Copy link
Contributor

roboquat commented Dec 1, 2021

LGTM label has been added.

Git tree hash: 0a468369e5a4432f128f87ae0b67ee1e6014fcbe

@roboquat
Copy link
Contributor

roboquat commented Dec 1, 2021

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: JanKoehnlein

Associated issue: #6743

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

@jankeromnes
Copy link
Contributor Author

/hold for refactors

@jankeromnes
Copy link
Contributor Author

jankeromnes commented Dec 1, 2021

Also, someone please test by joining https://jx-install-webhook-as-user.staging.gitpod-dev.com/teams/join?inviteId=bfc023a4-a415-48b3-9495-484d59fe1e70 then try to add a GitLab project 😁

@gtsiolis
Copy link
Contributor

gtsiolis commented Dec 1, 2021

Added a GitLab project with no error. ✔️

@jankeromnes
Copy link
Contributor Author

jankeromnes commented Dec 1, 2021

Thanks @gtsiolis for confirming! (Very cool choice of GitLab project 😁)

Also, thanks @JanKoehnlein for the review! Will just adjust the two minor comments and then unhold.

…k as the adding user, not as a (random) team owner
@jankeromnes jankeromnes force-pushed the jx/install-webhook-as-user branch from c747a4f to 6287726 Compare December 1, 2021 11:46
@roboquat roboquat removed the lgtm label Dec 1, 2021
@roboquat
Copy link
Contributor

roboquat commented Dec 1, 2021

New changes are detected. LGTM label has been removed.

@jankeromnes
Copy link
Contributor Author

jankeromnes commented Dec 1, 2021

Unholding, and manually carrying over LGTM since new pushed changes are small enough: https://github.com/gitpod-io/gitpod/compare/c747a4fa215e4f9ec7412f0e74301d067b63d9ae..62877264813141b5149daee30f04a37530f01616

/unhold

@roboquat roboquat merged commit 5a5f33d into main Dec 1, 2021
@roboquat roboquat deleted the jx/install-webhook-as-user branch December 1, 2021 12:10
@roboquat roboquat added deployed: webapp Meta team change is running in production deployed Change is completely running in production labels Dec 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved deployed: webapp Meta team change is running in production deployed Change is completely running in production release-note size/S team: webapp Issue belongs to the WebApp team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Bogus error alert when a team member adds a new GitLab project
5 participants