webtrees icon indicating copy to clipboard operation
webtrees copied to clipboard

Delete Unused Locations Unexpectedly Performs Global Changes

Open miqrogroove opened this issue 2 years ago • 4 comments

I was on the map-data page for my "New York" location and recently changed some tree data so that there were 2 places no longer in use.

When I clicked the Delete Unused Locations button, webtrees purged 67 locations from my database. 😱

Some possible ways to improve this:

  • Make changes context-sensitive.
  • Make changes undoable.
  • Add AYS

miqrogroove avatar May 30 '22 14:05 miqrogroove

When I clicked the Delete Unused Locations button, webtrees purged 67 locations from my database.

Perhaps these were all unused. Perhaps your change ("New York" => "New York State"), caused lots of child places to become unused?

You didn't say "webtrees deleted a place that was in use", so I'm not sure what error you are reporting.

Add AYS

AYS?

fisharebest avatar Jun 05 '22 15:06 fisharebest

Perhaps these were all unused. Perhaps your change ("New York" => "New York State"), caused lots of child places to become unused?

Yes they were all unused. No, it was not caused by the local change. It performed a global purge of all unused locations in the database. Simply unexpected behavior of the delete button on the New York page.

Add AYS

AYS?

"Are you sure" prompt is one way to avoid unexpected results.

miqrogroove avatar Jun 05 '22 15:06 miqrogroove

please close

arbor95 avatar Feb 18 '24 08:02 arbor95

I see it's still labeled 'cannot reproduce'. I'm not willing to test this again on my production site, so I would need to set up a 2nd instance for testing this bug. Give me a couple more weeks to take care of that.

miqrogroove avatar Feb 18 '24 09:02 miqrogroove