Skip to content
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

Merged
merged 5 commits into from
Oct 27, 2023

Conversation

evantk91
Copy link
Contributor

@evantk91 evantk91 commented Oct 25, 2023

🔹 Jira Ticket(s) if any

✏️ Description

This pull request updates the endpoint to align with the backend changes. No updates to the payload, but will align with BE if any changes are necessary.

@evantk91 evantk91 changed the base branch from master to embedded October 25, 2023 19:07
Copy link
Member

@Ayyanchira Ayyanchira left a 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,
Copy link
Member

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

Copy link
Contributor Author

@evantk91 evantk91 Oct 27, 2023

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
Copy link
Member

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.

@evantk91 evantk91 merged commit 6ad95ef into embedded Oct 27, 2023
3 of 4 checks passed
@evantk91 evantk91 deleted the evan/MOB-7218-impression-tracking-rework branch October 27, 2023 23:36
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.

2 participants