Skip to content

[Issue]: Price lookup by date #25

Closed
Closed

Description

@MariyaSamrout

Branch Name

feature/25-price-lookup-by-date

Task

Description
Add the logic that returns the price in effect for a food item on a given date. This is what the donation value calculation will rely on.

Scope

  • Service method: get price for item X on date Y
  • API endpoint to read the price history of an item
  • Clear behavior when no price exists for that date
  • Unit tests, including edge cases (exact effective date, date before the first price)

Acceptance Criteria

  • The correct price is returned for any given date
  • A date before the first price returns a clear error, not a wrong value
  • Tests cover the edge cases
  • API endpoint for the price history is present

Checklist

  • I have checked for duplicate issues.
  • I have assigned the issue to the correct project board.
  • I have tagged the issue properly.

Code of Conduct

  • I agree to follow this project's Code of Conduct

Activity

  1. added this to the Sprint - 2 milestone on Oct 25, 2026
  2. lauriechammah commented on Oct 26, 2026

    @lauriechammah
    Collaborator

    Review comments:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions