Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add the ability to update MODX via widget #16660

Open
Ruslan-Aleev opened this issue Dec 11, 2024 · 7 comments
Open

Add the ability to update MODX via widget #16660

Ruslan-Aleev opened this issue Dec 11, 2024 · 7 comments
Labels
feature Request about implementing a brand new function or possibility.

Comments

@Ruslan-Aleev
Copy link
Collaborator

Feature request

Summary

At the moment, you can't update MODX via the manager, the widget simply displays information about the new version.

And if you update manually, then downloading and replacing several thousand files is a strange solution.

We need to implement a CMS update in the manager panel, this is logical behavior of the CMS, it is strange that MODX does not have this.

Suggested solution(s)

We can use the package code as a basis: https://extras.modx.com/package/upgrademodx, https://extras.modx.com/package/modupdater

Related issue(s)/PR(s)

#14591

@Ruslan-Aleev Ruslan-Aleev added the feature Request about implementing a brand new function or possibility. label Dec 11, 2024
@smg6511
Copy link
Collaborator

smg6511 commented Dec 11, 2024

Totally agree, @Ruslan-Aleev, but let's just have one issue open on this subject (maybe close #14591 and keep this one). I had also mentioned this (namely the desire to integrate @BobRay's Upgrade MODX into the core) when I did the update to the built-in Updates widget. And, yeah, most of MODX's competitors have an integrated updater for their core app and its extensions (a couple of CMSs I really dislike having to use come to mind).

The main challenge here is that there have only been a few people actively contributing in the past couple years and there's a pretty long list of issues to tackle :-/

@Ruslan-Aleev
Copy link
Collaborator Author

There are 2 issues here, they are logically connected, but the essence is different.
I would leave both, BUT the update is a priority, yes.

@smg6511
Copy link
Collaborator

smg6511 commented Dec 11, 2024

Oh, I see what you're saying now - in the other feature request you want to add the ability to choose which type of distribution in addition to the version, correct?

@Ruslan-Aleev
Copy link
Collaborator Author

Yes, we were talking about a small php file, through which you could update MODX (by selecting a distribution), or download MODX from scratch to the server. Perhaps, if there is an update via a widget, this file will no longer be needed, or somehow integrate a file that would work both in the widget and by itself (for example, for a clean installation of MODX).

@BobRay
Copy link
Contributor

BobRay commented Dec 12, 2024

Assume you know about the UpgradeMODX extra, which updates MODX from a widget. It always upgrades you to the Traditional distribution, but it works fine even if your original version was the Advanced distribution. It won't work for a clean new install, though (because it's a widget).

@Ruslan-Aleev
Copy link
Collaborator Author

Yes, an extra is also an option, but not all users install it. Also, a extra is still a separate product, and the system updates in the manager are, as it seems to me, the basis for CMS security.

@BobRay
Copy link
Contributor

BobRay commented Dec 13, 2024

I don't think UpgradeMODX would be very difficult to integrate into the core. I could be wrong.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Request about implementing a brand new function or possibility.
Projects
None yet
Development

No branches or pull requests

3 participants