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

Fixed extraneous wildcard query in asset search #10514

Merged
merged 2 commits into from
Jan 14, 2022

Conversation

uberbrady
Copy link
Collaborator

Fixes [ch18482]

In the Requestable view (show everything that's requestable), we make an API query to populate the list of requestable assets. That API call performed a text search, whether or not the ?search= term was populated or not. This fixes that.

Additionally, the web controller for the requestable page made an extraneous query to requestables, when all we need is the total count. This fixes that too.

None of these changes are super-urgent and none of them change any functionality or results, so we can absolutely take them after v6 lands.

@snipe snipe changed the title Fix extraneous wildcard query in requestable asset search Fixed extraneous wildcard query in requestable asset search Jan 14, 2022
Copy link
Owner

@snipe snipe left a comment

Choose a reason for hiding this comment

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

Just my comments inline

@uberbrady
Copy link
Collaborator Author

Just my comments inline

I could've sworn I saw a full SELECT blah,blah FROM blah WHERE blah... in there, but I could've easily misread it. Happy to pull it back. I don't think it makes much of a difference.

@snipe
Copy link
Owner

snipe commented Jan 14, 2022

If you can pull it back, I'll merge it and check a little deeper locally - thanks!

@uberbrady
Copy link
Collaborator Author

done

@snipe
Copy link
Owner

snipe commented Jan 14, 2022

Thankeeee!

ArrowWOevenLooking,

@snipe snipe merged commit 207ff01 into snipe:develop Jan 14, 2022
@snipe snipe changed the title Fixed extraneous wildcard query in requestable asset search Fixed extraneous wildcard query in asset search Jan 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants