Skip to content

Extend auction system with item bidding, instant complete, and directed auctions#158

Open
Calm0 wants to merge 4 commits into
mainfrom
nabil-extend-auction-system
Open

Extend auction system with item bidding, instant complete, and directed auctions#158
Calm0 wants to merge 4 commits into
mainfrom
nabil-extend-auction-system

Conversation

@Calm0
Copy link
Copy Markdown
Member

@Calm0 Calm0 commented May 21, 2026

No description provided.

@Calm0 Calm0 requested review from a team and Copilot May 21, 2026 21:48
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Extends the auction system’s API/contracts to support item-based bidding, directed (invite-only) auctions, and an “instant complete” (buyout-triggered completion) behavior across templates and auction instances.

Changes:

  • Expanded AuctionBidAmount to support item requirements/offers via item_counts, instance_ids, and resolved items.
  • Added “instant complete” behavior flags to auction templates and auctions, and added directed-auction visibility controls (allowed_user_ids, directed_at_me).
  • Updated Go auctions system config and public interface signatures to expose the new filtering/creation capabilities.

Reviewed changes

Copilot reviewed 3 out of 4 changed files in this pull request and generated 3 comments.

File Description
hiro.proto Extends auction/bid/claim/list/create messages to add item bidding, instant-complete, and directed-auction fields.
hiro-openapi.yml Mirrors the proto contract additions in the OpenAPI schemas for clients/codegen.
auctions.go Adds new config fields and updates the public AuctionsSystem interface to accept directed-auction parameters.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread hiro-openapi.yml
Comment thread auctions.go
Comment thread auctions.go
Copy link
Copy Markdown
Member

@sesposito sesposito left a comment

Choose a reason for hiding this comment

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

Left a couple of naming suggestions, @tolgatolgay and @novabyte wdyt on these naming changes?

Comment thread hiro.proto
// User IDs of directed users that are allowed to see and bid on this auction, if any.
repeated string allowed_user_ids = 31;
// Whether the auction should be immediately completed if a bid meets the buyout price.
bool instant_complete = 32;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Perhaps immediate_buyout could be more descriptive?

Comment thread hiro.proto
// Cursor to use for retrieving the next page of results.
string cursor = 4;
// If true, only returns auctions that the user is directly allowed to see and bid on, by being included in the allowed users list for directed auctions.
bool directed_at_me = 5;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

allowed_only maybe plays better with the counterpart allowed_user_ids?

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.

3 participants