-
Notifications
You must be signed in to change notification settings - Fork 781
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
New Adapter: Concert #3651
New Adapter: Concert #3651
Conversation
Code coverage summaryNote:
concertRefer here for heat map coverage report
|
@BrettBlox PR checks are failing due to |
Code coverage summaryNote:
concertRefer here for heat map coverage report
|
Code coverage summaryNote:
concertRefer here for heat map coverage report
|
adapters/concert/concert.go
Outdated
if responseData.StatusCode == http.StatusNoContent { | ||
return nil, nil | ||
} | ||
|
||
if responseData.StatusCode == http.StatusBadRequest { | ||
err := &errortypes.BadInput{ | ||
Message: "Unexpected status code: 400. Bad request from publisher. Run with request.debug = 1 for more info.", | ||
} | ||
return nil, []error{err} | ||
} | ||
|
||
if responseData.StatusCode != http.StatusOK { | ||
err := &errortypes.BadServerResponse{ | ||
Message: fmt.Sprintf("Unexpected status code: %d. Run with request.debug = 1 for more info.", responseData.StatusCode), | ||
} | ||
return nil, []error{err} | ||
} |
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.
This is correct. But you could also use -
if adapters.IsResponseStatusCodeNoContent(response) {
return nil, nil
}
if err := adapters.CheckResponseStatusCodeForErrors(response); err != nil {
return nil, []error{err}
}
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.
@BrettBlox This doesn't seem to have been implemented.
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.
@gargcreation1992 Correct. Is this change a requirement? Your previous comment made it seem like a suggested alternative and that both options were valid.
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.
It's not a requirement but I would highly recommend making this change.
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.
@gargcreation1992 done.
Code coverage summaryNote:
concertRefer here for heat map coverage report
|
Code coverage summaryNote:
concertRefer here for heat map coverage report
|
Code coverage summaryNote:
concertRefer here for heat map coverage report
|
Code coverage summaryNote:
concertRefer here for heat map coverage report
|
Code coverage summaryNote:
concertRefer here for heat map coverage report
|
* Boldwin: update maintainer email (prebid#3701) Co-authored-by: Wls-demo <[email protected]> * New Adapter: Concert (prebid#3651) * New Adapter: Driftpixel (prebid#3684) --------- Co-authored-by: Wls-demo <[email protected]> Co-authored-by: Wls-demo <[email protected]> Co-authored-by: Brett Bloxom <[email protected]> Co-authored-by: driftpixelai <[email protected]>
Associated documentation PR: prebid/prebid.github.io#5293