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

Visx bid adapter: import utilities and retrieve data from user on ortb2 #11860

Conversation

Goncakkd
Copy link
Contributor

Type of change

  • Bugfix

  • Feature

  • New bidder adapter

  • Updated bidder adapter

  • Code style update (formatting, local variables)

  • Refactoring (no functional changes, no api changes)

  • Build related changes

  • CI related changes

  • Does this change affect user-facing APIs or examples documented on http://prebid.org?

  • Other

Description of change

Retrieved and sent user data (for getting topics data)

Other information

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. Keep up the great work! 🚀

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. Keep up the great work! 🚀

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. Keep up the great work! 🚀

@Goncakkd Goncakkd force-pushed the AF-3740-access-retrieved-google-topics-signals-from-topics-api branch from 4233436 to 1f8216f Compare June 25, 2024 11:55
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. Keep up the great work! 🚀

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. Keep up the great work! 🚀

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. Keep up the great work! 🚀

@patmmccann patmmccann marked this pull request as draft June 25, 2024 23:56
@Goncakkd
Copy link
Contributor Author

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. Keep up the great work! 🚀

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. Keep up the great work! 🚀

Hello, check for duplicated code prevents us to merge it. Touching the code of the other bid adapters doesnot make sense. Can you please help us?

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. Keep up the great work! 🚀

@Goncakkd Goncakkd marked this pull request as ready for review June 26, 2024 09:13
…trieved-google-topics-signals-from-topics-api
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. Keep up the great work! 🚀

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. Keep up the great work! 🚀

src/utils.js Outdated
@@ -1231,3 +1231,14 @@ export function hasNonSerializableProperty(obj, checkedObjects = new Set()) {
}
return false;
}

export function getBidFromResponse(respItem, LOG_ERROR_MESS) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

can you put this in /libraries/processResponse/index.js instead? we don't need it in core utils

}
};
}
if (user) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

please cover this behavior in a test so you can be confident it will not break. Thanks!

Copy link
Collaborator

@patmmccann patmmccann left a comment

Choose a reason for hiding this comment

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

Please add one test and use /libraries instead of utils for the moved function. Thanks!

@patmmccann patmmccann self-assigned this Jun 27, 2024
@patmmccann patmmccann linked an issue Jun 27, 2024 that may be closed by this pull request
@patmmccann patmmccann changed the title AF-3740 retrieved topics data from user on ortb2 Visx bid adapter: import utilities and retrieve data from user on ortb2 Jun 27, 2024
@patmmccann
Copy link
Collaborator

Feel free to ignore non visx issues!

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. Keep up the great work! 🚀

@Goncakkd
Copy link
Contributor Author

Feel free to ignore non visx issues!

How can i ignore them? Merging is blocked because of this.

@patmmccann
Copy link
Collaborator

I'm in charge of the merge, I can override

@patmmccann patmmccann merged commit ca24c39 into prebid:master Jun 28, 2024
4 of 5 checks passed
DecayConstant pushed a commit to mediavine/Prebid.js that referenced this pull request Jul 18, 2024
…b2 (prebid#11860)

* AF-3740 retrieved topics data from user on ortb2

* AF-3740 kept old user data

* AF-3740 added some checks for user data

* AF-3740 used mergeDeep for merging user objects

* AF-3740 provided unit tests for ortb2 data

* AF-3740 moved some functionality to utils and used for avoiding duplication

* AF-3740 provided unit tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Visx: Duplication check results
2 participants