geeksforsocialchange / PlaceCal

Bring your community together
https://placecal.org
GNU Affero General Public License v3.0
17 stars 8 forks source link

[Bug]: Deleting an address from a partner will cause importer issues with any calendar with that partner set as a default location #1219

Open kimadactyl opened 2 years ago

kimadactyl commented 2 years ago

related: #838

depends on: #2208

Some implementation suggestions (needs further discussion):

or

or

or

ivan-kocienski-gfsc commented 2 years ago

Need to decide what should happen:

r-ferrier commented 10 months ago

Have tried this out and it does break, but in a way that is not impossible to understand for a user. Nothing breaks when the address is removed, but the 'default location' that was previously set here vanishes.

Screenshot 2024-01-23 at 14 14 10 Then, when the importer runs, it informs you that events could not be added because 'No place or address could be created or found for the event location'.

Screenshot 2024-01-23 at 14 10 21

The information that follows this is less helpful - it says the address attached to the event, not the address of the default location, but this sort of makes sense because we've deleted that address and I guess it's basically trying to check against nothing. I think we should just change the error message here so that if no location is found, we say something more helpful about why this is broken, eg 'There is no address set for this location, please choose a different location and try again'.

r-ferrier commented 10 months ago

leaving to discuss tomorrow AM