fix(votes): decodifica entità HTML in label/title/description#70
Merged
Conversation
description Camera arrivava con ' invece di apostrofo: votes.ts era l'unico tool a non applicare l'helper decodeHtml già esistente.
|
| Filename | Overview |
|---|---|
| src/tools/votes.ts | Applies existing HTML entity decoding to vote text fields without changing the rest of the row mapping flow. |
Reviews (1): Last reviewed commit: "fix(votes): decodifica entità HTML in la..." | Re-trigger Greptile
There was a problem hiding this comment.
Pull request overview
Questo PR allinea il tool votes (Camera) al resto della codebase applicando l’helper condiviso decodeHtml per ripulire/decodificare testo proveniente dall’endpoint LOD, evitando output con entità HTML doppio-escapate in label/title/description.
Changes:
- Import di
decodeHtmlinsrc/tools/votes.ts. - Decodifica selettiva dei campi testuali (
label,title,description) durante la normalizzazione delle righe risultanti.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
votes list(Camera) restituiva apostrofi come'invece di'inlabel/title/descriptionvotes.tsera l'unico tool a non applicare l'helperdecodeHtmlgià esistente e usato dabills.ts,bill-progress.ts,member-bills.ts, ecc.votes listcontro notizie reali (Cura Italia 2020, bilancio 2026)Test plan
npm run buildnode dist/cli.js votes list --date-from 2020-04-23 --date-to 2020-04-24 --legislature 18→all'emergenzacorrettonpm test -- --run: 172/174 passano; i 2 fallimenti sono susenato-votes(403 dall'endpoint Senato live, non collegati a questa modifica che tocca solo il tool Camera)🤖 Generated with Claude Code