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

[Dashboard] Sectors not counting correctly #48

Open
btornes opened this issue Feb 1, 2017 · 1 comment
Open

[Dashboard] Sectors not counting correctly #48

btornes opened this issue Feb 1, 2017 · 1 comment

Comments

@btornes
Copy link

btornes commented Feb 1, 2017

Per Robert in this Basecamp thread:

I noticed that the sector count (in parentheses) appears to be counting differently than the other counts. The counts should be tallying the number of unique countries/sectors/donors, etc.. The sector count is counting the associations rather than the sectors. For the example org in staging, there are three sectors used, so the count should be 3, not 4.

http://office.ngoaidmap.staging.vigetx.com/admin

screen shot 2017-02-01 at 2 06 10 pm

@RBFraxinus
Copy link
Collaborator

Looks like this is something I can tackle. There are a few other counting issues on the dashboard as well, with countries.

There is subtle flaw in the calculation of countries for organizations/projects. I noticed the query on the dashboard is using "where('adm_level => 0')", which only gets relations for projects that are only linked at the admin 0 level. This misses all records where more specific location information is provided; in those cases, the relation admin level would be 1,2, or even 3. This can lead to under-reporting the countries associated with a project or organization.

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

No branches or pull requests

2 participants