Skip to content

[MOB-14372] Use XDM timestamp if present#198

Merged
nporter-adbe merged 2 commits intoadobe:devfrom
nporter-adbe:MOB-14372
Jun 3, 2021
Merged

[MOB-14372] Use XDM timestamp if present#198
nporter-adbe merged 2 commits intoadobe:devfrom
nporter-adbe:MOB-14372

Conversation

@nporter-adbe
Copy link
Copy Markdown
Contributor

@nporter-adbe nporter-adbe commented Jun 3, 2021

Description

When xdm.timestamp is provided in the experience event payload preserve this value, otherwise set the event timestamp as xdm.timestamp.
Also sets the event timestamp when the provided value is nil or empty or has another type other than String.

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.

@nporter-adbe nporter-adbe changed the title [MOB-4372] Use XDM timestamp if present [MOB-14372] Use XDM timestamp if present Jun 3, 2021
@codecov
Copy link
Copy Markdown

codecov bot commented Jun 3, 2021

Codecov Report

Merging #198 (40f81b8) into dev (b2086fd) will increase coverage by 0.02%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##              dev     #198      +/-   ##
==========================================
+ Coverage   94.29%   94.30%   +0.02%     
==========================================
  Files          26       26              
  Lines         910      913       +3     
==========================================
+ Hits          858      861       +3     
  Misses         52       52              

runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "# Type a script or drag a script file from your workspace to insert its path.\nif which swiftlint >/dev/null; then\n swiftlint lint --config ../.swiftlint.yml Sources\nelse\n echo \"warning: SwiftLint not installed, download from https://github.com/realm/SwiftLint\"\nfi\n\n";
shellScript = "# Type a script or drag a script file from your workspace to insert its path.\nif which swiftlint >/dev/null; then\n swiftlint lint --config ${SRCROOT}/.swiftlint.yml Sources\nelse\n echo \"warning: SwiftLint not installed, download from https://github.com/realm/SwiftLint\"\nfi\n\n";
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.

CI was failing stating it could not find the Swiftlint config file. Not sure why this change is needed all of a sudden.

@nporter-adbe nporter-adbe merged commit 20d0197 into adobe:dev Jun 3, 2021
@emdobrin emdobrin added the enhancement New feature or request label Jan 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants