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

add: update impression price and pause channel event #166

Merged
merged 5 commits into from
Jun 13, 2019

Conversation

samparsky
Copy link
Contributor

@samparsky samparsky commented Jun 1, 2019

Fixes #157 and #159

@samparsky samparsky force-pushed the 157-change-impression-price branch from c677d2f to 99cf2e8 Compare June 1, 2019 12:55
@samparsky samparsky requested a review from Ivshti June 2, 2019 19:03
@Ivshti Ivshti changed the title add: udpate impression price event add: update impression price event Jun 3, 2019
Copy link
Member

@Ivshti Ivshti left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the PR is OK, but I need to think more about this

test/prep-db/mongo.js Outdated Show resolved Hide resolved
services/sentry/eventAggregator.js Show resolved Hide resolved
@samparsky samparsky force-pushed the 157-change-impression-price branch 3 times, most recently from 78f7fb4 to 35156a6 Compare June 5, 2019 19:36
Copy link
Member

@Ivshti Ivshti left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we should also update channelPromise on throttledPersistAndReset, cause otherwise if we're running in cluster, we will never get the price updated

also it's a good idea to start applying the new price with the next aggregate, which will ensure more (not fully) deterministic behavior

that means that you should ONLY update the channelpromise there

@samparsky samparsky force-pushed the 157-change-impression-price branch from 35156a6 to 1afd1fb Compare June 11, 2019 09:41
@samparsky samparsky changed the title add: update impression price event add: update impression price and pause channel event Jun 11, 2019
@samparsky samparsky force-pushed the 157-change-impression-price branch 2 times, most recently from 34064b0 to 34d8264 Compare June 13, 2019 08:40
@samparsky samparsky force-pushed the 157-change-impression-price branch from 34d8264 to 670d705 Compare June 13, 2019 08:41
@Ivshti Ivshti self-requested a review June 13, 2019 18:17
@Ivshti Ivshti merged commit 0d58cd3 into AmbireTech:master Jun 13, 2019
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.

event to change the per-impression price
2 participants