Skip to content

PLATB-38: Cursor Pagination on Photos Endpoint#34

Open
VikiAnn wants to merge 8 commits intomainfrom
platb-38/cursor-pagination-photos-endpoint
Open

PLATB-38: Cursor Pagination on Photos Endpoint#34
VikiAnn wants to merge 8 commits intomainfrom
platb-38/cursor-pagination-photos-endpoint

Conversation

@VikiAnn
Copy link

@VikiAnn VikiAnn commented Jan 14, 2026

This is related to API changes in this PR to add cursor-based pagination to the photos endpoint. While I was at it I also fixed a couple issues the 🤖 pointed out.

Note: this is intentionally not merged yet because the cursor pagination is slow in Mongo (unless we add an index, which we're discussing with Infra) on deep page requests.

Jira subtask: PLATB-470

@VikiAnn VikiAnn force-pushed the platb-38/cursor-pagination-photos-endpoint branch from f7c4233 to 7523024 Compare January 15, 2026 23:15
Comment on lines -1954 to +1968
description: "A unix timestamp to return photos modified on or after the provided value"
description: "A unix timestamp to return photos captured on or after the provided value"
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes from here to L1980/L2002 are small corrections unrelated to the new cursor pagination behavior

Comment on lines +3485 to +3493
status:
type: string
description: "The status of the Photo"
enum: ["active", "deleted"]
example: "active"
coordinates:
type: array
description: "The coordinates where the Photo was captured"
items:
$ref: "#/components/schemas/Coordinate"
allOf:
- $ref: "#/components/schemas/Coordinate"
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also just small corrections unrelated to the new cursor pagination behavior.

Copy link
Contributor

@groovestation31785 groovestation31785 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📃 📆 👆

There is no requirement for the number of "approvals" in this repo.
Feel free to merge when the API changes are live.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants