-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Updates User List to support created_at & last_active_at date f…
…ilters (#348) * Updates User List to support created_at & last_active_at date filters * Adds Changelog entry * Update header to be next release This work has yet to be released. When we cut a release, we will update the changelog header to be the release number.
- Loading branch information
1 parent
9e781f8
commit a3db65d
Showing
3 changed files
with
39 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -47,12 +47,16 @@ func TestUserClientList_Request(t *testing.T) { | |
T: t, | ||
Method: http.MethodGet, | ||
Query: &url.Values{ | ||
"limit": []string{"1"}, | ||
"offset": []string{"2"}, | ||
"order_by": []string{"-created_at"}, | ||
"email_address": []string{"[email protected]", "[email protected]"}, | ||
"organization_id": []string{"org_123", "org_456"}, | ||
"email_address_query": []string{"@bar.com"}, | ||
"limit": []string{"1"}, | ||
"offset": []string{"2"}, | ||
"order_by": []string{"-created_at"}, | ||
"email_address": []string{"[email protected]", "[email protected]"}, | ||
"organization_id": []string{"org_123", "org_456"}, | ||
"email_address_query": []string{"@bar.com"}, | ||
"created_at_before": []string{"1730333164378"}, | ||
"created_at_after": []string{"1730333164378"}, | ||
"last_active_at_before": []string{"1730333164378"}, | ||
"last_active_at_after": []string{"1730333164378"}, | ||
}, | ||
}, | ||
} | ||
|
@@ -65,6 +69,10 @@ func TestUserClientList_Request(t *testing.T) { | |
} | ||
params.Limit = clerk.Int64(1) | ||
params.Offset = clerk.Int64(2) | ||
params.CreatedAtBefore = clerk.Int64(1730333164378) | ||
params.CreatedAtAfter = clerk.Int64(1730333164378) | ||
params.LastActiveAtBefore = clerk.Int64(1730333164378) | ||
params.LastActiveAtAfter = clerk.Int64(1730333164378) | ||
_, err := client.List(context.Background(), params) | ||
require.NoError(t, err) | ||
} | ||
|