Skip to content

Conversation

@JVickery-TBS
Copy link

Required for ckanapi dump datasets --all to include private datasets. @wardi lemme know what you think of this? otherwise I guess another option would be to do a package_search with just returning IDs and include private in there(?) and pipe that into the ckanapi dump datasets??

- Sysadmin args.
- Added change log file.
@JVickery-TBS
Copy link
Author

mmm okay just found out that ckanapi dump does not actually even handle stdin piping for Dataset ID arguments soooo that won't work either :/

@JVickery-TBS
Copy link
Author

uhhh okay reading through ckanapi again...looks like if u use --worker for dump:

    """
    a process that accepts names on stdin which are
    passed to the {thing}_show actions.  it produces lines of json
    which are the responses from each action call.
    """

soooo we could do a package_search include_drafts=1 include_private=1 fl=id | jq -r '.results[] .id' | tr '\n' '' | ckanapi dump datasets --resource-views --datastore-fields

Will test today and see if this is needed at all after all. Might also be able to close ckan/ckanapi#223

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants