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

Allow filtering on BIT fields #22

Closed
soliton- opened this issue Oct 11, 2024 · 3 comments · Fixed by #23
Closed

Allow filtering on BIT fields #22

soliton- opened this issue Oct 11, 2024 · 3 comments · Fixed by #23
Assignees

Comments

@soliton-
Copy link
Member

Currently on http://replays.wesnoth.org/dashboard/query when you filter the table for 0 or 1 in the RELOAD field for example nothing matches. I assume that is because in the DB those fields are not the character 0/1 but the ASCII value 0/1 (i.e. NUL/SOH).

@max-torch
Copy link
Contributor

I was able to get it working using "="

It seems that for categorical type data, simply typing the category suffices (such as the version field), while for numeric data type fields, you have to use operators.

image

Possible to filter for short and long games in the Game Duration

image

@soliton-
Copy link
Member Author

Ok, I didn't try to find the filter documentation. Would be nice if there was a link to it and if it is a bit dense then would be good to add a direct note with some filter examples.

@max-torch
Copy link
Contributor

I do link to the documentation that explains this in the User Guide in the section on Filtering; However, I do agree that it is, in fact, a bit dense to find and understand the information inside the official documentation page, given how it currently looks like and is written.

Thank you so far for this report and discussion and I'll assign this issue to myself.

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 a pull request may close this issue.

2 participants