nakama icon indicating copy to clipboard operation
nakama copied to clipboard

Delete could be a bit more friendly

Open dlannan-kakutai opened this issue 3 years ago • 2 comments

Description

When editing storage data in the nakama console, sometimes when deleting objects it will automatically delete all linked objects without notification. I think adding a little "You have X number of linked items, Are you sure?" or something similar would really help with storage data editing.

Steps to Reproduce

Example:

  1. Create some storage data (import or api)
  2. Create connected storage items (via users)
  3. Delete a user with multiple storage items associated with it.
  4. All data is deleted that is associated with the user without notification.

Expected Result

A popup giving some notice about the large changes about to occur. I think for small changes, this it is fine, its more important if an admin accidentally deletes an unknown user that may be critical in the storage system

Context

  • [ x ] Defold

Your Environment

  • Nakama: 3.2.1+6790d453
  • Database: Cocroach
  • Docker - used the docker-compose instructions from the document
  • Ubuntu 18.04

dlannan-kakutai avatar Jul 05 '21 06:07 dlannan-kakutai

Thanks for the feedback @dlannan-kakutai. We don't delete storage objects that are "linked" to each other (we have no concept in the storage engine API). We do delete all objects owned by a user if the user is deleted. Is this the scenario you encountered?

novabyte avatar Jul 05 '21 12:07 novabyte

Im not sure. I believe the process was: The storage page was selected, then the storage item - example below. image Then the key is selected in the url which goes to this page: image And delete was selected. Because its a single line item, it was expected the store would be removed, however it removed other stores too (I think all of them actually). I'll try to make an empty example of what was done so its repeatable (when I get some free time - hopefully).

I think maybe some info at least about what is going to happen would be useful. Or.. better still maybe configurable? So that users have the option of having some notifications of what is happening.

Im less concerned about what happens, and more about handing this over to other admin people and ending up with a bit of a maintenance nightmare.

dlannan-fmad avatar Jul 06 '21 05:07 dlannan-fmad