Auswertungen WP-Filter: Format-Mismatch zwischen UI und Backend #137
Labels
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: tobias/gwoe-antragspruefer#137
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Symptom
In
/?mode=auswertungendas WP-Dropdown filtert effektiv nichts bzw. liefert 0 Treffer, weil:?wahlperiode=18(nur die Zahl, ausdrucksache.split("/")[0])"NRW-WP18"-Format (mit BL-Prefix), weilwahlperiode_for(datum, bl)inapp/auswertungen.py::aggregate_matrixgenau diesen String erzeugt und vergleichtReproduktion
Fix-Optionen
bundesland + "-WP" + nummer. Nachteil: bei „Alle BL + WP18" gibts kein sinnvolles Mapping, weil WP18 in NRW ≠ WP18 in z.B. BY."18"→ Endswith-"WP18"-Match oder zweites Paramwahlperiode_nr. Nachteil: Ambiguität (WP18 in NRW ist 2022-2027, in anderen BL andere Zeiträume).Empfehlung: Option 3 (konzeptuell sauberste Lösung) plus kleines Info-Icon am Dropdown.
Bezug
Fix Option 3 deployed.
Verhalten:
allAssessments.filter(a => a.bundesland === selectedBl)→ nur relevante WPsoption.valuewird korrekt als"<BL>-WP<N>"gesetzt (z.B."NRW-WP18"), Format matcht Backendaggregate_matrixAnnahme: Drucksachen folgen dem Format
<WP>/<Nummer>überall. Das gilt für alle derzeit angebundenen BL laut Codebase. SN (XML-Import) nicht geprüft — falls abweichend, Folge-Ticket.Schließe.