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

Capture and log bids rejected due to NBR 300 (Response-Rejected General) #3807

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

ashishshinde-pubm
Copy link
Contributor

No description provided.

Copy link
Contributor

@ShriprasadM ShriprasadM left a comment

Choose a reason for hiding this comment

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

@ashishshinde-pubm : Please checkout my review comments

Comment on lines 60 to 70
if ok, err := validateBid(bid, debug); ok {
ok, err := validateBid(bid, debug)
if ok {
validBids = append(validBids, bid)
} else if err != nil {
continue
}
if err != nil {
errs = append(errs, err)
}
Copy link
Contributor

Choose a reason for hiding this comment

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

@ashishshinde-pubm : Do you see any challenges with following code snippet?

if ok, err := validateBid(bid, debug); ok {
   validBids = append(validBids, bid)
} else if err != nil {
   errs = append(errs, err)
   seatNonBids.addBid(bid, int(ResponseRejectedGeneral), seatBid.Seat) // report seat non bid
}

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@ShriprasadM when bid.Bid.Price < 0.0 , validateBid function returns ok=false and err=nil
In this case, we will miss to generate nonBid

Copy link
Contributor

@ShriprasadM ShriprasadM Jul 16, 2024

Choose a reason for hiding this comment

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

@ashishshinde-pubm : how do you see following

if ok, err := validateBid(bid, debug); ok {
   validBids = append(validBids, bid)
}  else {
    seatNonBids.addBid(bid, int(ResponseRejectedGeneral), seatBid.Seat) // report seat non bid
    if err != nil {
        errs = append(errs, err)
    }
}

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

Copy link
Contributor

@ShriprasadM ShriprasadM left a comment

Choose a reason for hiding this comment

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

LGTM

@ashishshinde-pubm ashishshinde-pubm marked this pull request as ready for review August 2, 2024 08:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants