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

Pub 2941 fixing missing logging of invalid bids #26

Conversation

nathan-pubx
Copy link
Collaborator

@nathan-pubx nathan-pubx commented Sep 13, 2024

Ticket: PUB-2941

This ticket addresses an issue in which an auction containing only invalid bids is not recorded.

Invalid bids are mapped to bidtype 1. Timed-out bids are mapped to bidtype 3. If any auction contains only bidtypes 1 or 3, it is now sent to pubx (assuming the relevant downsampling permits this).

There was a query as to whether or not auctions. with no bids at all were recorded. using the javascript array.prototype.every function on an empty array returns true, so this condition is satisfied. An additional test already verified this in prebid, but the test was quite obscure, so i tried to tidy it up a little.

Additional tests were added to confirm that auctions with timed out bids or invalid bids (as far as i can tell this only occurs due to pricing issues) are also recorded.

Copy link

Whoa there, partner! 🌵🤠 We wrangled some duplicated code in your PR:

Reducing code duplication by importing common functions from a library not only makes our code cleaner but also easier to maintain. Please move the common code from both files into a library and import it in each. We hate that we have to mention this, however, commits designed to hide from this utility by renaming variables or reordering an object are poor conduct. We will not look upon them kindly! Keep up the great work! 🚀

@pnhegde
Copy link

pnhegde commented Sep 18, 2024

@nathan-pubx It's showing all other non-related commits in this PR. Could you please rebase the upstream master before adding this commit to avoid duplicate commits?

@nathan-pubx nathan-pubx force-pushed the PUB-2941-fixing-missing-logging-of-invalid-bids branch from e10e7aa to e3ef74f Compare September 18, 2024 08:22
@nathan-pubx
Copy link
Collaborator Author

@nathan-pubx It's showing all other non-related commits in this PR. Could you please rebase the upstream master before adding this commit to avoid duplicate commits?

Sorry @pnhegde , that's done now. The branch was based on the prebid.js master branch, but now is based on the pubx master

@pnhegde pnhegde merged commit c01a8e9 into Pubx-ai:master Sep 23, 2024
4 checks passed
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