Flagsmith / Flagsmith/flagsmith-sql-flag-engine
RE2-unsafe regex patterns: audit production segments and decide fallback policy
- Vorherrschende Sprache
- Python
- Sterne
- 1
- Forks
- 0
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
The translator returns `None` for any `REGEX` condition whose pattern contains:
- Backreferences (`\1`–`\9`)
- Lookarounds (`(?=`, `(?!`, `(?<=`, `(?
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Rechercherichtung
Start with `_RE2_UNSAFE` in `src/flagsmith_sql_flag_engine/translator.py` and inspect the engine-test-data suite. Run the proposed `REGEXP_LIKE` audit against the segments table’s `rules` JSON column to measure usage of backreferences and lookarounds. Done means the prevalence is recorded, a fallback policy is chosen, and the corresponding behavior is implemented and validated.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- python, sql
- Bereich
- backend-api-design, databases
- Issue-Typ
- Feature
- Schwierigkeit
- 5/5
- Geschätzter Aufwand
- Über eine Woche
- Aktivitätsstatus
- Ruhig
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 45/100