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

Switch search fields to list #63

Merged
merged 1 commit into from
Oct 28, 2021

Conversation

stevelacey
Copy link
Contributor

@stevelacey stevelacey commented Oct 22, 2021

What's this PR do?

Search fields is confusing and half broken; the AND was being discarded, and the OR was not contained in a way that applying an AND to it would have worked anyway, which is maybe why it got removed.

This switches search_fields to a simple list instead of a confusing dict and tweaks how q_objects is built.

Backwards compatibility with the old or dict is maintained, the and continues to be ignored, docs have been updated to describe that this attribute should be a list.

Where should the reviewer start?

View tests / query params.

Why is this important, or what issue does this solve?

Search fields was confusing and not working in some scenarios.

What Worf gif best describes this PR or how it makes you feel?

worf_not_merry

Tasks

  • This PR increases test coverage
  • This PR includes README updates reflecting any new features/improvements to the framework

@stevelacey stevelacey force-pushed the improvement/switch-search-fields-to-list branch 3 times, most recently from 246377f to 178f280 Compare October 22, 2021 11:23
@wadewilliams
Copy link
Contributor

Does this solve #48 ?

@stevelacey stevelacey force-pushed the improvement/switch-search-fields-to-list branch 3 times, most recently from d6aeae5 to d7e769f Compare October 26, 2021 10:45
@stevelacey
Copy link
Contributor Author

Does this solve #48 ?

Yes

@stevelacey stevelacey force-pushed the improvement/switch-search-fields-to-list branch 2 times, most recently from 95c0421 to 06076dd Compare October 26, 2021 11:06
@stevelacey stevelacey force-pushed the improvement/switch-search-fields-to-list branch from 06076dd to 9a23814 Compare October 26, 2021 11:11
@stevelacey stevelacey merged commit e2ce4b2 into master Oct 28, 2021
@stevelacey stevelacey deleted the improvement/switch-search-fields-to-list branch October 28, 2021 09:29
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