Skip to content

Non-default primary key doesn't work correctly #17

@kepi

Description

@kepi

Hi,

I hope I'm not missing something, but I jumped to test your new code for non-default primary key but it isn't working for me - or better the code itself is probably doing what you wanted, setting primary key, but that doesn't help with getting working backpex page.

There are two problems:

  1. without any optional settings, page crashes because it can't sort by :id
  2. if I add init_order(%{by: :code, direction: :asc}) it seamingly works, but pagination has links with order_by=id and same is true for cancel links and others.

The first problem is maybe problem in Backpex itself? But second seems to me like init_order isn't passed correctly?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions