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

Missing InputFrom for UUID #4336

Open
svandenhoek opened this issue Oct 10, 2024 · 0 comments
Open

Missing InputFrom for UUID #4336

svandenhoek opened this issue Oct 10, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@svandenhoek
Copy link
Contributor

Describe the bug
While UUID is supported in backend, when selecting it as type in the front-end, one cannot actually fill in any UUIDs and get the following instead:
Scherm­afbeelding 2024-10-10 om 18 15 56

It seems UUID is missing in:

const typeToInputMap = {
AUTO_ID: InputString,
HEADING: InputHeading,
EMAIL: InputEmail,
HYPERLINK: InputHyperlink,
STRING: InputString,
TEXT: InputText,
INT: InputInt,
LONG: InputLong,
DECIMAL: InputDecimal,
BOOL: InputBoolean,
DATE: InputDate,
REF: InputRefSelect,
REFBACK: InputRefBack,
FILE: InputFile,
DATETIME: InputDateTime,
PERIOD: InputString,
ONTOLOGY: InputOntology,
EMAIL_ARRAY: ArrayInput,
BOOL_ARRAY: ArrayInput,
DATE_ARRAY: ArrayInput,
DATETIME_ARRAY: ArrayInput,
PERIOD_ARRAY: ArrayInput,
DECIMAL_ARRAY: ArrayInput,
HYPERLINK_ARRAY: ArrayInput,
INT_ARRAY: ArrayInput,
LONG_ARRAY: ArrayInput,
ONTOLOGY_ARRAY: InputOntology,
REF_ARRAY: InputRefList,
STRING_ARRAY: ArrayInput,
TEXT_ARRAY: ArrayInput,
};

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'http://localhost:8080/'
  2. create new schema "test"
  3. Go to "http://localhost:8080/test/schema/#/"
  4. Create new table "test"
  5. Add to this table a column "aa" with columntype "UUID" & set key=1
  6. Press save
  7. Go to "http://localhost:8080/test/tables/#/Test"
  8. Try adding a new item to the table
  9. Get error "UNSUPPORTED TYPE 'UUID'"

Expected behavior
One can insert a UUID (possibly with validation).

Desktop (please complete the following information):

  • OS: MacOS
  • Browser Firefox
@svandenhoek svandenhoek added the bug Something isn't working label Oct 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant