kartoza / django-bims

https://testing.healthyrivers.kartoza.com
GNU Affero General Public License v3.0
12 stars 19 forks source link

Wheel chart of Biodiversity Records not working correctly #4039

Closed helendallas closed 2 months ago

helendallas commented 3 months ago

You developed functionality to allow admin to select the type of wheel chart: Options include: Global Conservation Status, Origin, Endemism, Division (Algae only), SASS Ecological Category (Invertebrates only).

image

I cant get this to work on SANParks, and also if I change chart from conservation to origin, I cannot change it back again.

Please check why it is not working.

helendallas commented 3 months ago

Please check colour coding all strange now on FBIS

dimasciput commented 3 months ago

@helendallas yes, you can set the colors from the admin page. Let me do that tomorrow. https://fbis.sta.do.kartoza.com/admin/bims/iucnstatus/

helendallas commented 3 months ago

Thanks @dimasciput Good to know. Do we have the number codes for FBIS, if so I can update. Or we cna leave until FBIS is moved to multi-tenant.

dimasciput commented 3 months ago

@helendallas

Yes, here's the color codes :

colors = [
            '#D7CD47',
            '#39B2A3',
            '#17766B',
            '#2C495A',
            '#525351',
            '#8D2641',
            '#641f30',
        ];

But you were right. Let's do this on the production multi-tenant environment, because staging will be overwritten anyway.

Screenshot 2024-07-09 at 13 33 26 Screenshot 2024-07-09 at 13 34 20
helendallas commented 3 months ago

Thanks @dimasciput Agreed. I will action on production when implemented

helendallas commented 2 months ago
Screenshot 2024-07-09 at 13 36 44
helendallas commented 2 months ago

Thanks @dimasciput This is working and I have updated on SANParks. I will do on FBSI production when on multi-tenant. I assume I need to do for each tenant, or can it be universal?

helendallas commented 2 months ago

Reallocating ticket to @helendallas The IUCN colour coding needs to be added to FBIS when deployed on multi-tenant. Codes used:

Least Concern #17766B Not evaluated #39B2A3 Data Deficient #D7CD47 Near Threatened #3D647D Vulnerable #525351 Endangered #8D2641 Critically Endangered #641F30 Extinct #919290 Extinct in the Wild #B77282 Other #009106

helendallas commented 2 months ago

I have updated this on the new multi-tenant production. Closing ticket