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

Return all project ids a tenant is member of within a given tenant #99

Merged
merged 12 commits into from
Oct 29, 2024

Conversation

simcod
Copy link
Collaborator

@simcod simcod commented Jun 5, 2024

No description provided.

@simcod simcod requested a review from a team as a code owner June 5, 2024 09:17
Copy link
Contributor

@Gerrit91 Gerrit91 left a comment

Choose a reason for hiding this comment

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

This looks pretty good to me now. I have two more questions though:

  1. The PR title says you want toreturn the project annotations as well. Is this still planned? Because I think it's not happening at the moment.
  2. In your test case, the Github tenant has a tenant membership with editor annotation, so implicitly he has access to all projects of the Github tenant. Why is there only project 1 returned?

@Gerrit91
Copy link
Contributor

Gerrit91 commented Jul 9, 2024

@simcod Ping?

@simcod
Copy link
Collaborator Author

simcod commented Jul 10, 2024

@simcod Ping?

Sorry, did not had time yet. Will have a look at it in the next few days.

@simcod simcod changed the title Return tenantmembers with its corresponding projects and project annotations Return all project ids a tenant is member of within a given tenant Jul 12, 2024
@simcod
Copy link
Collaborator Author

simcod commented Jul 12, 2024

This looks pretty good to me now. I have two more questions though:

  1. The PR title says you want toreturn the project annotations as well. Is this still planned? Because I think it's not happening at the moment.
  2. In your test case, the Github tenant has a tenant membership with editor annotation, so implicitly he has access to all projects of the Github tenant. Why is there only project 1 returned?

I have updated the PR name and test case.

@simcod simcod requested a review from Gerrit91 July 19, 2024 07:50
Copy link
Contributor

@Gerrit91 Gerrit91 left a comment

Choose a reason for hiding this comment

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

Only nit-picking.

pkg/service/tenant_test.go Outdated Show resolved Hide resolved
proto/v1/tenant.proto Show resolved Hide resolved
@Gerrit91 Gerrit91 merged commit 4d8b184 into master Oct 29, 2024
1 check passed
@Gerrit91 Gerrit91 deleted the guest-member-project-reference branch October 29, 2024 09:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants