Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feed] [BE] Pagination of post documents #135

Open
3 tasks
katsukixyz opened this issue Sep 22, 2023 · 0 comments · May be fixed by #292
Open
3 tasks

[Feed] [BE] Pagination of post documents #135

katsukixyz opened this issue Sep 22, 2023 · 0 comments · May be fixed by #292
Assignees
Labels
Milestone

Comments

@katsukixyz
Copy link
Collaborator

katsukixyz commented Sep 22, 2023

Context

Currently, our feed backend request post.getFilteredPosts fetches all posts that match a given set of filters. However, when there are lots of posts, we want to be able to incrementally fetch data to make sure we're not rendering too many unnecessary elements.

Requirements

Modify post.getFilteredPosts to take in an additional value:

  • pageNumber: number

Define a constant DOCUMENTS_PER_PAGE with a value representing the number of documents that each page would have. Your modified query should use this value to get all documents on the pageNumberth page.

TBD

Acceptance Criteria

PM

  • Product-specific requirements

EM

  • Engineering-specific requirements

Designer

  • Design-specific requirements
@katsukixyz katsukixyz added enhancement New feature or request Sprint 3 labels Sep 22, 2023
@katsukixyz katsukixyz added Sprint 3 and removed Sprint 3 enhancement New feature or request labels Oct 2, 2023
@katsukixyz katsukixyz added this to the Feed milestone Oct 3, 2023
@aeluro1 aeluro1 self-assigned this Nov 12, 2023
@aeluro1 aeluro1 linked a pull request Nov 12, 2023 that will close this issue
@aeluro1 aeluro1 linked a pull request Nov 12, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants