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

Move initial setup of IsAnalyticsReportingApproved to PreferenceSettings constructor #9666

Merged
merged 1 commit into from
May 29, 2019

Conversation

DmytroMuravskyi
Copy link
Contributor

Purpose

Alias integration needs control over analytics tick on the first run. To achieve this I moved the variable initialization from CheckIsFirstRun to PreferenceSettings constructor. This allows override IsAnalyticsReportingApproved before creating DynamoCore if needed. The only change to default Dynamo behavior I see is that now IsAnalyticsReportingApproved option can now migrate from previous Dynamo version instead of always being "true" during the first run. Please inform me what is the wanted behavior.

Declarations

Check these if you believe they are true

  • The code base is in a better state after this PR
  • Is documented according to the standards
  • The level of testing this PR includes is appropriate
  • User facing strings, if any, are extracted into *.resx files
  • All tests pass using the self-service CI.
  • Snapshot of UI changes, if any.
  • Changes to the API follow

Reviewers

@mjkkirschner

@QilongTang
Copy link
Contributor

@DmytroMuravskyi

  1. Did you test if this would change the fact that every new version of Dynamo launched for user, they will see the analytics term of use first time when they launch it?
  2. Can you explain the reason why you would like to propose such change? Do you mean on the first run of Alias, you always set IsAnalyticsReportingApproved to false?

@DmytroMuravskyi
Copy link
Contributor Author

DmytroMuravskyi commented May 28, 2019

@QilongTang I didn't change migration behavior. Analytics term of use window would still appear during first run of every new version of Dynamo. I just removed hardcoded value set, because we need to set it as "false" by default if user has no previous preferences. The window, however, will show value of IsAnalyticsReportingApproved from migrated preferences of previous Dynamo version instead of always "true"

@QilongTang
Copy link
Contributor

@DmytroMuravskyi Thanks! I verified locally and behavior change looks good to our team. However, unit tests are missing from this PR. I will add in a different PR.

@QilongTang QilongTang merged commit e475807 into DynamoDS:master May 29, 2019
@QilongTang QilongTang self-assigned this May 29, 2019
mjkkirschner pushed a commit that referenced this pull request Aug 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants