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

Added auction_id field to /settle and /reveal requests #3113

Merged
merged 14 commits into from
Nov 12, 2024

Conversation

mstrug
Copy link
Contributor

@mstrug mstrug commented Nov 6, 2024

Description

Added auction_id field to the /settle and /reveal API requests.
This feature was requested by one of the solvers team (ref).

Changes

Updated driver and autopilot DTOs, added code to use these new fields and added additional condition on driver side to verify if provided solution_id is competing in provided auction_id.
Refactored driver tests to support new fields.

How to test

Added new scenario to driver_handles_solutions_based_on_id() test which validates error on wrong auction_id specified (success cases are already validated by other scenarios in this test).

@mstrug mstrug marked this pull request as ready for review November 8, 2024 17:54
@mstrug mstrug requested a review from a team as a code owner November 8, 2024 17:54
Copy link
Contributor

@MartinquaXD MartinquaXD left a comment

Choose a reason for hiding this comment

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

Looks alright to me (modulo some nits).

crates/driver/src/infra/api/routes/settle/dto/solution.rs Outdated Show resolved Hide resolved
crates/autopilot/src/infra/solvers/dto/reveal.rs Outdated Show resolved Hide resolved
crates/autopilot/src/infra/solvers/dto/settle.rs Outdated Show resolved Hide resolved
crates/driver/src/tests/cases/parallel_auctions.rs Outdated Show resolved Hide resolved
crates/driver/src/tests/setup/mod.rs Show resolved Hide resolved
crates/driver/src/tests/setup/mod.rs Show resolved Hide resolved
crates/driver/src/tests/setup/solver.rs Outdated Show resolved Hide resolved
@mstrug mstrug merged commit 5671152 into main Nov 12, 2024
11 checks passed
@mstrug mstrug deleted the api/driver-add-auction-id branch November 12, 2024 11:58
@github-actions github-actions bot locked and limited conversation to collaborators Nov 12, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants