Skip to content

Move primary key selection into second step of Table upload dialog #142

@jjnesbitt

Description

@jjnesbitt

Originally posted by @AlmightyYakob in #138 (comment)


Since we now have a type selection UI, we could add a primaryKey type to our system, which would replace the following section in the first step:

Screenshot from 2020-11-19 14-39-59

We could remove this option from the first step, and just have it as another type in the column drop down in the second step. We would also likely default that to the _key field if it's there, or just the first column if it's not there.

There's important distinction from the rest of the types however, which is that there can only be one primary key column. We'd have to add some logic when it comes to selecting that type, and we'd need to create a new validation error on the server to handle multiple supplied primary keys, but those tasks seem fairly low-effort.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions