Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

chore: add /groups endpoint to filter byorganization and/ormember#14260

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
Emyrk merged 13 commits intomainfromstevenmasley/remove_extra_groups_query
Aug 15, 2024

Conversation

Emyrk
Copy link
Member

Closes#14249

@EmyrkEmyrk changed the titlechore: merge get groups sql queries into 1chore: add /groups endpoint to filter byorganization and/ormemberAug 13, 2024
@EmyrkEmyrkforce-pushed thestevenmasley/remove_extra_groups_query branch from813a4da to190bd90CompareAugust 13, 2024 16:29
@EmyrkEmyrk marked this pull request as ready for reviewAugust 13, 2024 17:34
@alwaysmeticulousalwaysmeticulous
Copy link

alwaysmeticulousbot commentedAug 13, 2024
edited
Loading

✅ Meticulous spotted zero visual differences across 1412 screens tested:view results.

Expected differences?Click here. Last updated for commitee3c8e4. This comment will update as new commits are pushed.

@EmyrkEmyrk requested a review fromf0sselAugust 13, 2024 19:21
Comment on lines +73 to +81
source
)
SELECT
gen_random_uuid(),
group_name,
@organization_id,
@source
gen_random_uuid(),
group_name,
@organization_id,
@source
FROM
UNNEST(@group_names :: text[]) AS group_name
UNNEST(@group_names :: text[]) AS group_name
Copy link
Contributor

Choose a reason for hiding this comment

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

weird spacing here

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

SQL spacing is so annoying. I wish there was some nice formatter that just worked.

// UUIDorName will parse a string as a UUID, if it fails, it uses the "fetchByName"
// function to return a UUID based on the value as a string.
// This is useful when fetching something like an organization by ID or by name.
func (p *QueryParamParser) UUIDorName(vals url.Values, def uuid.UUID, queryParam string, fetchByName func(name string) (uuid.UUID, error)) uuid.UUID {
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: having the query param 3rd here feels off to me personally, I'd expect the order values, query param, uuid, fetchByName.

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

I see that, unfortunately the other functions all dodefault, queryParam so it felt odd to switch the order of those two.

I agree with you though, I think all the functions could be reordered, but don't want to do that refactor here.

@EmyrkEmyrk merged commit7b09d98 intomainAug 15, 2024
33 checks passed
@EmyrkEmyrk deleted the stevenmasley/remove_extra_groups_query branchAugust 15, 2024 18:40
@github-actionsgithub-actionsbot locked and limited conversation to collaboratorsAug 15, 2024
Sign up for freeto subscribe to this conversation on GitHub. Already have an account?Sign in.
Reviewers

@f0sself0sself0ssel approved these changes

Assignees

@EmyrkEmyrk

Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

Implement endpoint to list all organizations memberships and group memberships
2 participants
@Emyrk@f0ssel

[8]ページ先頭

©2009-2025 Movatter.jp