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

[4.4] Make UsersLatestHelper backward compatible #40143

Merged
merged 3 commits into from
Mar 18, 2023

Conversation

joomdonation
Copy link
Contributor

Pull Request for Issue # .

Summary of Changes

This is a follow up for PR #40092 to make it backward compatible. Can be merged by code review @laoneo . See #40092 (comment) for information

Testing Instructions

Code review

Actual result BEFORE applying this Pull Request

Works, but not backward compatible

Expected result AFTER applying this Pull Request

Works.

Link to documentations

Please select:

  • Documentation link for docs.joomla.org:

  • No documentation changes for docs.joomla.org needed

  • Pull Request link for manual.joomla.org:

  • No documentation changes for manual.joomla.org needed

@laoneo
Copy link
Member

laoneo commented Mar 17, 2023

Thanks, can you add the deprecated version like we do in #38657. And the target version should be 6.0.

@joomdonation
Copy link
Contributor Author

Thanks, can you add the deprecated version like we do in #38657. And the target version should be 6.0.

Done.

@laoneo laoneo merged commit cc12327 into joomla:4.4-dev Mar 18, 2023
@laoneo
Copy link
Member

laoneo commented Mar 18, 2023

Thanks!

@laoneo laoneo added this to the Joomla! 4.4.0 milestone Mar 18, 2023
@joomdonation joomdonation deleted the fix_UsersLatestHelper branch March 18, 2023 14:55
@sandewt
Copy link
Contributor

sandewt commented Mar 19, 2023

Thks

Comment on lines +88 to 98
* @deprecated __DEPLOY_VERSION__ will be removed in 6.0
* Use the none static method getLatestUsers
* Example: Factory::getApplication()->bootModule('mod_users_latest', 'site')
* ->getHelper('UsersLatestHelper')
* ->getLatestUsers($params, Factory::getApplication())
*/
public static function getUsers($params)
{
return (new self())->getLatestUsers($params, Factory::getApplication());
}
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some modules have already been modified in the past. I assume that the depreated text of the static method also needs to be adjusted.

To know: @deprecated 5.0 Use the none static function getArticles to @deprecated __DEPLOY_VERSION__ will be removed in 6.0 and so on.

It concerns the following helper files:
ArticlesLatestHelper.php, see link:

* @deprecated 5.0 Use the none static function getArticles

ArticlesNewsHelper.php
ArticlesPopularHelper.php

If yes, then a new PR is needed.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sandewt Yes. Please make PR to change deprecated note for these files.

Copy link
Contributor

@sandewt sandewt Mar 20, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See pr #40156

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants