Repository navigation
Feedback-rapport voor triage via CLI-script (#42) - #43
Merged
Merged
Conversation
scripts/feedback_report.py print een feedback-rapport uit de SQLite-DB: counters per rating (+ per week), daarna de negatieve feedback (vraag/antwoord/toelichting) oudste eerst. Met --fetch --nas-host haalt het via scp een snapshot van de NAS-DB op naar een tempfile, checkt PRAGMA quick_check en ruimt het temp-bestand op — niets wordt in de repo opgeslagen. Ruwe feedback komt nooit in git/tickets (repo is publiek); permanente vastlegging alleen geanonimiseerd in LEARNINGS.md. - tests/test_feedback_report.py: counters, week-buckets, sortering, integriteitscheck, scp-foutafhandeling, opruimen tempfile - docs/how-to/feedback-triage.md + index: usage en privacy-afspraken - GLOSSARY.md: beheerder-entry verwijst naar het CLI-script als tussenoplossing (permanent: /admin/feedback) Getest: pytest tests app/tests — 121 passed. Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe <[email protected]>
scp/sftp ziet /volume1 op de Synology niet (sftp-chroot), waardoor `--fetch` faalde met 'No such file or directory'. Het script gebruikt nu het ssh-shellkanaal: server-side `sqlite3 .backup` naar een .feedback-snapshot.db naast de DB, `cat` naar een lokaal tempfile, PRAGMA quick_check, en beide snapshots opruimen. Daarnaast crasht printen niet meer op de cp1252-console (stdout -> utf-8/replace). Geverifieerd tegen nas.fritz.box: rapport met 11 rows opgehaald, remote data-dir bevat daarna alleen weer wtchat.db. Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe <[email protected]>
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.
Closes #42
Wat
scripts/feedback_report.pytoont feedback uit de SQLite-DB op scherm: eerst counters (per rating, plus per week), daarna de triage-lijst van negatieve feedback (vraag/antwoord/toelichting), oudste eerst.Hoe
--db app\data\wtchat.db--fetch --nas-host <ssh-target>— scp naar een tempfile,PRAGMA quick_check, rapport printen, tempfile opruimen. Niets wordt in de repo opgeslagen.Privacy (beslist in de grill-sessie)
/admin/feedbackblijft de geplande permanente oplossing.LEARNINGS.md.Checklist
pytest tests app/testsslaagt (121 passed)tests/test_feedback_report.py, 15 tests)docs/how-to/feedback-triage.md+ index; GLOSSARY-aanpassing (beheerder → CLI als tussenoplossing)