Closed mathieuLU closed 6 months ago
There is now a confirmation message before deleting a site, to avoid mistakes...
commit is https://github.com/biodiversitydata-se/biocollect/commit/4738944e9914f6bfaf1d05b4dbc11e603a2a3681
then a script has been created to clean the database. Reminder : the deleted sites/users/surveys are removed from the database. That scirpt makes sure that no deleted sites remains in the owned/booked fields => https://github.com/Lund-University-Biodiversity-data/convert-SFT-SEBMS-to-MongoDB/blob/master/script/checkOwnedBookedSites.php
and now our intranet-dashboard displays these non-existing sites still in these owned/bookedSites fields
One person couldn't be displayed in the (https://biocollect.biodiversitydata.se/sft/person/edit/91df96ef-5476-1f2b-171b-10b598495576/?returnTo=/sft/project/index/89383d0f-9735-4fe7-8eb4-8b2e9e9b7b5c# "Visa bokade lokaler") because of sites removed in the database that were still in the ownedSites or bookedSites
Check if it's possible to clean that part when a site is removed. Or create a script that clean the database.