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

separate atb and variant to remove duplicate variant storage #332

Merged
merged 4 commits into from Jun 20, 2018

Conversation

brindy
Copy link
Contributor

@brindy brindy commented Jun 18, 2018

Task/Issue URL:

Tech Design URL:
CC:

Description:

  • Removes duplicate ATB storage
  • Cleans up any existing duplication
  • Removes variant if not in current experiment

Steps to test this PR:

Upgrade

  1. Install old version of the app
  2. Install this version, check that /exti and search requests contain the correct atb and variant

Install

  1. Clean install of this app
  2. Check that /exti and search requests contain the correct atb variant

Internal references:

Software Engineering Expectations
Technical Design Template

@brindy brindy changed the title separate atb and variant to remove duplicate variant storage separate atb and variant to remove duplicate variant storage (wip) Jun 18, 2018
@brindy brindy changed the title separate atb and variant to remove duplicate variant storage (wip) separate atb and variant to remove duplicate variant storage Jun 18, 2018
@brindy brindy changed the title separate atb and variant to remove duplicate variant storage separate atb and variant to remove duplicate variant storage (WIP) Jun 18, 2018
@brindy
Copy link
Contributor Author

brindy commented Jun 18, 2018

Don't review this for now, please.

@brindy
Copy link
Contributor Author

brindy commented Jun 19, 2018

This is good to review now. Thanks in advance!

@brindy brindy changed the title separate atb and variant to remove duplicate variant storage (WIP) separate atb and variant to remove duplicate variant storage Jun 19, 2018
@brindy brindy mentioned this pull request Jun 20, 2018
@brindy
Copy link
Contributor Author

brindy commented Jun 20, 2018

Just looking at this conflict.

…_storage

# Conflicts:
#	DuckDuckGo.xcodeproj/project.pbxproj
Copy link
Contributor

@subsymbolic subsymbolic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great, just one suggested tidy up

@@ -96,8 +96,8 @@ public struct AppUrls {

public var atb: URL {
var url = URL(string: Url.atb)!
if let atb = statisticsStore.atb, let setAtb = statisticsStore.retentionAtb {
url = url.addParam(name: Param.atb, value: atb)
if let atbWithVariant = statisticsStore.atbWithVariant, let setAtb = statisticsStore.retentionAtb {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!


}

func testWhenVariantIsNInCurrentExperimentThenVariantIsNotRemovedFromStorage() {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Typo extra N in test name

@subsymbolic subsymbolic self-assigned this Jun 20, 2018
@brindy brindy merged commit 709d8d8 into develop Jun 20, 2018
@brindy brindy deleted the feature/remove_duplicate_atb_variant_from_storage branch June 20, 2018 16:08
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.

None yet

2 participants