Code Monkey home page Code Monkey logo

Comments (6)

madmaxlamenace avatar madmaxlamenace commented on July 25, 2024

I forked the yunohost package and proceed to update from my forked package.
I just modify the source app
I don't see any problems after the update and i have the team edition when i read the "about" menu

from mattermost_ynh.

kemenaran avatar kemenaran commented on July 25, 2024

@madmaxlamenace Thanks for testing the migration path, and confirming it works properly. I just opened #115 for this.

However, when thinking again about it, I wonder what will happen to potential Yunohost users that actually did activate a license for the Enterprise features: the package will be downgraded, and the Enterprise features won't be available to them anymore. I don't know if there are any of these users though.

Furthermore, if someone setup Mattermost using Yunohost, and later wants to enable Enterprise features while still using the Yunohost package, it won't be possible anymore (as only the Team Edition will be distributed).

To recap:

Pros:

  • Distributing a free-software-licensed release, better aligned with Yunohost values.

Cons:

  • Users can no longer enable Entreprise features.

from mattermost_ynh.

lapineige avatar lapineige commented on July 25, 2024

What about adding an option during the installation ? (and by default, the free version).

During the upgrade, is it possible to detect which version is used ? Then it would be possible to upgrade correctly ?

from mattermost_ynh.

kemenaran avatar kemenaran commented on July 25, 2024

What about adding an option during the installation ? (and by default, the free version).

Good question. I just checked the code: it uses the ynh_setup_source helper to download the packaged release defined in config/app.src.

To give the choice to the user, the trick would be to create two src files (e.g. app-team.src and app-entreprise.src). The scripts could then tell at runtime which file should be used for downloading the release.

It should even be possible to switch from one release to another, by flipping the package setting:

# Switch to the free version
sudo yunohost app setting mattermost "use_enterprise_version" -v "false"
sudo yunohost app upgrade mattermost

# Switch to the enterprise version
sudo yunohost app setting mattermost "use_enterprise_version" -v "true"
sudo yunohost app upgrade mattermost

The only downside is that would add more code, moreover on a path that wouldn't be used often and thus prone to silent breakage. I'm not sure how to write a good automated test for this, but if I find out this option would definitely be the best choice.

from mattermost_ynh.

madmaxlamenace avatar madmaxlamenace commented on July 25, 2024

Maybe the use of the entreprise edition needs to show the licence to the user.

from mattermost_ynh.

kemenaran avatar kemenaran commented on July 25, 2024

It is now possible to install either the free or the entreprise edition.

from mattermost_ynh.

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.