ckan / ckan/ckanapi-exporter

names with spaces in queries

Open
#10 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
25
Forks
9
PR merge metrics
No merged PRs in 30d

Description

I tried to query using a tag restriction where the tag name has a space in it i.e.

`ckanapi-exporter --url 'http://localhost/' --params "{'fq':'tags:Sea+regions AND organization:geo-department'}" --column 'Title' --pattern 'title' > test.csv`

This gave the following error:

IndexError: list index out of range

A similar query with a tag not containing a space succeeds. Perhaps there is a correct syntax for this but I could not find one. So, if this is not an issue, maybe at least add a mention into the documentation?

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the documented ckanapi-exporter command with a tag containing a space, then trace how the --params query and tag restriction are parsed. Done means the query succeeds without IndexError, or the supported syntax is clearly documented if the behavior is intentional.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.