-
-
Notifications
You must be signed in to change notification settings - Fork 529
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
Collect deprecated methods/classes to be removed in 3.0 #13199
Comments
I didn't realise the modRest utils were going to be removed? Got a source for that, or are you just proposing we do? |
All the classes mentioned above have a line like this: modRestService, modRestController etc. are not touched by this. |
Ah.. don't think I noticed that before :D Makes me wonder what other code we have that is marked as deprecated in that way from years ago, and how we feel about those things today. Some deprecations will be logical as things are refactored, but there might also be things that we want to take out just because it's not something MODX should provide. |
The classes of the first table seemed to be improved a lot in modRestService, so they could be deprecated. But I have no code using these classes, so I am maybe wrong. |
|
|
|
There is an extra package available: https://github.com/modxcms/aws-s3-media-source |
@opengeek mentioned on the MAB call that he had a list of "hundreds" deprecations. |
|
|
|
|
|
|
|
|
Why do you think it's not being used by anyone? There are a lot of features in MODX you and I might not use because we don't know about them or don't understand them, that doesn't mean they are not being used. |
Well, it would take a complete reworking of the entire permissions system, including all the permissions checks to get rid of them, so it's not really worth the bother. Easy enough to simply ignore them, or else give everybody 0. Then those who do use them can continue to happily do so. In some ways, they resemble contexts in that regard. Except for situations like multiple domains using a single Manager, you can get the basic resource structure to do anything that contexts can be used for. |
But in the widget general information, when here only related to this specific user. |
It's strange, is access control taken into account in the widget? For example, some user should not see some resources, but he will see all of them in the widget? And can he start editing? The same question to the "Manager log" section, there is a filter by users. |
If it works like that, then there is logic in it. Although, I thought that only the current user is shown in the widget. |
In both cases, it calls |
Flash in the manager. Not a method / class, but it needs to be added to the list for removal. |
Can you be more specific? I believe the swf files are removed already. |
/manager/assets/ext3/resources {expressinstall.swf, charts.swf} Also in the packages: The affects MODX 2 and MODX 3. Firefox throws a warning (in the address bar) to use the outdated version of Flash. As I do not have Flash installed. I believe they are called in /manager/assets/ext3/ {ext-all-debug.js, exct-all.js} :
|
Good catch, those are ExtJS dependencies and I'm not sure if we can remove them. |
I heard at one point, that sites running any Flash will be actively blocked by Chrome. If that is the case, that would be a huge problem. |
If we don't use the 'chart', 'piechart', 'cartesianchart' and the derived xtypes, we are safe. The code of those components could be stripped away in ext-all-debug.js and be minified again in ext-all.js |
|
By the way, there is also a "Recent Documents" tab in "System Information" section, in addition to #13199 (comment) |
I've gone through the topic and edited everyone's comments to I'm tempted to close the issue now (and request others to open new issues for things we should further cleanup) but will leave it open a little longer. |
Summary
Collect deprecated methods/classes to be removed in 3.0 in the MODX core code and add logging code in those methods/classes.
This should be done before the release of 2.6 to have some warning time for extra authors.
This issue could be used to collect those methods/classes. Please add the methods/classes with the filename, classname and method name in a new comment.
core/model/modx/rest/modrestclient.class.phpcore/model/modx/rest/modrestcurlclient.class.phpmodRestClient is used in core for Package Management. So the core methods have to be changed to use modRestService or the deprecated notice has to be removed.
Unsure:
Update (19/10/2021): I've gone through the topic and marked all things that have been addressed as
crossed off. If not crossed off, that means it may require further discussion. ^MarkThe text was updated successfully, but these errors were encountered: