undef-engine 2026-02-19
Port fixes from Responsum for queries, regex, and E2E test selectors
6 files · 73+ · 33-

N+1 query optimization and regex compilation fix

2 files changed
  • screens.py Moved regex compilation to module level to avoid repeated recompilation on every request
  • timer.py Optimized N+1 query pattern with bulk lookups
  • Moved regex compilation to module level in the screens route to eliminate repeated recompilation on every request streamline internal
    1 file
    • screens.py
  • Optimized N+1 query pattern in the timer repository by batching sequential per-entity queries into bulk lookups streamline internal
    1 file
    • timer.py

E2E test selector updates

4 files changed
  • RegisterForm.tsx Added test IDs for stable selector targeting
  • flow-complete.spec.ts Updated registration form selectors to match current DOM
  • room-browsing.spec.ts Updated room browsing test IDs
  • test_screens_rich_parsing.py Added unit tests for screen parsing with new regex approach
  • Updated registration form E2E test selectors and added test IDs to RegisterForm.tsx for stable targeting qualify behavioral
    2 files
    • RegisterForm.tsx
    • flow-complete.spec.ts
  • Updated room browsing test IDs to align with current component rendering qualify internal
    1 file
    • room-browsing.spec.ts
  • Added unit tests for screens rich parsing qualify internal
    1 file
    • test_screens_rich_parsing.py