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

rm-hull / fuel-prices-api / 22687110884

04 Mar 2026 08:08PM UTC coverage: 18.692% (-0.1%) from 18.796%
22687110884

Pull #22

github

rm-hull
feat: add support for incremental data fetching

Introduces a `--full-refresh` CLI flag and logic to fetch only data
updated since the last successful request using the
`effective-start-timestamp` query parameter.

*   Adds `fullRefresh` toggle to `fuelPricesManager`.
*   Updates `ApiServer` and `bootstrap` to propagate the new setting.
*   Forces full refresh for the `import` command.
*   Conditionally includes `effective-start-timestamp` in API calls.

```mermaid
sequenceDiagram
    participant CLI as CLI (main.go)
    participant Cmd as API/Import Command
    participant Client as FuelPricesClient
    participant Gov as GOV.UK API

    CLI->>Cmd: Execute with fullRefresh flag
    Cmd->>Client: NewFuelPricesClient(..., fullRefresh)
    Client->>Client: getEffectiveStartTimestamp()
    alt !fullRefresh AND lastFetch exists
        Client->>Gov: GET /path?effective-start-timestamp=...
    else
        Client->>Gov: GET /path
    end
```
Pull Request #22: feat: add support for incremental data fetching

0 of 22 new or added lines in 5 files covered. (0.0%)

32 existing lines in 1 file now uncovered.

203 of 1086 relevant lines covered (18.69%)

0.2 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/cmd/api_server.go


Source Not Available

STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc