Add pagination to saved searches pages#45705
Conversation
aa127e4 to
be529f3
Compare
|
Blocked on decision from: https://sourcegraph.slack.com/archives/C03CSAER9LK/p1672317171091039 |
|
Codenotify: Notifying subscribers in CODENOTIFY files for diff 2028ef5...e93e59b.
|
be529f3 to
328ef63
Compare
Bundle size report 📦
Look at the Statoscope report for a full comparison between the commits e93e59b and 2028ef5 or learn more. Open explanation
|
328ef63 to
8e51629
Compare
Resolved! |
cae55b0 to
72eb723
Compare
limitedmage
left a comment
There was a problem hiding this comment.
Frontend code looks good, left some comments to be addressed. Please have someone else review the backend Go code 😅
mrnugget
left a comment
There was a problem hiding this comment.
Only looked at the Go code for now. Left some comments. I think some of them should be implemented, especially the org-membership test, etc.
72eb723 to
cbf9ebc
Compare
cbf9ebc to
25b47e9
Compare
mrnugget
left a comment
There was a problem hiding this comment.
Sweet! Left two comments. One is important: we need to check for both IDs being 0 in the GraphQL layer.
vdavid
left a comment
There was a problem hiding this comment.
The VS Code-related changes LGTM!
| """ | ||
| Pagination information. | ||
| """ | ||
| type ConnectionPageInfo { | ||
| """ | ||
| When paginating forwards, the cursor to continue. | ||
| """ | ||
| endCursor: String | ||
| """ | ||
| When paginating forwards, are there more items? | ||
| """ | ||
| hasNextPage: Boolean! | ||
| """ | ||
| When paginating backward, the cursor to continue. | ||
| """ | ||
| startCursor: String | ||
| """ | ||
| When paginating backward, are there more items? | ||
| """ | ||
| hasPreviousPage: Boolean! | ||
| } |
There was a problem hiding this comment.
Why not use BidirectionalPageInfo instead of defining this?
There was a problem hiding this comment.
Yeah, good point. @thenamankumar I think you can remov eyour ConnectionPageInfo and use BidirectionalPageInfo. Turns out we did have this before 😄 https://github.com/sourcegraph/sourcegraph/pull/45705#discussion_r1060451851
This flag had been removed in #46045 but (accidentally?) added back in #45705. The feature (search stats) itself been removed in #45996. Documentation about it has already been removed in #30564. The link removed in this PR has been dead since then. ## Test plan `grep`ped the code for references to the flag and used sourcegraph to find the commits that made changes to the related code and documentation.
Closes: https://github.com/sourcegraph/sourcegraph/issues/43623
Use the new cursor-based pagination system to add pagination to Saved Searches pages.
In response to the new breaking changes to the API:
Unit tests are updated for the saved searches page.
Test plan