Skip to content

Handle reset identities event #41

Merged
addb merged 19 commits intoadobe:dev-v3.0.3from
addb:AMSDK-11239
Oct 13, 2021
Merged

Handle reset identities event #41
addb merged 19 commits intoadobe:dev-v3.0.3from
addb:AMSDK-11239

Conversation

@addb
Copy link
Copy Markdown
Collaborator

@addb addb commented May 20, 2021

Description

Related Issue

Motivation and Context

How Has This Been Tested?

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • I have signed the Adobe Open Source CLA.
  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

@codecov
Copy link
Copy Markdown

codecov bot commented May 21, 2021

Codecov Report

❗ No coverage uploaded for pull request base (dev-v3.0.3@61bd4ca). Click here to learn what that means.
The diff coverage is n/a.

@@              Coverage Diff              @@
##             dev-v3.0.3      #41   +/-   ##
=============================================
  Coverage              ?   89.93%           
=============================================
  Files                 ?       13           
  Lines                 ?     1082           
  Branches              ?        0           
=============================================
  Hits                  ?      973           
  Misses                ?      109           
  Partials              ?        0           

Copy link
Copy Markdown
Contributor

@emdobrin emdobrin left a comment

Choose a reason for hiding this comment

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

We should also add some integration tests with the other extensions, making sure the identities are reset accordingly and the new hits after reset contain the updated information.

dispatchDefaultConfigAndIdentityStates()
waitForProcessing()

let analyticsProperties = analytics.analyticsProperties
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Let us not check internals in functional tests.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

You can either check it in following requests or use getTrackingIdentifier/getVisitorIdentifier APIs

dispatchDefaultConfigAndIdentityStates()
waitForProcessing()

let analyticsProperties = analytics.analyticsProperties
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

You can either check it in following requests or use getTrackingIdentifier/getVisitorIdentifier APIs

@praveek praveek changed the base branch from dev-v3.0.2 to dev-v3.0.3 September 9, 2021 02:43
Copy link
Copy Markdown
Contributor

@emdobrin emdobrin left a comment

Choose a reason for hiding this comment

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

@addb looks good with minor cleanup items 🕵️

private var analyticsState: AnalyticsState

#if DEBUG
var analyticsProperties: AnalyticsProperties
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Can we revert this if we are not accessing these two vars outside this class?

@addb addb merged commit 499ca06 into adobe:dev-v3.0.3 Oct 13, 2021
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.

5 participants