Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom filter logic helper #986

Merged
merged 7 commits into from
Feb 8, 2024
Merged

Custom filter logic helper #986

merged 7 commits into from
Feb 8, 2024

Conversation

rabstejnek
Copy link
Collaborator

@rabstejnek rabstejnek commented Feb 6, 2024

Added a helpful representation of a user's custom filter logic directly below their input on the exploratory heatmap forms.

image

It is indented and the grouping simplified in the representation, making it easier for a user to visually see what logic they have written. It also informs the user in real time if the logic string is non-parseable.

@rabstejnek rabstejnek changed the title Custom filter preview Custom filter logic helper Feb 7, 2024
@rabstejnek rabstejnek marked this pull request as ready for review February 7, 2024 17:07
@shapiromatron shapiromatron self-assigned this Feb 8, 2024
Copy link
Owner

@shapiromatron shapiromatron left a comment

Choose a reason for hiding this comment

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

Great idea to use the parser output; I just edited what the query component looks like in 142a032, but didn't touch the logic:

(
  (
    "study id" ≥ 123 {1}
    AND
    "system" contains "hepatic" {2}
  )
  OR
  "sex" contains "male" {3}
)

@shapiromatron shapiromatron merged commit 042492c into main Feb 8, 2024
3 checks passed
@shapiromatron shapiromatron deleted the custom-filter-preview branch February 8, 2024 23:25
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.

None yet

2 participants