Skip to content

[AMSDK-11384] Persist reset timestamp#178

Merged
nporter-adbe merged 4 commits intoadobe:feature/consentfrom
nporter-adbe:persist-reset-timestamp
Mar 29, 2021
Merged

[AMSDK-11384] Persist reset timestamp#178
nporter-adbe merged 4 commits intoadobe:feature/consentfrom
nporter-adbe:persist-reset-timestamp

Conversation

@nporter-adbe
Copy link
Copy Markdown
Contributor

Description

Persists the last reset timestamp so we can inspect it between sessions:
https://jira.corp.adobe.com/browse/AMSDK-11384

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 Mar 29, 2021

Codecov Report

Merging #178 (3185052) into feature/consent (8298213) will increase coverage by 0.05%.
The diff coverage is 100.00%.

@@                 Coverage Diff                 @@
##           feature/consent     #178      +/-   ##
===================================================
+ Coverage            94.04%   94.09%   +0.05%     
===================================================
  Files                   25       25              
  Lines                  873      880       +7     
===================================================
+ Hits                   821      828       +7     
  Misses                  52       52              

class NetworkResponseHandler {
private let LOG_TAG = "NetworkResponseHandler"
private let serialQueue = DispatchQueue(label: "com.adobe.edge.eventsDictionary") // serial queue for atomic operations
private let dataStore = NamedCollectionDataStore(name: EdgeConstants.EXTENSION_NAME)
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.

What do you think about moving the last reset over to StoreResponsePayloadManager as it already has access to the DataStore and this change is related to the store cleanup?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

We could do that, but given our timeline, I'd prefer not to as there is very little benefit.

@nporter-adbe nporter-adbe merged commit 4828306 into adobe:feature/consent Mar 29, 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.

3 participants