You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix race condition, double join, LIKE injection, N+1 queries, and domain API surface in access rules
- Wrap create action in transaction with FOR UPDATE lock to prevent
concurrent inserts from violating cf:any exclusivity constraints
- Rescue Sequel::UniqueConstraintViolation to return 422 instead of 500
- Join routes table at most once when both route_guids and space_guids
filters are requested, preventing ambiguous column references
- Escape LIKE metacharacters (% and _) in selector_resource_guids filter
- Replace deprecated routes__column syntax with Sequel[:routes][:column]
- Remove per-row DB existence checks in AccessRulePresenter to eliminate
N+1 queries; relationship GUIDs are now included directly from selector
- Only include enforce_access_rules and access_rules_scope in domain
responses when enforce_access_rules is true
0 commit comments