v5.23.0 - Feedback wanted on GQL-compliant status objects 📣 #597
StephenCathcart
started this conversation in
Preview Feature Announcement
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
In version 5.23.0 (#588), we introduce a new preview API to the driver, GQL-compliant status objects.
GqlStatusObjectis a GQL-compliantNotificationobject and status of query execution, this new object includesGqlStatusandStatusDescription.ResultSummary.GqlStatusObjects()always contains at least 1 status representing theSuccess,No DataorOmitted Result.The GqlStatusObjects will be presented in the following order:
02xxx) has precedence over a warning;01xxx) has precedence over a success.00xxx) has precedence over anything informational (03xxx)Migration from Notification
Most properties in
Notificationexist in the newGqlStatusObject, exceptCodeandTitle.The
GqlStatusObject.GqlStatusis equivalent toCodeinNotification, but with values compliant with GQL.The properties
GqlStatusObject.ClassificationandGqlStatusObject.RawClassificationare equivalent toNotification.CategoryandNotification.RawCategory. The name change is needed because Category has a different meaning in GQL.Usage
Disabling GqlStatusObjects can be done in the same way as disabling Notifications. However, non-notification status can not be filtered (such as Success or No Data):
Iterating through GqlStatusObjects is also done in a similar way as Notifications:
Feedback wanted
This new API is currently marked as preview. What it means is that we are eagerly waiting for your feedback. Does it work well in your scenario? Do you wish there was more?
Let us know so we can correct course in the next releases!
Beta Was this translation helpful? Give feedback.
All reactions