Skip to content

[1.0] Pagination for VoteView is broken #6162

Description

@Nutomic

It stores only PersonId in the cursor but then tries to get both PersonId and PostId out of it. That is impossible.

As part of #6159 I tried to fix in the same way to cursors for SearchCombinedView are handled. But that also doesnt work, because CursorData must be the same type which is used as key for .then_order_by() (here SearchCombined). For VoteView this doesnt work because there is no table VoteCombined.

So Im disabling the broken pagination code for now until we can find a solution. Still Im keeping the api structs with pagination cursors so this can be fixed without a breaking change.

Edit: The best solution is probably to have two separate structs VoteViewPost and VoteViewComment, each handling pagination separately. These can be converted to a single VoteView for the api.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions