Skip to content

fix(rpc): distinguish false boolean attributes from missing#8190

Open
onewland wants to merge 1 commit into
masterfrom
fix/rpc-boolean-attribute-presence
Open

fix(rpc): distinguish false boolean attributes from missing#8190
onewland wants to merge 1 commit into
masterfrom
fix/rpc-boolean-attribute-presence

Conversation

@onewland

Copy link
Copy Markdown
Contributor

Summary

  • recognize boolean arrayElement expressions as map-backed RPC attributes
  • guard comparisons against the missing-key default when filtering for false
  • make boolean ExistsFilter check map-key presence
  • add expression and end-to-end coverage for true, false, and missing attributes

Tests

  • uv run pytest tests/web/rpc/test_common.py
  • uv run pytest tests/web/rpc/v1/test_trace_item_attribute_values_v1.py
  • uv run pytest tests/web/rpc/v1/test_endpoint_trace_item_table/test_endpoint_trace_item_table_logs.py
  • uv run ruff check snuba/web/rpc/common/common.py tests/web/rpc/test_common.py
  • uv run mypy snuba/web/rpc/common/common.py tests/web/rpc/test_common.py

@onewland
onewland requested review from a team as code owners July 16, 2026 15:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant