You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Cannot combine 'order' and 'filters' in same query #860
Why is this happening? The fact that the bottom three queries work and to top one does not is very confusing. Nothing I saw in the documentation indicates that filters and order affect each other.
After doing this, the dev server autogenerated the following index.yaml file:
indexes:
# AUTOGENERATED# This index.yaml is automatically updated whenever the dev_appserver# detects that a new type of query is run. If you want to manage the# index.yaml file manually, remove the above marker line (the line# saying "# AUTOGENERATED"). If you want to manage some indexes# manually, move them above the marker line. The index.yaml file is# automatically uploaded to the admin console when you next deploy# your application using appcfg.py.
- kind: Commentproperties:
- name: story_id
- name: timestamp
I'm not running in App Engine, which is why the indexes were not autogenerated. I'm using gcd to manually create the indexes, so explicitly stating the indexes that are missing would be a great feature!
Activity
dhermes commentedon May 4, 2015
/cc @pcostell Maybe the error could list which index is required?
@thesandlord Give me a moment, I'll tell you which index is required (and how I determined that).
dhermes commentedon May 4, 2015
@thesandlord I fired up the App Engine dev server and executed
from the Interactive Console.
After doing this, the dev server autogenerated the following
index.yamlfile:dhermes commentedon May 4, 2015
@thesandlord Check out the Cloud Datastore docs on indexes as well.
thesandlord commentedon May 4, 2015
Ok makes sense, I need to do an index on both.
I'm not running in App Engine, which is why the indexes were not autogenerated. I'm using gcd to manually create the indexes, so explicitly stating the indexes that are missing would be a great feature!
pcostell commentedon May 4, 2015
We plan to include index definitions in the error message, but haven't gotten to it yet. Please file a bug here: https://github.com/GoogleCloudPlatform/google-cloud-datastore/issues and we'll update it once it gets released.
dhermes commentedon May 4, 2015
Awesome, thanks @pcostell!
chore(python): Update the python version in docs presubmit to use 3.10 (
chore(python): Update the python version in docs presubmit to use 3.10 (
chore: release 0.45.1 (#860)
chore: Upgrade black version and re-run it (#860)
build(deps): bump cryptography from 38.0.3 to 39.0.1 in /synthtool/gc…
chore: release 2.23.3 (#860)