-
-
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
give the user the option if anonymous data will sent #8346
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 :-) |
PLG_SYSTEM_STATS_INTERVAL_DESC="Stats will be sent each X hours. Default is 12" | ||
PLG_SYSTEM_STATS_INTERVAL_LABEL="Interval (hours)" | ||
PLG_SYSTEM_STATS_LABEL_MESSAGE_TITLE="Joomla! would like your permission collect some basic statistics." | ||
PLG_SYSTEM_STATS_MODE_DESC="Selec the way you want that statistics are sent" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+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 |
@@ -4,9 +4,23 @@ | |||
; Note : All ini files need to be saved as UTF-8 | |||
|
|||
PLG_SYSTEM_STATS="System - Joomla! Statistics" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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 ! |
PLG_SYSTEM_STATS_MODE_OPTION_NEVER_SEND="Never send" | ||
PLG_SYSTEM_STATS_MODE_OPTION_ON_DEMAND="On demand" | ||
PLG_SYSTEM_STATS_MSG_ALLOW_SENDING_DATA="Enable Joomla Statistics?" | ||
PLG_SYSTEM_STATS_MSG_JOOMLA_WANTS_TO_SEND_DATA="In order to better understand our install base and end user environments, this plugin has been created to send those statistics back to a Joomla! controlled central server. No identifying data is captured at any point. You can change this settings later from Plugins > System Joomla! Statistics." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Line 21 "...You can change this settings later from..." should be "change this setting"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.