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
Reported by: Rouven on Discord Summary: Currently a user has no way of knowing whether the results returned by the ListObjects (or StreamedListObjects) endpoint is a complete set of all the object that the user has that relation to, or only a partial set.
We have earlier discussed returning either a header or a field in the body to represent partial results:
In the response body:
e.g:
{
"objects": [...],
"is_complete": true // or is_partial: false
}
or
In the header: e.g. X-OpenFGA-ListObjects-Response-Complete: true or similar
Rouven suggested that they actually prefer that the endpoint return an Error (e.g. deadline_exceeded) in that case, but they would be OK with an indicator in the response.
EnhancementNew feature or requestCore APIRelating to the core OpenFGA service or API
1 participant
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Reported by: Rouven on Discord
Summary: Currently a user has no way of knowing whether the results returned by the ListObjects (or StreamedListObjects) endpoint is a complete set of all the object that the user has that relation to, or only a partial set.
This is mainly due to: listObjectsDeadline and listObjectsMaxResults.
We have earlier discussed returning either a header or a field in the body to represent partial results:
In the response body:
e.g:
or
In the header: e.g.
X-OpenFGA-ListObjects-Response-Complete: true
or similarRouven suggested that they actually prefer that the endpoint return an Error (e.g.
deadline_exceeded
) in that case, but they would be OK with an indicator in the response.Beta Was this translation helpful? Give feedback.
All reactions