-
Notifications
You must be signed in to change notification settings - Fork 11
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
AIP #6 impl #267
AIP #6 impl #267
Conversation
services/sentry/lib/eventReducer.js
Outdated
let aggr = { ...initialAggr } | ||
|
||
const ev = { ...event, ...session } // add session details (i.e country, device type etc) to event |
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.
why don't you just pass the session
to getPayout
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.
please answer this @samparsky
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 have changed it to pass session
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.
there are very repetitive parts - please fix
@@ -114,12 +114,23 @@ module.exports = { | |||
.keys() | |||
.pattern( | |||
/^(IMPRESSION|CLICK)$/, | |||
Joi.object({ min: numericString.default('0'), max: numericString.default('0') }) | |||
Joi.object({ min: numericString.required(), max: numericString.required() }) |
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.
why does this no longer have a default?
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.
This because if it has default '0', then the behavior becomes unreliable if an advertiser specifies one property and omits the next. e.g. specifies min
omits max
services/sentry/lib/eventReducer.js
Outdated
let aggr = { ...initialAggr } | ||
|
||
const ev = { ...event, ...session } // add session details (i.e country, device type etc) to event |
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.
please answer this @samparsky
Adds implementation of AIP#6 to validator