Giter Site home page Giter Site logo

Comments (6)

aureq avatar aureq commented on July 21, 2024

@tsteur

  • Messaging: I don't understand what you're trying to say (feel free to write in French if that's easier).
    If the messaging isn't clear enough, then feel free to make a proposition. The text is stored in https://github.com/piwik/piwik-package/blob/master/debian/templates
    If the upgrade is not performed, then I can add a custom messaging once the package has been installed. This is controlled at the end of https://github.com/piwik/piwik-package/blob/master/debian/postinst

  • About the INI file, unless the file has changed between 2 updates, Debian should safely deploy the changes. This behavior is controlled by debian itself (apt), not via the package from what I know.

from matomo-package.

tsteur avatar tsteur commented on July 21, 2024

About the INI file, unless the file has changed between 2 updates, Debian should safely deploy the changes.

Awesome

Messaging

The user that was using the package wasn't sure what is going to happen. eg

  1. Will it perform a database update directly when selecting yes
  2. And / or does this affect all database updates when there are any in the future
  3. What happens when selecting no, how will the update be executed then.

I'm still not quite sure but I understand when selecting "yes", and there is a database update for Piwik (eg update from Piwik 2 to Piwik 3), it will perform a database update after updating the package and in the future, whenever there is a DB update, it will be executed automatically and one doesn't have to select it again?

Still not quite sure about the behaviour. Eg it wasn't clear whether there would be a DB update already executed with this update (many Piwik updates do not have a DB update) and which queries would be executed. It basically depends on the queries to decide whether it is worth updating the DB now or manually at a later time. I reckon I would first need to know the consequences of selecting "yes" and then I can better explain :)

from matomo-package.

aureq avatar aureq commented on July 21, 2024

Ok, so what you mean is the message displayed when prompting the user is not clear. And it's hard to understand whether 1 or 2 will happen. So, I can fix this messaging.
To answer the question, the db upgrade is performed after the package has been updated, and it remains as such for all future package upgrades when required. There's a debian (apt) command to change the behavior if needed.

from matomo-package.

tsteur avatar tsteur commented on July 21, 2024

Sweet. In this case the message is already pretty good. We would maybe need to change the message like below but it is probably way too long.

 Please choose whether you want to enable automatic database upgrade for your Piwik installation.
 .
 From time to time, Piwik database schema must be upgraded so Piwik
 can continue to work correctly. You have the ability to automate the
 process so the database is upgraded automatically. Though, you
 should ensure you have proper backup in place and keep in mind
that major Piwik version updates may come with many DB updates 
that can take a long time.

If you select yes, the database update will be executed and it remains as such for all future package upgrades when required. You can change this behavior with a debian (apt) command.

If you select no, you will need to take care of database updates yourself after a package upgrade. In such a case, Piwik will show the list of database queries that need to be executed in the UI.

from matomo-package.

mattab avatar mattab commented on July 21, 2024

👍

from matomo-package.

aureq avatar aureq commented on July 21, 2024

Closing this issue. Changed the apt command to proper dpkg-reconfigure piwik command.

from matomo-package.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.