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
In the REST API /nodes endpoint we have the extras_filter and attributes_filter filters. When attributes and extras are set to true in the query string and attributes_filter and/or extras_filter are specified, the query returns the nodes with the attributes and/or extras specified there. Attributes and extras are returned in the attributes and extras dictionaries, where the keys are the ones specified in attributes_filter and extras_filter.
This is not working correctly when pagination is requested, e.g. the request to the endpoint /nodes/page/1?attributes=true&attributes_filter=cell returns for each node dictionary an attributes.cell key instead of the expected attributes: {cell: ... } dictionary.
The text was updated successfully, but these errors were encountered:
Fixesaiidateam#3555.
The REST API attributes_filter and extras_filter were not working
correctly when pagination is requested.
Without pagination they return attributes and extras dictionaries
with the keys specified in attributes_filter and extras_filter
as expected.
When pagination is added they return instead the attributes keys
as attributes.key, which is not consistent with the expected
behavior.
In the REST API
/nodes
endpoint we have theextras_filter
andattributes_filter
filters. Whenattributes
andextras
are set to true in the query string andattributes_filter
and/orextras_filter
are specified, the query returns the nodes with the attributes and/or extras specified there. Attributes and extras are returned in theattributes
andextras
dictionaries, where the keys are the ones specified inattributes_filter
andextras_filter
.This is not working correctly when pagination is requested, e.g. the request to the endpoint
/nodes/page/1?attributes=true&attributes_filter=cell
returns for each node dictionary anattributes.cell
key instead of the expectedattributes: {cell: ... }
dictionary.The text was updated successfully, but these errors were encountered: