Skip to content

Attach prettifier to query #31

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

Merged
merged 1 commit into from
Dec 6, 2024
Merged

Attach prettifier to query #31

merged 1 commit into from
Dec 6, 2024

Conversation

dcz-self
Copy link

@dcz-self dcz-self commented Dec 1, 2024

Prettification of terms is typically related to some particular query rather than a naked Universe, so add a convenience type for that.


I haven't tried prettification before, but now I discovered too many moving pieces. This tries to stick some of them together: a prettifier is most relevant when dealing with a Query, rather than just a Universe.
In fact, the handful of .pretty() calls in the code base were immediately referring to the query scope, so they are all improved now: the calls have not two (universe, scope) but only one moving piece (query).

I have a suspicion this also fixes some bugs I introduced at an earlier rework where I used the unmodified Universe to render the query terms.

Prettification of terms is typically related to some particular query rather than a naked Universe, so add a convenience type for that.
Copy link
Owner

@fatho fatho left a comment

Choose a reason for hiding this comment

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

Nice simplification!

@fatho fatho merged commit 35f3c23 into fatho:main Dec 6, 2024
1 check passed
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.

2 participants