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 }}
This repository has been archived by the owner on Dec 25, 2023. It is now read-only.
I took a look through the code. The main issue is that:
model._query passes in the result of _get_kind() to query, query then uses that to lookup the Model during projection/group_by property validation. In the case of polymodel, _get_kind() returns the base class name. Then when validation happens this will fail.
This looks like a broken separation of concerns. The model's _query() method should validate that the properties are a part of the query, not the query itself. However, this isn't quite right because of gql queries where the Kind is specified in the query and then constructed without calling model.query().
Hi, the issue can be seen here on SO:
http://stackoverflow.com/questions/28250761/appengine-datastore-polymodel-and-projection
I've copied the relevant bit here for convenience...
Below I present a simpler model (removed StructuredProperty) which gives the same issue:
This works:
This does not work:
In particular, the raised error is :
The text was updated successfully, but these errors were encountered: