Skip to content

Consistent fixture ordering #1378

@dantownsend

Description

@dantownsend

When dumping data into fixtures via the piccolo fixtures dump command, no ORDER BY is specified.

data = await table_class.select().run()

It's not a huge problem, but it is annoying when:

  • You dump a fixture
  • Add it to Git
  • Later replace the fixture with a new version

The diff could be much larger than if a strict order was enforced.

We could just always order by primary key. Or add some way of the user specifying the sort order.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    Status

    To do

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions