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

Fix elasticsearch search backend tests broken by #5208 #5391

Merged
merged 1 commit into from
Jun 17, 2019

Conversation

ababic
Copy link
Contributor

@ababic ababic commented Jun 17, 2019

@gasman I'm not entirely sure why, but indexing 'id' field instead of 'pk' seems to fix the broken search backend tests (as reported here: #5208 (comment))

I've also updated IndexView.get_ordering() to always use the field name when modifying the ordering. If indexing 'pk' isn't supported for some reason, we want to avoid raising IndexError messages that encourage the user to index 'pk'.

… seem to support indexing of 'pk' always use the actual field name when modifying the ordering in IndexView.get_ordering()
@squash-labs
Copy link

squash-labs bot commented Jun 17, 2019

Manage this branch in Squash

Test this branch here: https://ababicfix5208-failing-elastics-yq6ca.squash.io

@ababic ababic changed the title Fix broken elasticsearch search backend tests caused by #5208 Fix elasticsearch search backend broken by #5208 Jun 17, 2019
@ababic ababic changed the title Fix elasticsearch search backend broken by #5208 Fix elasticsearch search backend tests broken by #5208 Jun 17, 2019
@ababic ababic merged commit 73e07ba into wagtail:master Jun 17, 2019
@ababic ababic deleted the fix/5208-failing-elasticsearch-tests branch June 17, 2019 21:18
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.

None yet

1 participant