Page, filter and count a Player's Games, and say whether they own any #401
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
spec
wayfinder:grilling
wayfinder:map
wayfinder:prototype
wayfinder:research
wayfinder:task
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Blocks
#404 Navigation: a sidebar led by New game, My games once there is one, the account in its footer
amaurycoudr/chess-project
#405 My games: result filters with counts, rich rows, and Show more
amaurycoudr/chess-project
Reference
amaurycoudr/chess-project#401
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Parent
#400
Seam: S5 — the
game.listandaccount.meprocedures through RPC against a real databaseWhat to build
A Player can reach every Game they own, not only the latest 50, and the site can tell, from the one read it makes on every page, whether the Player owns any Game.
game.listtakes an optionalresult(won|lost|drawn, from the caller's side) and an optional opaquecursor. It answers one page, newest first, withnextCursorwhen more remain. It also answers the caller's counts per result across all their Games, whatever the filter.account.meanswershasGamesbesidekind: for a browser with no Session, whether its Guest owns a Game; for an Account, whether it owns one. A claimed Guest's Games count as the Account's (ADR 0035).Shape agreed in the grilling on #399 (names may be refined):
Acceptance criteria
game.listpages through more than one page of Games newest first, ending withnextCursor: null, with no Game repeated or skipped, even when two Games share an end time.resultnarrows the pages to that result from the caller's side; the counts are the same with and without a filter.account.meanswershasGamesfalse for a browser with no Guest and no Session, and true for a Guest or an Account that owns a Game, including through a claim.mentioned in issue #404
mentioned in issue #405
marked this issue as related to #400
marked this issue as related to #404
marked this issue as related to #405
mentioned in merge request !527
mentioned in commit f2c462ebedf79d6a7116907ed58fd24822fecf41
mentioned in commit c1ce200cb4cb88b9f25c5587a39327ac7cf82b48
mentioned in commit
2f4b2c5db9mentioned in commit
53a8ba8c22