-
Notifications
You must be signed in to change notification settings - Fork 1
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
fix(bidcaching):remove teads from bidcaching #54
fix(bidcaching):remove teads from bidcaching #54
Conversation
src/targeting.js
Outdated
bidsToProcess = bidsToFilter.filter(bid => isBidSizeAllowed(bid, allowedSizes)); | ||
bidsToProcess = bidsToFilter | ||
.filter(bid => isBidSizeAllowed(bid, allowedSizes)) | ||
.filter(bid => !(isBidCached(bid) && getBidName(bid) === 'teads')); |
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 would set an array of blacklisted bidders in order to make it easier add new ones to the black list if we don't want to perform bid caching on them. Moreover, what do you think to gather it on a different function? Something like:
isBidAllowed = () => !(isBidCached(bid) && blacklistedCacheBidders.includes(getBidName(bid)))
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.
Besides that, we could add a test to cover it.
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.
Cool!
I approved it too early, we still need the tests 😅
No description provided.