give the user the option if anonymous data will sent#8346
give the user the option if anonymous data will sent#8346wilsonge merged 12 commits intojoomla:stagingfrom
Conversation
This PR implements a 6 hour grace time before a site sends data to the stats server. So anyone is able to disable the pluging before data will be send.
|
@rdeutz can you add this "6 hour grace time" to the postinstall message too? |
Agree. |
|
@infograf768 @zero-24 I also agree to add this to the post-install if we find testers and merge it |
|
Made a new install. Will let you know exactly when the message is sent (if sent). |
|
I have testet the delay now, in fact it gives 6 + 12 hours because we are checking if the delay between last run and now is bigger then 12 hours. That makes it 18 hours after install what is more then enough to disable a plugin. Atm it fails, I think it is because the stats server isn't running but I will check it. #How to test
|
|
The stats server has been running since 4/11/15 |
|
@wilsonge could also be me being not fast enough to allow the connection in LittleSnitch |
|
disabled the network filter and it works, but my test doesn't count :-) |
|
I have sent a new PR to @rdeutz rdeutz#2 Now on first run the plugin will show a message asking the user to select the mode it will use: This allows users to:
That message will be shown the first time the plugin is loaded and never again except user selects In the plugin parameters I have added also some options to configure it: So now the users can adjust:
|
|
You change basically makes it opt-in. We wanted it opt-out explicitely. If you want to make it opt-in, you can as well just deliver it unpublished and show a postinstall message where people can enable it. No need for any special code then. |
|
I have tested this item ✅ successfully on 25abae2 So, a good test for me. This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/8346. |
|
I don't think it's opt-in or opt-out. It's opt. No decision is taken for the user. A disabled plugin + postinstall message wouldn't be so easy to setup for users. It would require 2-3 clicks to explicitly enable it. Here you hace both options in 30 pixels and 1 click away. I don't think is the same... If you think that nobody is going to enable it then is a bad idea to put it there without asking users. |
I assume if the user doesn't click anything, it will not send anything. Thus it's opt-in. The user has to actively enable it. |
Users have to actively enable OR disable it. The only mandatory thing (if user doesn't want to live with a message always shown in backend) is that they decide the initial mode. Thus it's just opt :P |
|
PR updated! |
The question is what happens if they don't do anything? Answer is: It doesn't send any data. Thus it's opt-in. |
Allow users to accept & configure stats sending
|
This PR has received new commits. CC: @infograf768 This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/8346. |
|
@Bakual we bug them since they make a decision :-) |
There was a problem hiding this comment.
+PLG_SYSTEM_STATS_MODE_DESC="Select the way that you want the statistics to be sent."
|
@infograf768 deleting the params for the plugin should do the job |
There was a problem hiding this comment.
For reference the style guide says
Whenever you can substitute "your Joomla CMS" in place of "Joomla" and still make sense, then it's descriptive and no bang needed.
So in this case I erred on J to mean the project and not the CMS so does need the !
|
This PR has received new commits. CC: @infograf768 This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/8346. |
|
@rdeutz |
|
Found out: the plugin has to be enabled first (as it does for updates or new installs) |
|
I have tested this item ✅ successfully on 6d8f1b7 This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/8346. |
|
I missed one typo. rdeutz#4 BTW Thanks for checking this @brianteeman @infograf768 ! |
There was a problem hiding this comment.
Line 21 "...You can change this settings later from..." should be "change this setting"
There was a problem hiding this comment.
Good spot - I am not wondering if it should be
change these settings
@Hils what do you think
There was a problem hiding this comment.
Could be either - I can't look at the context just now (away) - maybe settings is more comfortable?
|
I have tested this item ✅ successfully on 6d8f1b7 @jtester works This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/8346. |
Missed typo
|
This PR has received new commits. CC: @infograf768, @Webdongle This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/8346. |
|
I used "these changes" because there is more than one setting being applied. |
Yet more typos :( We can squash when we merge it finally
|
This PR has received new commits. CC: @infograf768, @Webdongle This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/8346. |
|
2 tests. RTC This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/8346. |
|
Thanks guys :) Merged |
give the user the option if anonymous data will sent



updated PR description: #8346 (comment)
Original PR description:This PR implements a 6 hour grace time before a site sends data to the stats server. So anyone is able to disable the pluging before data will be send.