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

Dataset count always shows as 0 on infrastructure list #51

Open
mark-saeon opened this issue Nov 7, 2018 · 1 comment
Open

Dataset count always shows as 0 on infrastructure list #51

mark-saeon opened this issue Nov 7, 2018 · 1 comment
Assignees
Labels
bug Something isn't working UI

Comments

@mark-saeon
Copy link
Collaborator

If a metadata record is assigned one or more infrastructures, then that record should contribute to the dataset count displayed for those infrastructure(s). Metadata records are (I believe) correctly linked to infrastructure groups via the member table in the backend. However, the package_search API that is called in the drill-down for infrastructure item display, which in turn calls Solr with the query parameter fq=u'+capacity:public groups:"infrastructure1"' (where "infrastructure1" is the name of the infrastructure in question), returns zero results.

@mark-saeon mark-saeon added bug Something isn't working UI labels Nov 7, 2018
@mark-saeon mark-saeon self-assigned this Nov 7, 2018
@mark-saeon
Copy link
Collaborator Author

We should probably just write custom code to get the count of metadata records specifically, rather than relying on CKAN's built-in vanilla package stuff, since infrastructures are meant only to work with metadata records anyway.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working UI
Projects
None yet
Development

No branches or pull requests

1 participant