{"action":"created","issue":{"url":"https://api.github.com/repos/bcgov/ckanext-bcgov/issues/549","repository_url":"https://api.github.com/repos/bcgov/ckanext-bcgov","labels_url":"https://api.github.com/repos/bcgov/ckanext-bcgov/issues/549/labels{/name}","comments_url":"https://api.github.com/repos/bcgov/ckanext-bcgov/issues/549/comments","events_url":"https://api.github.com/repos/bcgov/ckanext-bcgov/issues/549/events","html_url":"https://github.com/bcgov/ckanext-bcgov/issues/549","id":364239039,"node_id":"MDU6SXNzdWUzNjQyMzkwMzk=","number":549,"title":"Dataset Counts on Organizations page are incorrect","user":{"login":"dkelsey","id":3906047,"node_id":"MDQ6VXNlcjM5MDYwNDc=","avatar_url":"https://avatars1.githubusercontent.com/u/3906047?v=4","gravatar_id":"","url":"https://api.github.com/users/dkelsey","html_url":"https://github.com/dkelsey","followers_url":"https://api.github.com/users/dkelsey/followers","following_url":"https://api.github.com/users/dkelsey/following{/other_user}","gists_url":"https://api.github.com/users/dkelsey/gists{/gist_id}","starred_url":"https://api.github.com/users/dkelsey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dkelsey/subscriptions","organizations_url":"https://api.github.com/users/dkelsey/orgs","repos_url":"https://api.github.com/users/dkelsey/repos","events_url":"https://api.github.com/users/dkelsey/events{/privacy}","received_events_url":"https://api.github.com/users/dkelsey/received_events","type":"User","site_admin":false},"labels":[{"id":212068568,"node_id":"MDU6TGFiZWwyMTIwNjg1Njg=","url":"https://api.github.com/repos/bcgov/ckanext-bcgov/labels/bug","name":"bug","color":"fc2929","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-09-26T22:35:12Z","updated_at":"2018-10-26T18:59:54Z","closed_at":null,"author_association":"COLLABORATOR","body":"# ENV\r\n`PROD` only\r\n\r\n# TESTCASE\r\n* without being logged in,\r\n* Navigate to '/organizations'\r\n* observe the count for *BC Agency*: 121\r\n![image](https://user-images.githubusercontent.com/3906047/46112667-3bfa7d00-c1a0-11e8-8701-cb37cd5af120.png)\r\n\r\n* navigate to the organizations\r\n\r\n# EXPECTED\r\n* The count of datasets will be the same\r\n\r\n# ACTUAL\r\n* The count of datasets is inconsistent with what is listed on the Organizations page\r\n![image](https://user-images.githubusercontent.com/3906047/46112642-24bb8f80-c1a0-11e8-8071-11d850764f2e.png)\r\n\r\n\r\n# MORE INFO\r\nwhen logged in the counts are:\r\n`186` on Organizations page\r\n`176` on BC Agency page.\r\n\r\n_Note: the following are counts when logged in (PROD)_\r\n\r\n|Organization| Organizations page | specific Org Page|\r\n|----|----|----|\r\n|BC Agency| 186|176|\r\n|Ministry of Citizens services|87|85|\r\n|Ministry of Health|46|42|\r\n|Ministry of Transportation and Infrastructure|39|42|\r\n"},"comment":{"url":"https://api.github.com/repos/bcgov/ckanext-bcgov/issues/comments/433511026","html_url":"https://github.com/bcgov/ckanext-bcgov/issues/549#issuecomment-433511026","issue_url":"https://api.github.com/repos/bcgov/ckanext-bcgov/issues/549","id":433511026,"node_id":"MDEyOklzc3VlQ29tbWVudDQzMzUxMTAyNg==","user":{"login":"mdunhamwilkie","id":34721902,"node_id":"MDQ6VXNlcjM0NzIxOTAy","avatar_url":"https://avatars0.githubusercontent.com/u/34721902?v=4","gravatar_id":"","url":"https://api.github.com/users/mdunhamwilkie","html_url":"https://github.com/mdunhamwilkie","followers_url":"https://api.github.com/users/mdunhamwilkie/followers","following_url":"https://api.github.com/users/mdunhamwilkie/following{/other_user}","gists_url":"https://api.github.com/users/mdunhamwilkie/gists{/gist_id}","starred_url":"https://api.github.com/users/mdunhamwilkie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mdunhamwilkie/subscriptions","organizations_url":"https://api.github.com/users/mdunhamwilkie/orgs","repos_url":"https://api.github.com/users/mdunhamwilkie/repos","events_url":"https://api.github.com/users/mdunhamwilkie/events{/privacy}","received_events_url":"https://api.github.com/users/mdunhamwilkie/received_events","type":"User","site_admin":false},"created_at":"2018-10-26T18:59:54Z","updated_at":"2018-10-26T18:59:54Z","author_association":"COLLABORATOR","body":"There is only one case where a suborganization has a suborganization.  Do we need to support this?\r\n\r\n![image](https://user-images.githubusercontent.com/34721902/47587078-a412bf00-d916-11e8-9026-37aeee343567.png)\r\n"}}
{"actor":{"display_login":"mdunhamwilkie"}}