Skip to content

add domian search to orgs query#58

Merged
mrmauer merged 1 commit intomainfrom
feat/979
Nov 14, 2024
Merged

add domian search to orgs query#58
mrmauer merged 1 commit intomainfrom
feat/979

Conversation

@mrmauer
Copy link
Contributor

@mrmauer mrmauer commented Nov 8, 2024

BE PR dependency

After PR

You can now:

auth.org().fetch_orgs_by_query(
    FetchOrgsByQueryParams {
        domain: Some("example.com".to_string()),
        page_size: Some(10),
        page_number: Some(0),
        order_by: Some(FetchOrgOrderBy::CreatedAtAsc),
        name: None,
        legacy_org_id: None,
    }
)

This will only return orgs that have an exact match to the search term w/ either its primary domain or one of its additional domains.

Copy link
Contributor

@pfvatterott pfvatterott left a comment

Choose a reason for hiding this comment

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

LGTM!

@mrmauer mrmauer merged commit 5a3d26e into main Nov 14, 2024
@mrmauer mrmauer deleted the feat/979 branch November 14, 2024 18:22
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.

2 participants