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

[5.2] Static function getList deprecated in mod_stats #42907

Merged
merged 9 commits into from
May 7, 2024

Conversation

joomlaweby
Copy link
Contributor

Summary of Changes

Static function getList is after applying pull request deprecated and new non-static method getStats created in StatsHelper.

Testing Instructions

  1. Make sure you have site module mod_stats published
  2. You should see module output on frontend
  3. Deprecated static function getList should also work

mod_stats

Actual result BEFORE applying this Pull Request

Module works as expected

Expected result AFTER applying this Pull Request

Module works same way as before applying pull request

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

@fgsw
Copy link

fgsw commented Feb 28, 2024

After click on Apply Patch in Patchtester only a red Message is shown: "The file marked for modification does not exist: modules/mod_stats/src/Dispatcher/Dispatcher.php".

@brianteeman
Copy link
Contributor

@fgsw Your local joomla installation is not up to date

@fgsw
Copy link

fgsw commented Feb 28, 2024

My Installation Setting:
image

image

Better to down- and upload & install every day the nightly build (now Joomla_5.1.0-beta1-dev-Development-Update_Package.zip)?

@fgsw
Copy link

fgsw commented Feb 28, 2024

I have tested this item ✅ successfully on 15ba980

Using nightly build.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/42907.

@ceford
Copy link
Contributor

ceford commented Feb 28, 2024

Just realised I am testing with PHP8.3 - everything seems to work. For this PR I do not see a deprecated notice with or without the patch. Am I supposed to?


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/42907.

@joomlaweby
Copy link
Contributor Author

joomlaweby commented Feb 28, 2024

Just realised I am testing with PHP8.3 - everything seems to work. For this PR I do not see a deprecated notice with or without the patch. Am I supposed to?

This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/42907.

@ceford No, deprecated static function in helper file may be still used by other extensions (probably only 3rd party), so this is the case, when this deprecated function is called. Module mod_stats is now using new non-static method from helper, so there is no deprecation notice.

@ceford
Copy link
Contributor

ceford commented Feb 29, 2024

I have tested this item ✅ successfully on 15ba980


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/42907.

@Quy
Copy link
Contributor

Quy commented Feb 29, 2024

RTC


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/42907.

@joomla-cms-bot joomla-cms-bot added the RTC This Pull Request is Ready To Commit label Feb 29, 2024
@richard67
Copy link
Member

Back to pending as there have been made changes.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/42907.

@joomla-cms-bot joomla-cms-bot removed the RTC This Pull Request is Ready To Commit label Mar 11, 2024
@exlemor
Copy link

exlemor commented Mar 22, 2024

I have tested this item ✅ successfully on 1dbe39e

Was successful and noticed that in Joomla Debug, there seems to be fewer Queries after Patch.

Before Patch: 28 statements were executed, 6 of which were duplicates, 22 unique
After Patch: 25 statements were executed, 2 of which were duplicates, 23 unique

so if intended great and even if not, fewer = better so great :)

Thanks for yet another good fix.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/42907.

@viocassel
Copy link
Contributor

I have tested this item ✅ successfully on 1dbe39e


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/42907.

@Quy
Copy link
Contributor

Quy commented Mar 29, 2024

RTC


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/42907.

@joomla-cms-bot joomla-cms-bot added the RTC This Pull Request is Ready To Commit label Mar 29, 2024
@cybersalt
Copy link

I have tested this item ✅ successfully on 1dbe39e


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/42907.

@brianteeman
Copy link
Contributor

great to see all these tests @cybersalt - hope this will become a regular thing

@HLeithner HLeithner changed the base branch from 5.1-dev to 5.2-dev April 24, 2024 09:07
@HLeithner
Copy link
Member

This pull request has been automatically rebased to 5.2-dev.

@HLeithner HLeithner changed the title [5.1] Static function getList deprecated in mod_stats [5.2] Static function getList deprecated in mod_stats Apr 24, 2024
@pe7er pe7er self-assigned this May 7, 2024
@pe7er pe7er enabled auto-merge (squash) May 7, 2024 08:41
@pe7er pe7er merged commit 9e85456 into joomla:5.2-dev May 7, 2024
3 checks passed
@joomla-cms-bot joomla-cms-bot removed the RTC This Pull Request is Ready To Commit label May 7, 2024
@pe7er
Copy link
Contributor

pe7er commented May 7, 2024

Thanks @joomlaweby !

@Quy Quy removed the PR-5.1-dev label May 7, 2024
@Quy Quy added this to the Joomla! 5.2.0 milestone May 7, 2024
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.

None yet