-
Notifications
You must be signed in to change notification settings - Fork 42
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
[BA] Setup participant skeletons for the B&A demo #411
base: dev
Are you sure you want to change the base?
Conversation
309af99
to
6d09857
Compare
6d09857
to
06d810f
Compare
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.
i reviewed the addition of dsp-x, dsp-y, ssp-x and xxp-y. nothing is missing.
Looks good to me.
[BA] Setup B&A demo loading mechanism
async (req: Request, res: Response) => { | ||
const {useCaseName} = req.params; | ||
const title = 'DSP X - Join Ad Interest Group'; | ||
res.render(`uc-${useCaseName}/join-ad-interest-group`, { |
Check failure
Code scanning / CodeQL
Uncontrolled data used in path expression High
user-provided value
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.
Do we need the use case name to be a user provided value? I think it would be better to replace this with uc-ba
for now since this is the only use case relevant for DSP X and Y
async (req: Request, res: Response) => { | ||
const {useCaseName} = req.params; | ||
const title = 'DSP Y - Join Ad Interest Group'; | ||
res.render(`uc-${useCaseName}/join-ad-interest-group`, { |
Check failure
Code scanning / CodeQL
Uncontrolled data used in path expression High
user-provided value
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.
Same comment from earlier
app.get('/uc-:useCaseName', async (req: Request, res: Response) => { | ||
const {useCaseName} = req.params; | ||
|
||
res.render(`uc-${useCaseName}`, { |
Check failure
Code scanning / CodeQL
Uncontrolled data used in path expression High
user-provided value
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.
Same comment from earlier
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.
Requesting a small change that's called out by codeQL. Once resolved, LGTM
async (req: Request, res: Response) => { | ||
const {useCaseName} = req.params; | ||
const title = 'DSP X - Join Ad Interest Group'; | ||
res.render(`uc-${useCaseName}/join-ad-interest-group`, { |
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.
Do we need the use case name to be a user provided value? I think it would be better to replace this with uc-ba
for now since this is the only use case relevant for DSP X and Y
async (req: Request, res: Response) => { | ||
const {useCaseName} = req.params; | ||
const title = 'DSP Y - Join Ad Interest Group'; | ||
res.render(`uc-${useCaseName}/join-ad-interest-group`, { |
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.
Same comment from earlier
function buildBaInterestGroup(useCaseName: string, advertiser: string) { | ||
const imageCreative = new URL(`${DSP_Y_ORIGIN}ads`); | ||
const biddingLogicUrl = new URL( | ||
`${DSP_Y_ORIGIN}uc-${useCaseName}/js/bidding-logic.js`, |
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.
Can we change this to uc-ba
here too? Since this function is specific to B&A
app.get('/uc-:useCaseName', async (req: Request, res: Response) => { | ||
const {useCaseName} = req.params; | ||
|
||
res.render(`uc-${useCaseName}`, { |
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.
Same comment from earlier
Description
This PR sets up the participant skeletons for the B&A mixed-mode multi-seller demo
Component Seller X
Component Seller Y
Buyer X
Buyer Y
Affected services