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

feat: Single query for all workspaces with optional filter#1537

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 9 commits intomainfromstevenmasley/all_workspaces
May 18, 2022

Conversation

Emyrk
Copy link
Member

Filters

  • OrgID
  • Username/UserID

Future work

  • Add template id query param to filter

@EmyrkEmyrk marked this pull request as ready for reviewMay 17, 2022 23:45
@EmyrkEmyrk requested a review froma team as acode ownerMay 17, 2022 23:45
Copy link
MemberAuthor

@EmyrkEmyrk left a comment

Choose a reason for hiding this comment

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

We can remove more routes in favor of this one

Comment on lines +150 to +157
fork,v:=rangeassertRoute {
noTrailSlash:=strings.TrimRight(k,"/")
if_,ok:=assertRoute[noTrailSlash];ok&&noTrailSlash!=k {
t.Errorf("route %q & %q is declared twice",noTrailSlash,k)
t.FailNow()
}
assertRoute[noTrailSlash]=v
}
Copy link
MemberAuthor

Choose a reason for hiding this comment

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

Routes were being duplicated with a trailing slash. Just catching dev errors.

kylecarbs and greyscaled reacted with thumbs up emoji
}

typeWorkspaceFilterstruct {
OrganizationID uuid.UUID
Copy link
Member

Choose a reason for hiding this comment

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

Should we makeOrganizationID beOrganization, similar toOwner? Then the organization's name could be used, or its ID.

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

It would be the first time we useOrganizationName in the api right? We should probably make a PR to do this everywhere if we decide for it

Copy link
Member

Choose a reason for hiding this comment

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

I suppose we technically could make organization an ID or name, just like users.

Copy link
MemberAuthor

Choose a reason for hiding this comment

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

Yea, we just have to do it across more endpoints imo. Should be another PR to do this like the users PR I did

@EmyrkEmyrk merged commita3556b1 intomainMay 18, 2022
@EmyrkEmyrk deleted the stevenmasley/all_workspaces branchMay 18, 2022 15:09
kylecarbs pushed a commit that referenced this pull requestJun 10, 2022
* feat: Add single query for all workspaces using a filter
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@kylecarbskylecarbskylecarbs approved these changes

+1 more reviewer

@greyscaledgreyscaledgreyscaled approved these changes

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@Emyrk@kylecarbs@greyscaled

[8]ページ先頭

©2009-2025 Movatter.jp