Smarthub alias vimayx
Type of change
- [x] Updated bidder adapter
Description of change
add VimayX alias
Other information
docs PR here https://github.com/prebid/prebid.github.io/pull/5474
Whoa there, partner! 🌵🤠 We wrangled some duplicated code in your PR:
modules/smarthubBidAdapter.jshas 16 duplicated lines withmodules/visiblemeasuresBidAdapter.jsmodules/smarthubBidAdapter.jshas 23 duplicated lines withmodules/visiblemeasuresBidAdapter.jsmodules/smarthubBidAdapter.jshas 6 duplicated lines withmodules/visiblemeasuresBidAdapter.jsmodules/smarthubBidAdapter.jshas 14 duplicated lines withmodules/visiblemeasuresBidAdapter.jsmodules/smarthubBidAdapter.jshas 18 duplicated lines withmodules/visiblemeasuresBidAdapter.jsmodules/smarthubBidAdapter.jshas 17 duplicated lines withmodules/visiblemeasuresBidAdapter.jsmodules/beyondmediaBidAdapter.jshas 95 duplicated lines withmodules/smarthubBidAdapter.jsmodules/axisBidAdapter.jshas 55 duplicated lines withmodules/smarthubBidAdapter.js
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! 🚀
Hi @SmartHubSolutions , it appears several bid adapters are clones with yours. Could you clear up the duplication warnings with imports?
It looks like #11854 could be very useful to you, getPlacementReqData(bid) for example is available now in an import
Whoa there, partner! 🌵🤠 We wrangled some duplicated code in your PR:
modules/smarthubBidAdapter.jshas 13 duplicated lines withlibraries/teqblazeUtils/bidderUtils.jsmodules/smarthubBidAdapter.jshas 14 duplicated lines withlibraries/teqblazeUtils/bidderUtils.jsmodules/redtramBidAdapter.jshas 16 duplicated lines withmodules/smarthubBidAdapter.jsmodules/loganBidAdapter.jshas 15 duplicated lines withmodules/smarthubBidAdapter.jsmodules/edge226BidAdapter.jshas 16 duplicated lines withmodules/smarthubBidAdapter.jsmodules/edge226BidAdapter.jshas 22 duplicated lines withmodules/smarthubBidAdapter.jsmodules/edge226BidAdapter.jshas 6 duplicated lines withmodules/smarthubBidAdapter.jsmodules/edge226BidAdapter.jshas 15 duplicated lines withmodules/smarthubBidAdapter.js
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! 🚀
@SmartHubSolutions can you please add docs for this new adapter into our docs repo please?
https://github.com/prebid/prebid.github.io
@ChrisHuie added docs PR https://github.com/prebid/prebid.github.io/pull/5474
@patmmccann made code update for remove dublicates
Hi @SmartHubSolutions it appears your changes are designed to fool the detection instead of improve the code
Hi @patmmccann, You're right, I refactored the code to pass the duplicate check. I've looked through all the code and unfortunately I don't see an option to import functions from the Techblast library as they are incompatible with our environment. But in the meantime, I modified some functions and some functions moved outside the spec object to make the code easier to understand.
@SmartHubSolutions commits of this nature are a conduct issue, you're making our code base worse to hide from our code improvement suggestion utility. Please squash this commit immediately and please expand on why you cannot import code that is identical to yours and already in a library
Tread carefully! This PR adds 1 linter error (possibly disabled through directives):
modules/smarthubBidAdapter.js(+1 error)
I have demonstrated the imports in the pr; please revert your commits to hide our concerns under the proverbial rug before we can proceed.
Hi @patmmccann,
after your updates the test fails.
I run the tests with the following command gulp test --file test/spec/modules/smarthubBidAdapter_spec.js
I have also prepared an explanation for code incompatibility, please see the attached file
Explaining the differences.pdf
Whoa there, partner! 🌵🤠 We wrangled some duplicated code in your PR:
modules/vidoomyBidAdapter.jshas 9 duplicated lines withlibraries/teqblazeUtils/bidderUtils.jsmodules/redtramBidAdapter.jshas 9 duplicated lines withlibraries/teqblazeUtils/bidderUtils.jsmodules/edge226BidAdapter.jshas 18 duplicated lines withlibraries/teqblazeUtils/bidderUtils.jsmodules/edge226BidAdapter.jshas 27 duplicated lines withlibraries/teqblazeUtils/bidderUtils.jsmodules/edge226BidAdapter.jshas 13 duplicated lines withlibraries/teqblazeUtils/bidderUtils.jsmodules/colossussspBidAdapter.jshas 8 duplicated lines withlibraries/teqblazeUtils/bidderUtils.jsmodules/colossussspBidAdapter.jshas 8 duplicated lines withlibraries/teqblazeUtils/bidderUtils.jsmodules/colossussspBidAdapter.jshas 11 duplicated lines withlibraries/teqblazeUtils/bidderUtils.js
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! 🚀
@SmartHubSolutions - hoping you won't mind, I have updated this PR to reuse the teqblaze utils. Of note:
- I modified the shared utils slightly to enable you to check for
netRevenueon server responses, but I'm wondering if that's actually a peculiarity of your stack or only of your adapter. Should it be done for everyone? (@MaksymTeqBlaze ?) - your tests assumed that
bidderRequest.gdprConsentwould be a string, which is not the case. I trusted the shared utils in that your endpoint only expects to getgdpr.consentString. - I think what you were doing in
buildRequestsis splitting bids by partner, but otherwise following the same pattern that's in the shared utils for each partner.
Whoa there, partner! 🌵🤠 We wrangled some duplicated code in your PR:
modules/vidoomyBidAdapter.jshas 9 duplicated lines withlibraries/teqblazeUtils/bidderUtils.jsmodules/redtramBidAdapter.jshas 9 duplicated lines withlibraries/teqblazeUtils/bidderUtils.jsmodules/edge226BidAdapter.jshas 18 duplicated lines withlibraries/teqblazeUtils/bidderUtils.jsmodules/edge226BidAdapter.jshas 27 duplicated lines withlibraries/teqblazeUtils/bidderUtils.jsmodules/edge226BidAdapter.jshas 13 duplicated lines withlibraries/teqblazeUtils/bidderUtils.jsmodules/colossussspBidAdapter.jshas 8 duplicated lines withlibraries/teqblazeUtils/bidderUtils.jsmodules/colossussspBidAdapter.jshas 8 duplicated lines withlibraries/teqblazeUtils/bidderUtils.jsmodules/colossussspBidAdapter.jshas 11 duplicated lines withlibraries/teqblazeUtils/bidderUtils.js
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! 🚀
- I modified the shared utils slightly to enable you to check for
netRevenueon server responses, but I'm wondering if that's actually a peculiarity of your stack or only of your adapter. Should it be done for everyone? (@MaksymTeqBlaze ?)
I think the way you have done it is optimal; it allows us to add additional validation without possibly breaking other or older adapters.