paolobenve / myphotoshare

MOVED TO GITLAB! --- A Web 2.0 Photo Gallery Done Right via Static JSON, Dynamic Javascript and a bit of php for sharing
15 stars 0 forks source link

Dependency to web services must be configurable by the user #60

Closed pmetras closed 6 years ago

pmetras commented 6 years ago

Hello,

To have MyPhotoShare being packaged for Debian/Ubuntu, like photofloat was, it should not depend on external web services to run. When installed, the user can decide to enable these web services, but it should not be the default. The web services should be enabled if desired in the /etc/myphotoshare/myphotoshare.conf file.

External web services:

Debian provides packages of software that can replace some of these web services like cleancss

paolobenve commented 6 years ago

Actually I'm not satisfied with the external minifiers myphotoshare is using, they often go in time out mode and return an error message without the possibility to detect it, getting rid of them is welcome, but I don't master cleancss!

For the rest, it seems quite simple

paolobenve commented 6 years ago

Google Analytics and Piwik integration is already not activated.

paolobenve commented 6 years ago

geotags are now excluded by default in master

pmetras commented 6 years ago

I should push a pull request to use local minifiers or web services soon, when I solve the git mess on my server...

paolobenve commented 6 years ago

thank you!!!

paolobenve commented 6 years ago

Now we are using an option in config file in order to decide how to minify, but this option is used only by the minifier script.

What about giving the script a simple parameter specifying the method to use? the script itself would be more simple, would avoid to read files, and the config file would be cleaner

pmetras commented 6 years ago

Effectively. As the minifier script is run only once, there's no strong argument at storing the minifiers used. On the reverse, keeping all options in a single place can make it simpler to understand how the minfied files were produced when a bug is found in a minified CSS or Javascript.

My initial goal was if MyPhotoShare is bundled for a linux distribution, it should not call external web services without the user knowing it when the package is installed. So the default minifiers should be local packages or no minification; web services are not an option. But if the packager decide to use minifiers with local packages, he should make these packages dependencies of MyPhotoshare. And the final user should be able to change these values after the installation if he will. It means that the final user must know what minifiers were used during the MyPhotoshare package installation. It can be explained in the package documentation (simpler; that's what you suggest and that can be enough) or in a config file (what I did).

Both arguments hold and you can decide which one you prefer.

paolobenve commented 6 years ago

Let's let it as it is. Thank you!

Closing