Skip to content

Sysadmin Args for Package List#217

Merged
JVickery-TBS merged 2 commits into
canada-v2.10from
feature/package-list-options
Apr 27, 2026
Merged

Sysadmin Args for Package List#217
JVickery-TBS merged 2 commits into
canada-v2.10from
feature/package-list-options

Conversation

@JVickery-TBS
Copy link
Copy Markdown

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
Copy Markdown
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
Copy Markdown
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

@JVickery-TBS JVickery-TBS deleted the feature/package-list-options branch January 9, 2026 17:50
@JVickery-TBS JVickery-TBS restored the feature/package-list-options branch April 27, 2026 19:06
@JVickery-TBS JVickery-TBS reopened this Apr 27, 2026
@JVickery-TBS JVickery-TBS merged commit 630ba63 into canada-v2.10 Apr 27, 2026
4 checks passed
@JVickery-TBS JVickery-TBS deleted the feature/package-list-options branch April 27, 2026 19:08
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.

2 participants