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

Design for text data type #234

Closed
Tracked by #244
kgodey opened this issue Jun 11, 2021 · 1 comment
Closed
Tracked by #244

Design for text data type #234

kgodey opened this issue Jun 11, 2021 · 1 comment
Assignees
Labels
ready Ready for implementation

Comments

@kgodey
Copy link
Contributor

kgodey commented Jun 11, 2021

Problem

Users will want to store data in a column with the text data type. We should allow them to do so and provide an intuitive user experience for them.

Proposed solution

We need a design for the following functionality:

  • Displaying text columns in tables (I assume we don't need to change existing behavior for this, but I'm putting the requirement in here for the sake of completeness)
  • Creating a new column with the text data type (which should also be the default for new columns)
  • Changing an existing column to the text data type (including error states)
  • Showing non-technical users a friendly name for the text data type. (The underlying Postgres data type could be VARCHAR, TEXT, or CHAR)

Options

Text columns will have the following options:

Specific to Text

  • Maximum length (this will be validated at the DB level)

Common to all Columns

  • Default value (this will be the default value of the column if the user doesn't enter anything)
  • Allow empty values (whether the column is nullable)
  • Unique (whether the values in the column have to be unique, validated at the DB level)

Grouping

Text columns will be able to grouped by:

  • First letter of value
  • First word of value

Filtering

Text columns will support the following filters:

  • contains
  • is
  • is not
  • starts with
  • ends with
  • does not contain
  • does not start with
  • does not end with
  • is empty
  • is not empty
@ghislaineguerin
Copy link
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready Ready for implementation
Projects
No open projects
Development

No branches or pull requests

2 participants