Skip to content

Conversation

@apata
Copy link
Contributor

@apata apata commented Jan 16, 2025

Changes

This PR introduces functions that handle expanding segments in queries to constituent filters.

Tests

  • Automated tests have been added

Changelog

  • This PR does not make a user-facing change

Documentation

  • This change does not need a documentation update

Dark mode

  • This PR does not change the UI

@apata apata force-pushed the saved-segments/expand-segments-in-query branch from 1bbe5a9 to 13a843d Compare January 16, 2025 09:12
@apata apata requested a review from macobo January 16, 2025 09:12
@apata apata force-pushed the saved-segments/expand-segments-in-query branch from 13a843d to c46ac4c Compare January 16, 2025 09:15
end

defp traverse(filters, depth \\ -1) do
def traverse(filters, depth \\ -1) do
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Annoyingly, usages of this as-is is going to cause annoying conflicts with #4980.

To reduce headaches depending on the order of the merge I suggest copying the implementation from that PR and maybe adding a default to state/state_transformer.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we cross that bridge when we come to it?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yup - just wanted to point out an annoyance you might run into trying to get this merged.

@apata apata force-pushed the saved-segments/expand-segments-in-query branch from c78b169 to d25d088 Compare January 20, 2025 11:01
@apata apata changed the base branch from saved-segments/refactor-to-model to master January 21, 2025 11:09
@apata apata force-pushed the saved-segments/expand-segments-in-query branch from 72f9a90 to 2cd949b Compare January 21, 2025 11:27
@apata apata added this pull request to the merge queue Jan 21, 2025
Merged via the queue into master with commit f0104cb Jan 21, 2025
8 checks passed
@macobo macobo deleted the saved-segments/expand-segments-in-query branch January 21, 2025 11:43
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.

4 participants