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

library: debug log parsed queries (and convert to f-strings) #4962

Merged
merged 1 commit into from
Oct 22, 2023

Conversation

wisp3rwind
Copy link
Member

To help with debugging queries that behave unexpectedly. Not sure whether this is really going to be helpful, but while looking at #4955 I realized I would like to know exactly what the queries parse to, because to be honest, I never remember the details our query syntax.

Copy link
Member

@sampsyo sampsyo left a comment

Choose a reason for hiding this comment

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

Very good idea! This also helps with the other "direction" I sometimes run into: I can remember the text query syntax, but I can't remember how to construct that query programmatically. With beet -vv ls whatever, now I can get a reminder.

Looks right to me, modulo one linter hint about a long line.

@sampsyo
Copy link
Member

sampsyo commented Oct 21, 2023

(Oh, and I also meant to say thanks for the __repr__ modernization that came along with this!)

@wisp3rwind wisp3rwind force-pushed the log_parsed_query branch 2 times, most recently from d828f99 to 1b65eca Compare October 22, 2023 07:48
to help with debugging queries that behave unexpectedly
@wisp3rwind
Copy link
Member Author

Fixed the overly long line and rebased for #4654 and #4961. There are some new lint failures now, but they're unrelated and already present in #4654.

@wisp3rwind wisp3rwind merged commit a091f31 into beetbox:master Oct 22, 2023
@wisp3rwind wisp3rwind deleted the log_parsed_query branch October 22, 2023 08:15
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