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

Allows to filter on organization and tags #26

Merged
merged 2 commits into from Jun 5, 2018
Merged

Allows to filter on organization and tags #26

merged 2 commits into from Jun 5, 2018

Conversation

noirbizarre
Copy link
Contributor

This PR make use of opendatateam/udata#1716 and:

  • Starts exposing 2 filters (organization and tags
  • Filters datasets listing according to these filters if present

Requires opendatateam/udata#1716 (udata dependency will be updated and cache will be flushed when dependency is merged)

@noirbizarre noirbizarre added this to the 1.1.0 milestone Jun 4, 2018
@noirbizarre noirbizarre self-assigned this Jun 4, 2018
@noirbizarre noirbizarre requested a review from a team June 4, 2018 16:40
filters = (
HarvestFilter(_('Organization'), 'organization', str,
_('A CKAN Organization name')),
HarvestFilter(_('Tag'), 'tags', str, _('A CKAN tag name')),
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why tags (plural)? CKAN API weirdness?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, one of the CKAN API weirdness 😒

@@ -134,8 +139,21 @@ def initialize(self):
# status = self.get_status()
# fix = status['ckan_version'] < '1.8'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe remove those?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I hesitate, I wanted to have the minimal scope, but fine to me 👍

@noirbizarre noirbizarre merged commit a53091e into opendatateam:master Jun 5, 2018
@noirbizarre noirbizarre deleted the query-config branch June 5, 2018 12:26
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.

None yet

2 participants