ckan / ckan/ckanext-validation

New File upload / link widget

Open
#80 1 comment 0 reactions 1 assignee Claimed by @aivuk View on GitHub
Schema Editor
Dominant language
Python
Stars
30
Forks
33
PR merge metrics
No merged PRs in 30d

Description

High-level spec: https://github.com/frictionlessdata/ckanext-validation/issues/65#issuecomment-1335093859

Replace the current JS widget to upload / link to files (scheming's `resource_url_upload` preset) with a custom one that starts an upload in the background when a file is selected or linked.

![Screenshot 2022-12-02 at 12-25-06 Add data to the dataset - CKAN](https://user-images.githubusercontent.com/200230/205285246-8996c2a9-33cb-44bc-a978-cbe1df2d4b1c.png)

For linked files I guess it makes sense to start the same process as uploads to create a resource in the background.

There should be an indication for the user that the file is being uploaded, ideally with a progress bar showing the percentage uploaded (if that's easy to implement) Once the endpoint has performed all the tasks (process file, create resource, infer schema) feedback should be displayed to the user, either that the file was uploaded successfully (:heavy_check_mark: ) or that there were errors (:x:)

As a first implementation I think we can try to do just one request and wait for all tasks to finish, if we see it takes too long we can look at splitting the uploading and wait for the rest of tasks to finish (doing a separate request, web sockets...)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.