JoomGalleryfriends / JG4-dev

Development repository for JoomGallery v4.x
GNU General Public License v3.0
10 stars 7 forks source link

What should happen when changing the storage location of imagetypes? #48

Closed Elfangor93 closed 1 year ago

Elfangor93 commented 2 years ago

The storage location of an image in the filesystem is derived based on two settings in the config manager:

Now if you change one of these settings after you already uploaded some images or created some categories, JoomGallery will create a mess.

As a result, changing one of these settings requires many operations to bring everything back into line especially for large galleries. Changing this settings and start this operations could cause many problems if some of the operations fail for some reason.

How can we tackle this problem? How can we realize a GUI which leads an administrator correctly through this procedure? Do you think its even a good idea placing this settings in the config manager?

szepty-ziemi commented 2 years ago

We need to take into account that most users are inexperienced admins. They just want it work out-of-the-box. Giving them less options will result with less mess in the system. We can hide this settings behind a select: default - will hide them and sett default paths, advanced - will expand those settings with warning eg. "Be careful with changing this settings as it may result with gallery malfunction" or something similar.

Elfangor93 commented 2 years ago

Maybe we add a new tab for delicate settings where there is a message telling that you should change settings in this section only if you are nowing what you do.

szepty-ziemi commented 2 years ago

That's a good option too, with disclaimer "Don't change anything unless you know what you're doing" 😄

AlexanderSupp commented 1 year ago

The optional mapping of the imagetypes are great. All actions in the background are transparent for experienced administrators. I would also recommend a warning when using it. It is now possible to store images outside of the images directory. Now I have no duplicate files in the Images directory.

Elfangor93 commented 1 year ago

Lets continue in the discussion #64