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

Infer table schema when a suitable file is selected #77

Closed
amercader opened this issue Nov 23, 2022 · 1 comment
Closed

Infer table schema when a suitable file is selected #77

amercader opened this issue Nov 23, 2022 · 1 comment
Labels
Milestone

Comments

@amercader
Copy link
Member

As discussed in #65, When a user selects a suitable file, fire a background HTTP request to the action created in #76 to get an inferred table schema.

  • Re-use or adapt code from Schema editor integration #25 that listen to changes in the Upload button,
  • Check if the extension is one of the ones supported.
  • If so read the whole file or a sample if it's bigger than X and use the ckan JS client to call the action with this data and the format
  • If we get a response and there are no errors, we store the result in the schema_json field (let's get this down first and we'll render the editor component later)
  • If there are errors display them
@amercader amercader added this to the v2 milestone Nov 23, 2022
@amercader amercader added the v2 label Nov 23, 2022
@amercader
Copy link
Member Author

Closing as no longer relevant

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant