Repository navigation
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Advanced Run ID: 📒 Files selected for processing (7)
🚧 Files skipped from review as they are similar to previous changes (1)
Included review availability: Your plan provides up to 10 included reviews per hour; 4 remain after this review. 📝 WalkthroughWalkthroughThe project view adds Priority: ➖ Normal Severity of issue fixed: Medium Merge Risk: ⚪ Minimal · up to Unfiltered GitHub Project views now fetch items without the empty search query, avoiding misleading empty boards during search-index lag while retaining filtered search behavior. 🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (2 warnings)
✅ Passed checks (3 passed)
Full details: Description checkExplanation The description explains the bug, the implementation, the linked issue, and validation results. However, it omits most required template sections, including ELI5, What Changed, Why, Visual Proof or an N/A explanation, Testing, AI Disclosure, Review, Notes, and the Checklist. Resolution Update the description to use the repository template. Add the missing sections, mark Visual Proof as N/A with a reason if applicable, document testing and platform coverage, complete the required checkboxes, and provide the required AI Disclosure and review information.
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
🧹 Nitpick comments (1)
src/main/github/project-view.test.ts (1)
29-42: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick winCover the query-builder contract, not only the predicate.
These tests validate
projectViewItemsUseSearchQuery, but they do not verify the changed item-page and count-only GraphQL builders. Add focused tests that assert unfiltered requests omit$q,query:$q, andq, while padded filters send the trimmed value in both paths.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Repository UI
Review profile: CHILL
Plan: Pro Plus
Run ID: a0b28c53-101f-4709-ba28-e1de80a891cd
📥 Commits
Reviewing files that changed from the base of the PR and between bbcf89e and aed10e731a80ebeac49e5c9b0bba947fc0d3da2d.
📒 Files selected for processing (2)
src/main/github/project-view.test.tssrc/main/github/project-view.ts
|
Ready for review (contributor priority pack)
Part of a short priority list for maintainers: P0 |
aed10e7 to
438b091
Compare
Empty query still used items(query:\$q), which routes through GitHub's Projects search index and can return totalCount 0 while the board is full during index lag. Omit the query argument when the view filter is empty. Fixes stablyai#12648.
…ters Unfiltered item fetches omit items(query:) so boards skip search-index lag. The View.filter field is still '' when GitHub returns null. Co-authored-by: Cursor <[email protected]>
438b091 to
75e0d77
Compare
|
Note The previously reviewed commits are no longer reachable (likely due to a force-push or rebase), so CodeRabbit is performing a full review instead of an incremental one. This review may take a little longer. |
|
Thanks for this @bbingz, and sorry it took a while to get a definitive answer — the premise needed checking against the live schema rather than the docs. Closing this one, because the change is a no-op. Per GraphQL spec §6.4.1, an omitted argument that declares a default contributes that default to the coerced argument map — so omitting I also checked whether there was any other field to move to, and there isn't: Your diagnosis of the symptom was right though, and it's a real bug — a view with no filter should never say "No items match this view's filter". I've picked that part up in #20588, which words the empty state from the view's own filter and adds "Recently added items can take a while to appear." for the transient case you were chasing. Credited you there. Happy to look at anything else in this area — the instinct to go after the misleading message was the correct one. |
Summary
Unfiltered GitHub Project views can appear empty after bulk population because
items(query: "")still uses the search index. Omit the search argument and its GraphQL variable for empty or whitespace-only filters, in both item-page and count-only requests. Filtered views continue using search.Ported the fix to the current split Project-view modules. Pagination, field fragments, host authentication and rate-limit handling remain intact. Updated the old type comment that incorrectly recommended keeping an empty search query.
Fixes #12648
Validation
bba68b1bddf1276c8bd27ad4ca41efcbd4260321.