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

Extension doesn't import files from zipped datapackages #86

Open
aivuk opened this issue Aug 25, 2022 · 1 comment
Open

Extension doesn't import files from zipped datapackages #86

aivuk opened this issue Aug 25, 2022 · 1 comment
Assignees
Labels

Comments

@aivuk
Copy link
Contributor

aivuk commented Aug 25, 2022

If an user import a datapackage from a zip file and this zip has a resource file inside of it, the file is not created on CKAN. Instead a resource is created with a wrong URL. Example, with the following datapackage:

{
  "name": "datetimes",
  "resources": [
    {
      "name": "datetimes",
      "path": "data/datetimes.csv"
    },
    {
      "name": "timezones",
      "url": "http://www.somewhere.com/timezones.csv"
    }
  ]
}

There will be a resource called "datetimes" that will have a link to download it as http://data/datetimes.csv. The resource is being loaded correctly by datapackage-py library but there is no logic in the extension to add it as a resource


Please preserve this line to notify @amercader (lead of this repository)

@aivuk aivuk added the bug label Aug 25, 2022
@aivuk aivuk self-assigned this Aug 25, 2022
@aivuk
Copy link
Contributor Author

aivuk commented Aug 25, 2022

Looks like there is a previous discussion about this feature: #63

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