Skip to content

fix(bill-progress): address remaining review comments after #56#57

Merged
aborruso merged 2 commits into
mainfrom
fix/pr56-residual-comments
Jul 11, 2026
Merged

fix(bill-progress): address remaining review comments after #56#57
aborruso merged 2 commits into
mainfrom
fix/pr56-residual-comments

Conversation

@aborruso

Copy link
Copy Markdown
Member

Addresses the residual high-signal review comments left open after #56.

Changes

  • improve branch-C empty hint to explicitly mention filter/pagination causes (keyword/date/limit/offset)
  • stabilize Camera timeline pagination ordering with ORDER BY ?date ?st
  • harden SPARQL string literal escaping for keyword via JSON.stringify (Senato + Camera paths)
  • clarify dateFrom/dateTo schema descriptions for dual semantics (Senato presentation date vs Camera status date)
  • update test expectation for the refined hint text

Notes

  • keeps command surface unchanged
  • focused follow-up to close residual comment debt without broad refactors

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings July 11, 2026 14:23
@aborruso
aborruso enabled auto-merge July 11, 2026 14:23
@greptile-apps

greptile-apps Bot commented Jul 11, 2026

Copy link
Copy Markdown

Greptile Summary

This PR tightens the bill-progress behavior after earlier review feedback. The main changes are:

  • Clearer empty-result guidance for Camera timeline filters and pagination.
  • Stable Camera timeline ordering with ORDER BY ?date ?st.
  • Safer SPARQL keyword literal escaping for Senato and Camera queries.
  • Clearer dateFrom and dateTo descriptions for Senato and Camera semantics.
  • Updated test coverage for the refined Camera empty-result hint.

Important Files Changed

Filename Overview
src/tools/bill-progress.ts Updates Camera timeline hints, pagination ordering, keyword literal escaping, and date filter descriptions.
src/tools/tools.test.ts Updates the Camera empty-result hint expectation.
LOG.md Records the follow-up bill-progress fixes.

Reviews (2): Last reviewed commit: "fix(bill-progress): letterale SPARQL rob..." | Re-trigger Greptile

Comment thread src/tools/bill-progress.ts Outdated
Comment thread src/tools/bill-progress.ts Outdated

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Follow-up refinement to bill-progress (MCP tool + CLI) to reduce ambiguity on empty Camera timelines, stabilize pagination ordering for Camera timeline queries, and harden SPARQL keyword escaping—plus aligning tests and changelog accordingly.

Changes:

  • Improved Camera-branch empty hint to explicitly call out that filters/pagination can exclude all rows.
  • Stabilized Camera timeline pagination ordering by adding a tie-breaker (ORDER BY ?date ?st) and hardened SPARQL string literal escaping for keyword via JSON.stringify.
  • Updated integration test expectations and added a LOG.md entry documenting the follow-up.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
src/tools/bill-progress.ts Improves hints, keyword escaping, and Camera timeline query ordering for more deterministic pagination.
src/tools/tools.test.ts Updates expected hint text to match the refined Camera empty-hint messaging.
LOG.md Documents the follow-up changes under the 2026-07-11 entry.

Comment thread src/tools/bill-progress.ts Outdated
Review PR #57:
- sparqlStringLiteral non usa più JSON.stringify (emette \uXXXX per i controlli,
  rifiutato da alcuni parser SPARQL): escapa solo \, ", newline, CR come da
  grammatica STRING_LITERAL2. Verificato: letterale con apice → HTTP 200.
- cameraIterTimeline: ?st non è più proiettato in SELECT DISTINCT (cambiava la
  chiave di dedup → possibili righe visivamente duplicate); resta solo come
  tie-breaker in ORDER BY. Virtuoso accetta ORDER BY su var non proiettata.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@aborruso
aborruso requested a review from Copilot July 11, 2026 14:32
@aborruso
aborruso merged commit 3603b8a into main Jul 11, 2026
3 of 4 checks passed
@aborruso
aborruso deleted the fix/pr56-residual-comments branch July 11, 2026 14:33

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

Comment on lines 112 to +113
const cameraEmptyHint =
"Nessuno stato iter Camera trovato per l'atto richiesto. Verifica il pairing legislature+number (o l'URI) e non dedurre assenza di iter dal vuoto: senza evidenza non inventare stati, date o conclusioni.";
"Nessuno stato iter Camera trovato per l'atto richiesto. Verifica il pairing legislature+number (o l'URI) e, se hai usato keyword/date/limit/offset, prova ad allargare i filtri o la paginazione. Non dedurre assenza di iter dal vuoto: senza evidenza non inventare stati, date o conclusioni.";
Comment thread LOG.md

## 2026-07-11

- **follow-up residuale commenti PR #56 (`bill-progress`)**: migliorato l'hint del ramo Camera su risultato vuoto (ora segnala esplicitamente che `keyword/date/limit/offset` possono escludere tutte le righe), ordinamento timeline Camera reso stabile per paginazione (`ORDER BY ?date ?st`), escape robusto dei literal SPARQL con `JSON.stringify` per `keyword` (Senato + Camera), e descrizioni `dateFrom/dateTo` chiarite sui due significati (presentazione Senato vs data stato-iter Camera).
aborruso added a commit that referenced this pull request Jul 11, 2026
fix(bill-progress): hint e LOG — commenti Copilot post-merge #57
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.

2 participants