• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

rm-hull / fuel-prices-api / 22067620843
20%

Build:
DEFAULT BRANCH: main
Ran 16 Feb 2026 03:01PM UTC
Jobs 1
Files 8
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

16 Feb 2026 03:00PM UTC coverage: 0.0%. Remained the same
22067620843

push

github

web-flow
feat: Allow limiting price history per fuel type (#6)

* feat: Allow limiting price history per fuel type

This change introduces the ability to restrict the number of
historical fuel price records returned for each distinct
fuel type during a spatial search.

A new optional query parameter, `limit`, is added to the
search endpoint:

*   The parameter controls how many of the most recent price
    updates are returned for each specific fuel type at a
    given station.
*   The default limit is 1 (only the single most recent
    price per type).

The underlying SQL uses a window function partitioned by
`fuel_type` to enforce this limit efficiently in the
repository layer.

* Update internal/sql/search_prices.sql

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>

* style: Add `limit` parameter to HTTP request

Added the optional `limit=5` query parameter to the
`Search fuel prices by bounding box` test request.

This ensures the test script reflects common usage patterns,
especially when testing pagination or result size limits.

---------

Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>

0 of 14 new or added lines in 2 files covered. (0.0%)

0 of 611 relevant lines covered (0.0%)

0.0 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
4
0.0
0.0% internal/repository.go
10
0.0
0.0% internal/routes/search.go
Jobs
ID Job ID Ran Files Coverage
1 22067620843.1 16 Feb 2026 03:01PM UTC 8
0.0
GitHub Action Run
Source Files on build 22067620843
  • Tree
  • List 8
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 74c4654e on github
  • Prev Build on main (#22042684139)
  • Next Build on main (#22077498935)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc