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
Upgrade to Elide 5.0.0-pr32 from 5.0.0-pr30 and all previously working json APIs, that uses fields query on a model to list its fields including id, are not working any more.
Expected Behavior
fields query should work after an upgrade to 5.0.0-pr32.
Current Behavior
When fields query is used on a model to list of wanted fields which also includes id field, then following error occurs when its associated json API endpoint gets called by a http client: com.yahoo.elide.core.exceptions.InvalidValueException: Invalid value: **entityXXX** does not contain the fields: [id]
Possible Solution
Remove field id from list of included model fields.
Fields consist of attributes and relationships. ID is something different and it is always included in the response (there is no way to exclude it).
Given that understanding, my intuition is that the latest Elide release has the correct behavior and the bug was allowing ID in sparse fields in earlier versions.
We only introduced this change in Elide 5 to avoid breaking Elide 4 users.
Upgrade to Elide 5.0.0-pr32 from 5.0.0-pr30 and all previously working json APIs, that uses
fields
query on a model to list its fields includingid
, are not working any more.Expected Behavior
fields
query should work after an upgrade to 5.0.0-pr32.Current Behavior
When
fields
query is used on a model to list of wanted fields which also includesid
field, then following error occurs when its associated json API endpoint gets called by a http client:com.yahoo.elide.core.exceptions.InvalidValueException: Invalid value: **entityXXX** does not contain the fields: [id]
Possible Solution
Remove field
id
from list of included model fields.Steps to Reproduce (for bugs)
id
Your Environment
The text was updated successfully, but these errors were encountered: