Skip to content

ISSUE-950 | Add method to set extra properties on the UserInfo object#952

Merged
xgouchet merged 3 commits into
developfrom
unknown repository
Jun 21, 2022
Merged

ISSUE-950 | Add method to set extra properties on the UserInfo object#952
xgouchet merged 3 commits into
developfrom
unknown repository

Conversation

@ghost

@ghost ghost commented Jun 17, 2022

Copy link
Copy Markdown

What does this PR do?

Adds a method to set the additional properties on a user

issue raised here: #950

Motivation

Throughout our application, we have properties that we want to set at a point where it'd be inconvenient to also have to grab the user's name / email / id. being able to set properties on the fly for a user is a convenient method that exists in multiple other logging types of libraries / SDKs

Additional Notes

I wasn't able to get the sample project running on my M1 device (issue opened #951) - but I did add a call site to it. Please let me know if there is more documentation / usage that should be added!

Review checklist (to be filled by reviewers)

  • Feature or bugfix MUST have appropriate tests (unit, integration, e2e)
  • Make sure you discussed the feature or bugfix with the maintaining team in an Issue
  • Make sure each commit and the PR mention the Issue number (cf the CONTRIBUTING doc)

@ghost
ghost self-requested a review as a code owner June 17, 2022 16:14
@ghost ghost mentioned this pull request Jun 17, 2022
@xgouchet xgouchet added the size-small This PR is small sized label Jun 17, 2022
Comment thread dd-sdk-android/src/main/kotlin/com/datadog/android/Datadog.kt Outdated
@xgouchet

Copy link
Copy Markdown
Contributor

Thanks a lot for this PR, I added a few comments to ensure consistency with our guidelines and existing APIs

@ghost

ghost commented Jun 20, 2022

Copy link
Copy Markdown
Author

feedback should be addressed!

@ghost
ghost requested a review from xgouchet June 20, 2022 12:50

@xgouchet xgouchet left a comment

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.

Just a few nit picks regarding property based testing. Also can you make sure that the static analysis pass locally:

./gradlew clean detektAll ktlintCheckAll lintCheckAll

Comment thread dd-sdk-android/src/test/kotlin/com/datadog/android/utils/forge/Configurator.kt Outdated
Comment thread dd-sdk-android/src/test/kotlin/com/datadog/android/utils/forge/Configurator.kt Outdated
@ghost

ghost commented Jun 21, 2022

Copy link
Copy Markdown
Author

Verified static analysis passed locally 👍 I did run into this issue though (https://issuetracker.google.com/issues/206099937) - I upgraded the AGP version to 7.2.1 locally and that worked for me (and reverted before committing)

Other feedback should be addressed as well

@ghost
ghost requested a review from xgouchet June 21, 2022 12:01
@xgouchet
xgouchet merged commit 276e4d7 into DataDog:develop Jun 21, 2022
@ghost

ghost commented Jun 21, 2022

Copy link
Copy Markdown
Author

@xgouchet ty for merging 🙏 are you able to share when we might see this in a release for the SDK?

0xnm added a commit that referenced this pull request Jun 22, 2022
@0xnm 0xnm mentioned this pull request Jun 22, 2022
3 tasks
@xgouchet xgouchet added this to the 1.14.0 milestone Dec 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size-small This PR is small sized

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant