Thanks to visit codestin.com
Credit goes to github.com

Skip to content

4420 fix org and group dataset counts#4987

Merged
smotornyuk merged 2 commits into
ckan:masterfrom
bellisk:4420-fix-org-and-group-dataset-counts
Sep 23, 2019
Merged

4420 fix org and group dataset counts#4987
smotornyuk merged 2 commits into
ckan:masterfrom
bellisk:4420-fix-org-and-group-dataset-counts

Conversation

@bellisk
Copy link
Copy Markdown
Contributor

@bellisk bellisk commented Sep 19, 2019

Fixes #4420

Proposed fixes:

When dictizing a group or organization and including the group's packages or package count, we need to search only for packages in that group. Otherwise the group/org index page shows that all groups/orgs have the total number of datasets for the whole CKAN instance.

Features:

  • includes tests covering changes
  • includes updated documentation
  • includes user-visible changes
  • includes API changes
  • includes bugfix for possible backport

Please [X] all the boxes above that apply

@bellisk
Copy link
Copy Markdown
Contributor Author

bellisk commented Sep 19, 2019

@smotornyuk Please review this if you get a chance. It's much simpler (and better) than the previous PR. :)

@smotornyuk
Copy link
Copy Markdown
Member

Yep, now it's just awesome:) Thank you for this fix

@smotornyuk smotornyuk merged commit 1e70c73 into ckan:master Sep 23, 2019
@bellisk bellisk deleted the 4420-fix-org-and-group-dataset-counts branch September 23, 2019 14:29
HobieCat added a commit to lynxlab/ckan that referenced this pull request Jun 22, 2020
…set-counts

4420 fix org and group dataset counts

(cherry picked from commit 1e70c73)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Dataset counts incorrect on Groups listing

2 participants