-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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] Dont show stats exceptions/failures/warnings to users #33149
[4] Dont show stats exceptions/failures/warnings to users #33149
Conversation
This comment was marked as abuse.
This comment was marked as abuse.
With the patch applied, if debug is on there is no red exception message but logging continues. That is not what it says in the instructions and I think it would be best to have the message, even tailored to give a bit more explanation. This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/33149. |
This comment was marked as abuse.
This comment was marked as abuse.
I have tested this item ✅ successfully on d7da0f7 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/33149. |
the stats need more care fore sure |
I have tested this item ✅ successfully on d7da0f7 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/33149. |
Thanks! |
It does give the updated data to the project. And as production we used these extensively when trying to figure out minimum requirements for J4 (we filtered out any data not submitted in the last 3 months unlike the data that shows in the graph on j.org) Although to be clear it’s correct to not show most the warnings to end users (we should probably log them however) |
it's still fundamentally flawed as no site that said no 5 years ago has ever submitted data again. Perhaps it should be considered to ask everyone again at each update |
Pull Request for Closes #32005 #33083 #32129 et al.
Summary of Changes
Sometimes "something" stops a successful submission of anonymised stats to the Joomla stats collection endpoint.
Most of the time there is nothing anyone needs to do.
Joomla Stats collection is a vanity "nice to have" and the Joomla project should not be complaining if users fail to submit their stats
The stats process should die gracefully and quietly - unless in debug mode.
Notices, and Exceptions should not be thrown into the users face if the Joomla Stats collection server endpoint is down, unreliable, unavailable, uncountable.
Testing Instructions
Install Joomla 4
Change the url in the file to be a fake non-routable url
To reset your stats plugin to "out of the box" run sql after s/jos/prefix:
Test with "always"
Actual result BEFORE applying this Pull Request
Red exception shown to the screen on failed submission of stats
Expected result AFTER applying this Pull Request
No red exception messages
If debug is on - red exception message
if logging is enabled - entries in the log like:
Documentation Changes Required
none