kartoza / django-bims

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

Site Code generation not working in SANParks #3874

Open helendallas opened 1 month ago

helendallas commented 1 month ago

The site naming indicates that the name is based on:

Screenshot 2024-05-07 at 10 30 31

But it does not seem to be working. There is no Site name???? field in Add Site form.

Screenshot 2024-05-07 at 10 29 02

Please investigate

dimasciput commented 1 month ago

This is fixed on staging.

helendallas commented 1 month ago

Sorry @dimasciput After discussion with Dian and Judith yesterday they now don't want Site Name or Site description.

What should we use instead? Perhaps Park or MPA Name as this is a compulsory filed in their new upload form. Also all data will form in a Park or MPA.

1st four letter of Park or MPA Name + site count

Thoughts?

The we just change Site Name to Park or MPA Name

Screenshot 2024-05-16 at 08 53 55

helendallas commented 1 month ago

@dimasciput Unless you have already done this, I suggest we just change Site Name to Park Name,

and leave Site description in (it can be blank) in the form.

That way less to change.

dimasciput commented 1 month ago

@helendallas ok will do

dimasciput commented 2 weeks ago

@helendallas this has been updated in the staging site

helendallas commented 2 weeks ago

Thanks @dimasciput .

So for now the user needs to add the Park Name, and then the site code is generated from this?

Is it possible to add the Fetch option / or automatically fetch the Park Name if available. How long will this take to implement?

If not, then the user needs to be prompted to add the Park Name or the site code is wrong.

Also the text needs to be updated - remove description

Screenshot 2024-06-12 at 13 00 37
dimasciput commented 2 weeks ago

@helendallas

Is it possible to add the Fetch option / or automatically fetch the Park Name if available. How long will this take to implement?

It's possible, it will probably take 2-3 hours. And I need to know which layer I can use to get the park name.

helendallas commented 2 weeks ago

Thanks @dimasciput Since we are still waiting for an updated spatial layer, I suggest we hold off retrieving from the layer for now. I will create a separate for this and put on back burner pending receiving and publishing the new layer.

SO once you have updated the text re name, I can close the ticket.

helendallas commented 1 week ago

@dimasciput Please can you change this to the first 3 letters of the Parks so that they are unique. Two won't work as some parks are both MA etc.

Also then revise the text below. Then we can close ticket.

338939672-3f9d84df-c895-4a0f-8f14-1b5ea271816f