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

Make forward pagination cursor strings different from backward #5434

Open
5 tasks done
dullbananas opened this issue Feb 16, 2025 · 0 comments
Open
5 tasks done

Make forward pagination cursor strings different from backward #5434

dullbananas opened this issue Feb 16, 2025 · 0 comments
Labels
area: api enhancement New feature or request
Milestone

Comments

@dullbananas
Copy link
Collaborator

dullbananas commented Feb 16, 2025

Requirements

  • Is this a feature request? For questions or discussions use https://lemmy.ml/c/lemmy_support
  • Did you check to see if this issue already exists?
  • Is this only a feature request? Do not put multiple feature requests in one issue.
  • Is this a backend issue? Use the lemmy-ui repo for UI / frontend issues.
  • Do you agree to follow the rules in our Code of Conduct?

Is your proposal related to a problem?

Forgetting to set page_back to true could be a very likely mistake that's hard to debug, and needing to set page_back makes using the api require more complicated code

Describe the solution you'd like.

Remove page_back from the api, and make paginated responses have a previous page cursor that has an underscore added at the beginning

Should be implemented in or after #5424

Describe alternatives you've considered.

None

Additional context

No response

@dullbananas dullbananas added enhancement New feature or request area: api labels Feb 16, 2025
@dullbananas dullbananas added this to the 1.0.0 milestone Feb 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: api enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant