-
Notifications
You must be signed in to change notification settings - Fork 732
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
Update datablocks adapter #2838
Conversation
Remove dynamic domain with static domain
@jmayor requesting to also update server urls mentioned in json tests and test files
|
@@ -1,4 +1,4 @@ | |||
endpoint: "http://{{.Host}}/openrtb2?sid={{.SourceId}}" | |||
endpoint: "http://pbserver.dblks.net/openrtb2?sid={{.SourceId}}" |
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.
verified that url is reachable
curl -i http://pbserver.dblks.net/openrtb2
HTTP/1.1 404 Wrong request type: need POST
Server: nginx/1.14.1
Date: Tue, 13 Jun 2023 05:54:31 GMT
Content-Type: text/plain; charset=UTF-8
Content-Length: 35
Connection: keep-alive
X-Fritter: 5.1-5.1-20230411.225543 hashx=8.0
X-Request: F357728-0/S0-0
x-first: good
Wrong request type. Must be POST.
@jmayor Please take a look at the comment by @onkarvhanumante |
@jmayor could you address above comment |
@jmayor reminder to help with addressing comment |
Update test url
Sorry guys - I was travelling and away from internet access. I just committed a change to address it |
@jmayor Please update the server url used in the JSON tests to fix the failing tests |
@jmayor tests are failing with following error
|
@jmayor tests on PR are failing with following error. Reminder to fix it so we can merge this PR
|
Sorry for the delay - I am on vacation in a very remote area with very
little to no internet access. I will address this early next week when I
am back
…On Thu, Jul 27, 2023 at 7:24 AM Onkar Hanumante ***@***.***> wrote:
@jmayor <https:/jmayor> tests on PR are failing with
following error. Reminder to fix it so we can merge this PR
gofmt needs to be run, 1 files have issues. Below is a list of files to review:
openrtb_ext/imp_datablocks.go
—
Reply to this email directly, view it on GitHub
<#2838 (comment)>,
or unsubscribe
<https:/notifications/unsubscribe-auth/AAEX5KGD2CZYPV6R5PJQZDLXSJFVJANCNFSM6AAAAAAZDVDAQI>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
@jmayor ping to move this PR forward |
The checks are failing because |
Appreciate the follow up and patience I just pushed a fix |
@jmayor, jmayor:master feature branch is not in sync with prebid server master. Due to which Adapter code coverage and Adapter semgrep checks are failing. Requesting to sync feature branch with updated master. |
Code coverage summaryNote:
datablocksRefer here for heat map coverage report
|
@onkarvhanumante Ok - looks like it passed all the tests now |
}, | ||
"host": { | ||
"type": "string", | ||
"description": "Network Host to request from" | ||
} | ||
}, | ||
"required": ["host", "sourceId"] | ||
"required": ["sourceId"] |
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.
@jmayor this might be a breaking change. Should scenario where incoming auction request still has host
. Prebid uses fail fast strategy. For example, if incoming auction request mentions multiple bidders. One of them is datablocks and has host
param. Here request will fail in validation phase and entire auction will get aborted. This seems unfair for other bidders who are part of auction.
Therefore, consider having some transition period before removing host
param. Giving enough opportunity to prebid server hosts/ publisher to make necessary change.
Recommended strategy is to not remove host
param from the bidder-param and and required should only have sourceId. This will make host
an optional param and can be removed after transition period
...
"host": {
"type": "string",
"description": "Deprecated, Network Host to request from"
}
},
"required": ["sourceId"]
also should create docs pr to remove host
param
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.
There is no issue with removing a parameter. If a request is received with the old parameter, that value will simply be ignored and Prebid Server will be happy. This becomes a problem for adding a new required field.
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.
@SyntaxNode that is what I assumed - we should be good to go
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.
The host
parameter is already listed as optional. This is ok.
I'm going to assume this PR will be merged soon enough that the datablocks adapter will be part of PBS 2.0. Thanks for the work @jmayor
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.
@bretg Thanks for your patience
Remove dynamic domain with static domain