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

[BA] Setup participant skeletons for the B&A demo #411

Open
wants to merge 4 commits into
base: dev
Choose a base branch
from

Conversation

kevinkiklee
Copy link
Contributor

@kevinkiklee kevinkiklee commented Sep 27, 2024

Description

This PR sets up the participant skeletons for the B&A mixed-mode multi-seller demo

image

Component Seller X

Component Seller Y

Buyer X

Buyer Y

Affected services

  • Home
  • News
  • Shop
  • Travel
  • DSP
  • DSP-A
  • DSP-B
  • DSP-X
  • DSP-Y
  • SSP
  • SSP-A
  • SSP-B
  • SSP-X
  • SSP-Y
  • ALL

@kevinkiklee kevinkiklee self-assigned this Sep 27, 2024
@kevinkiklee kevinkiklee changed the title Setup participant skeletons for the B&A demo [DO NOT REVIEW] Setup participant skeletons for the B&A demo Sep 27, 2024
@kevinkiklee kevinkiklee changed the title [DO NOT REVIEW] Setup participant skeletons for the B&A demo Setup participant skeletons for the B&A demo Sep 30, 2024
@kevinkiklee kevinkiklee changed the title Setup participant skeletons for the B&A demo [BA] Setup participant skeletons for the B&A demo Sep 30, 2024
Copy link
Contributor

@Seburan Seburan left a 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.

@chasinandrew chasinandrew added the enhancement New feature or request label Oct 4, 2024
[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

This path depends on a
user-provided value
.

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

This path depends on a
user-provided value
.

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

This path depends on a
user-provided value
.

Choose a reason for hiding this comment

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

Same comment from earlier

Copy link

@chasinandrew chasinandrew left a 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`, {

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`, {

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`,

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}`, {

Choose a reason for hiding this comment

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

Same comment from earlier

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants