Skip to content

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

Merged
Calm0 merged 8 commits into
mainfrom
nabil-extend-auction-system
Jun 2, 2026
Merged

Extend auction system with item bidding, instant complete, and directed auctions#158
Calm0 merged 8 commits into
mainfrom
nabil-extend-auction-system

Conversation

@Calm0

@Calm0 Calm0 commented May 21, 2026

Copy link
Copy Markdown
Member

No description provided.

@Calm0 Calm0 requested review from a team and Copilot May 21, 2026 21:48

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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

@sesposito sesposito left a comment

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.

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

Comment thread hiro.proto Outdated
// 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 Outdated
// 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?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I think direct_trade or allowed_for_direct_trade will be a better naming.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I think it's better to avoid mentioning direct trade because technically this can be used for things like team's only auction and friends auction and not just direct trades, so going for allowed_only

@Calm0 Calm0 force-pushed the nabil-extend-auction-system branch from 42c445d to 8bb0f2f Compare June 1, 2026 19:17
@Calm0 Calm0 merged commit 819c3aa into main Jun 2, 2026
2 checks passed
@Calm0 Calm0 deleted the nabil-extend-auction-system branch June 2, 2026 10:33
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.

4 participants