Repository navigation
fix(plugins): include ClickUp folder-contained lists - #13288
kaijakagi-sys wants to merge 6 commits into
Conversation
Fixes BasedHardware#13130. Four regression failures before; five methods/six cases pass after. Complete production client with HTTP/dotenv doubles; no live ClickUp/OAuth/UI. Local and draft-body preflight: 14 checks pass each. Failure-Class: none
There was a problem hiding this comment.
1 issue found across 4 files
Confidence score: 4/5
- In
plugins/omi-clickup-app/clickup_client.py,get_all_lists()performs sequential HTTP requests for each folder and space during every OAuth setup and token-refresh path, which could increase setup latency and expose large workspaces to rate limiting; reduce, batch, or cache these requests where possible.
Prompt for AI agents (unresolved issues)
Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.
<file name="plugins/omi-clickup-app/clickup_client.py">
<violation number="1" location="plugins/omi-clickup-app/clickup_client.py:219">
P3: get_all_lists() now issues one sequential HTTP request per folder (plus one per space) and is invoked on every OAuth setup and token-refresh/refresh path (main.py lines 557 and 701). For a workspace with many folders this grows to dozens of sequential round-trips, which can be slow in the refresh flow that runs in the background/setup. Lists and folders endpoints return the full non-archived set (no pagination), so the only way to keep isolation is per-folder requests; consider fetching folder calls in parallel (e.g., concurrent requests) or documenting the per-workspace request budget if scale is a concern.</violation>
</file>
Reply with feedback, questions, or to request a fix.
Re-trigger cubic
| for space in spaces: | ||
| lists = self.get_lists(access_token, space["id"]) | ||
| for folder in self.get_folders(access_token, space["id"]): | ||
| lists.extend(self.get_folder_lists(access_token, space["id"], folder["id"])) |
There was a problem hiding this comment.
P3: get_all_lists() now issues one sequential HTTP request per folder (plus one per space) and is invoked on every OAuth setup and token-refresh/refresh path (main.py lines 557 and 701). For a workspace with many folders this grows to dozens of sequential round-trips, which can be slow in the refresh flow that runs in the background/setup. Lists and folders endpoints return the full non-archived set (no pagination), so the only way to keep isolation is per-folder requests; consider fetching folder calls in parallel (e.g., concurrent requests) or documenting the per-workspace request budget if scale is a concern.
Prompt for AI agents
Check if this issue is valid — if so, understand the root cause and fix it. At plugins/omi-clickup-app/clickup_client.py, line 219:
<comment>get_all_lists() now issues one sequential HTTP request per folder (plus one per space) and is invoked on every OAuth setup and token-refresh/refresh path (main.py lines 557 and 701). For a workspace with many folders this grows to dozens of sequential round-trips, which can be slow in the refresh flow that runs in the background/setup. Lists and folders endpoints return the full non-archived set (no pagination), so the only way to keep isolation is per-folder requests; consider fetching folder calls in parallel (e.g., concurrent requests) or documenting the per-workspace request budget if scale is a concern.</comment>
<file context>
@@ -181,6 +215,8 @@ def get_all_lists(self, access_token: str, team_id: str) -> List[Dict]:
for space in spaces:
lists = self.get_lists(access_token, space["id"])
+ for folder in self.get_folders(access_token, space["id"]):
+ lists.extend(self.get_folder_lists(access_token, space["id"], folder["id"]))
for lst in lists:
lst["space_name"] = space["name"]
</file context>
There was a problem hiding this comment.
Thanks — the sequential request-volume concern is valid. I took the suggested documentation option in this PR and added a List-discovery request budget section to the plugin README, without changing runtime behavior.
At the reviewed head (99df84bd), get_all_lists makes 1 + 2S + F requests when enumeration succeeds: one space lookup, two requests per returned space (folderless lists + folders), and one list request per returned folder, including empty folders (clickup_client.py:108–225). This excludes workspace/member lookups and OAuth token/user requests. A one-off offline fixture using the existing production-client HTTP seam measured 121 calls for 10 spaces/100 folders; failing the first space's folder enumeration reduced that to 111 calls and omitted its 10 folder lists. These are request counts, not production latency measurements.
One caller clarification: main.py:557 is the OAuth callback; main.py:701 is the user-triggered POST /refresh-lists route (button at line 282, fetch at 404), not a background token-refresh job. The docs now identify these callers, sequential latency/rate-limit exposure, no retry/backoff or explicit HTTP timeout, and partial results when enumeration/list requests fail. No latency bound or performance improvement is claimed.
Verification: existing offline regression passed (5 methods / 6 cases), make preflight and explicit PR-body preflight passed, and git diff --check passed. Real OAuth/ClickUp service behavior remains unexercised; this follow-up changes documentation only.
Clarify OAuth setup and manual refresh callers, sequential 1 + 2S + F request count, partial results, and lack of a client timeout bound. No runtime behavior change. Verification: existing offline regression passes (5 methods / 6 cases). Production-client fixture measures 121 calls for 10 spaces / 100 folders, or 111 with one failed folder enumeration. No latency benchmark claimed.
|
Verified this fix end to end at the current head — solid work, and thank you for the thorough README request-budget section responding to the earlier review feedback. What I checked:
One non-blocking follow-up worth considering: lists with identical names in different folders of the same space render identically in the settings dropdown ("Name (Space)") and collide in Leaving for human maintainer review: first contribution touching the ClickUp OAuth/refresh discovery path, and no CI summary is available for this head yet. The code itself looks correct and is well tested. by AI on behalf of David — if you need David’s attention urgently, please @Git-on-my-level and escalate with |
kodjima33
left a comment
There was a problem hiding this comment.
backend/community fix: confirmed get_all_lists (docstring 'get all lists') only queried folderless lists, silently omitting any ClickUp list organized inside a folder. Fix adds folder + folder-list traversal. Issue #13130 real, tests added.
Preserve ClickUp and upstream USGS regression checks. Plugin code unchanged. ClickUp and USGS: 5 tests each pass. Exact-base local preflight: 14 checks pass. No live provider, OAuth or deployment verification.
|
Verified from the plugin side — thank you for the clean fix and the thorough description. Per-file notes:
Nothing blocking found. Nice first contribution. This review was posted by automation on David's behalf; AI-generated feedback. by AI on behalf of David — if you need David’s attention urgently, please @Git-on-my-level and escalate with |
|
Follow-up since the earlier review on this head: the fix itself still verifies cleanly ( What happened: #13391 added an Suggested resolution: merge main in again (or rebase) and keep both entries — This review was posted by automation on David's behalf; AI-generated feedback. by AI on behalf of David — if you need David’s attention urgently, please @Git-on-my-level and escalate with |
Resolve checks-manifest conflict by retaining both ClickUp list discovery and Hacker News checks. Preserve the existing plugin change. Validation: five ClickUp tests, three Hacker News tests, and 14 local preflight checks pass. The full-history ratchet is skipped in the shallow checkout. Failure-Class: none
|
Thanks for merging main back in — that clears the last blocker the earlier automated review flagged. Checked the new head (
About the red "Dart Analyze & Tests" check: it is not caused by this PR. The errors are analyzer mismatches in With the conflict cleared, GitHub reports the branch mergeable and the earlier human review of the plugin logic still applies, since the merge commits didn't touch these plugin files. by AI on behalf of David — if you need David’s attention urgently, please @Git-on-my-level and escalate with |
… for BasedHardware#13288 Preserve the reviewed plugin files unchanged. Component regression tests, make preflight and explicit PR-body preflight pass locally; hosted mobile and Swift CI remain authoritative.
kodjima33
left a comment
There was a problem hiding this comment.
Re-verified after new commits: ClickUp folder-contained list discovery fix is real, scoped, tested, not yet on main. CI green. DIRTY/conflicting mergeability — leaving at approve, not merging.
|
The checks-manifest conflict noted in your review is resolved in GitHub now reports this head mergeable. Eight of nine hosted workflows have passed; Desktop Swift CI is still queued, so the new head is not fully CI-green yet. The conflict blocker is cleared; once that remaining check finishes, this is ready for your merge decision. |
|
The remaining Desktop Swift CI run has now succeeded on This closes the pending-CI caveat in my conflict-resolution update. GitHub still reports the repaired head mergeable. Could a maintainer make the merge decision for the retained folder-contained list discovery fix, or identify any remaining requirement? |
|
Independently verified on the current head (
Note for the merge trail: the latest approval sits on by AI on behalf of David — if you need David’s attention urgently, please @Git-on-my-level and escalate with |
aryanorastar
left a comment
There was a problem hiding this comment.
Verified on dad701e91322.
Head is CONFLICTING/DIRTY, so this cannot merge even with kodjima APPROVE. Rebase onto current main and keep the diff on .github/checks-manifest.yaml, plugins/omi-clickup-app/README.md, plugins/omi-clickup-app/clickup_client.py, plugins/omi-clickup-app/test_clickup_client.py.
kodjima size-gate APPROVE is not a maintainer merge. I am not merging until this is MERGEABLE and green.
|
Closing because this is already on main (ClickUp folder-contained lists are already walked). The keep is #13844. This head does not add a unique production file. |
|
Hey @kaijakagi-sys 👋 Thank you so much for taking the time to contribute to Omi! We truly appreciate you putting in the effort to submit this pull request. After careful review, we've decided not to merge this particular PR. Please don't take this personally — we genuinely try to merge as many contributions as possible, but sometimes we have to make tough calls based on:
Before your next PR, please skim:
If this was declined for direction or taste, maintainers should cite an invariant ID or open a proposed one — ask if that citation is missing. Your contribution is still valuable to us, and we'd love to see you contribute again in the future! If you'd like feedback on how to improve this PR or want to discuss alternative approaches, please don't hesitate to reach out. Thank you for being part of the Omi community! |
Summary
Fixes #13130. Include folder-contained ClickUp lists alongside folderless lists in the shared discovery client used by OAuth setup and refresh. Retain list IDs, folder IDs and space metadata. Each folder is fetched independently so one failed folder request does not hide successfully retrieved lists.
Provider contracts: folderless lists, folders in a space, and lists within a folder. Fetch each folder's list endpoint rather than relying on embedded list summaries.
Verification
Production client at
e0308b66dd699bed67dc59be1f1e47237c81f387: new offline regression fails in four cases before the fix.python3 plugins/omi-clickup-app/test_clickup_client.py: five methods / six cases pass after the fix; folder-only, mixed spaces, empty folder/workspace and HTTP/transport failures covered.Regression executes the complete production client with HTTP and dotenv doubles; no real credentials, network or provider service.
Registered in both local and CI checks-manifest lanes and documented in plugin README. This component-specific behavioral suite guards incident ClickUp integration list selection omits lists inside folders #13130, not a replacement source-string or shared-policy checker.
OAuth setup/refresh call sites were inspected; browser, live OAuth, real ClickUp, routing and storage integration have not been run.
make preflight: 14 checks pass (28.09s).scripts/pr-preflight --lane local --pr-body-file ../pr-body.md: 14 checks pass (27.56s). Failure-class validation andgit diff --checkpass.History-dependent ratchets skip in this shallow checkout.
Backend Hermetic Merge Gate: out of scope for this standalone plugin fix and test registration; backend runtime setup/harness not run locally.
Failure-Class: none
Product invariants affected
none
Reward status
Suggested bounty scope in #13130 remains unconfirmed; no amount has been approved. Merge and discretionary maintainer eligibility are required.