-
Notifications
You must be signed in to change notification settings - Fork 29
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
[MOB-7218] impression tracking rework #650
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall this PR looks good as it replaces the string with Long. But this might cause us some trouble in cases when data has to be passed to backend or typecasted. There could be loss in precision which might lead to incorrect placementIds being referenced. However, this is still good and we have to be mindful to use strings if at all such problems occur
@@ -1,12 +1,12 @@ | |||
{ | |||
"placements": [ | |||
{ | |||
"placementId": "0", | |||
"placementId": 411, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should have a really long value here for testing purpose. I worry if there will be some data loss in json conversion or when requests are to be made and we loose the precision of the long
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hm true since the json does not allow for longs. We will have to keep this in mind. Merging for now. Will revisit later.
@@ -205,7 +205,7 @@ class IterableEmbeddedPlacementTest { | |||
|
|||
val embeddedMessage = IterableEmbeddedMessage(embeddedMessageMetadata, embeddedMessageElements, customPayload) | |||
|
|||
val placementId: String = "0" | |||
val placementId: Long = 411L |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I hope this 'L' doesnt cause much trouble in future. If it does, it will be wise to typecast all placementId into string.
🔹 Jira Ticket(s) if any
✏️ Description