-
Notifications
You must be signed in to change notification settings - Fork 465
test(repo): load more resources to delete #9367
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| --- | ||
| --- |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -51,13 +51,13 @@ setup('cleanup instances ', async () => { | |
| const { data: usersWithEmail } = await clerkClient.users.getUserList({ | ||
| orderBy: '-created_at', | ||
| query: 'clerkcookie', | ||
| limit: 150, | ||
| limit: 500, | ||
| }); | ||
|
|
||
| const { data: usersWithPhoneNumber } = await clerkClient.users.getUserList({ | ||
| orderBy: '-created_at', | ||
| query: '55501', | ||
| limit: 150, | ||
| limit: 500, | ||
|
Comment on lines
+54
to
+60
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🗄️ Data Integrity & Integration | 🟡 Minor | ⚡ Quick win 🧩 Analysis chain🏁 Script executed: #!/bin/bash
set -euo pipefail
rg -n -C 12 \
'getUserList|getOrganizationList|totalCount|offset|limit: 500|delete' \
integration/cleanup/cleanup.setup.tsRepository: clerk/javascript Length of output: 6439 🏁 Script executed: #!/bin/bash
set -euo pipefail
printf '%s\n' '--- cleanup.setup.ts (relevant sections) ---'
sed -n '1,145p' integration/cleanup/cleanup.setup.ts
printf '%s\n' '--- call sites and pagination symbols ---'
rg -n -C 6 'getUserList|getOrganizationList|offset|usersToDelete|orgsToDelete|limit' integration/cleanup/cleanup.setup.ts
printf '%s\n' '--- standalone structural check ---'
python3 - <<'PY'
from pathlib import Path
import re
path = Path("integration/cleanup/cleanup.setup.ts")
text = path.read_text()
calls = re.findall(
r'(?P<api>getUserList|getOrganizationList)\s*\(\s*\{(?P<body>.*?)\}\s*\)',
text,
flags=re.S,
)
for api, body in calls:
print(f"{api}: limit_500={bool(re.search(r'\\blimit\\s*:\\s*500\\b', body))}, "
f"offset_present={bool(re.search(r'\\boffset\\s*:', body))}")
print("pagination_identifiers_present:",
bool(re.search(r'\\b(offset|totalCount|lastPage|hasNextPage|nextPage)\\b', text)))
PYRepository: clerk/javascript Length of output: 8637 Add pagination to cleanup queries.
🤖 Prompt for AI Agents |
||
| }); | ||
|
|
||
| // Deduplicate users by ID | ||
|
|
@@ -76,7 +76,7 @@ setup('cleanup instances ', async () => { | |
| let orgs: any[] = []; | ||
| try { | ||
| const { data: orgsData } = await clerkClient.organizations.getOrganizationList({ | ||
| limit: 150, | ||
| limit: 500, | ||
| }); | ||
| orgs = orgsData; | ||
| } catch (error) { | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🩺 Stability & Availability | 🟡 Minor | ⚡ Quick win
🧩 Analysis chain
🏁 Script executed:
Repository: clerk/javascript
Length of output: 1505
🏁 Script executed:
Repository: clerk/javascript
Length of output: 40631
Add a concurrency group for cleanup runs.
The workflow has no concurrency control. GitHub Actions can start another scheduled or manually dispatched run while the first is active.
🤖 Prompt for AI Agents