Access workflow_info using GraphQL query

Good afternoon,

With the change to workflows, we have a component in our data pipeline that is failing. We use the following query

query getReviewByDatarowId($row_id: ID!){ 
                                dataRow(where:{ id: $row_id }) {
                                    id
                                    rowData
                                    externalId
                                    dataset {
                                        id
                                    }
                                    labels { 
                                        id
                                        secondsToLabel
                                        createdBy {
                                            email
                                        }
                                        createdAt
                                        updatedAt
                                        label
                                        reviews {
                                            createdBy {
                                                email
                                            }
                                            score
                                        }
                                        project {
                                            name
                                            id
                                        }
                                    }
                                    dataset {
                                        name
                                    } 
                                } 
                            }

I took a look at the dataRow docs for GraphQL, but it seems like there isnt an attribute for finding the workflow_info. Any help with this would be great

Hello from Labelbox and thanks for reaching out around this.
Going forward, all programmatic access to Labelbox system info is supposed to be done via

  • Exports
  • Webhooks
  • SDK
    And as a company, we are not actively adding to our public GraphQL endpoints

We have currently added a workflow_info field in exports that shows you the history of where the data row has traveled through in terms of review/rework tasks and the current status and task it is in.

We have also introduced Webhooks for Workflow that you can set up for a project (screenshot attached)
image

We are working on providing SDK support soon to Workflows. Is there a specific use case/information that you are looking for at the data row/label level?

thanks for the reply.

I see that there are webhooks, but each webhook is not returning anything regarding the label. It only return the id for the dataRow. Is labelId deprecated? Everytime I try querying the sdk/graphql for a given label’s Id I am getting None returned. This only occurs for new projects that have workflows

Got it! Thanks Samuel for the follow-up. LabelD is not deprecated - its just that the Workflow webhooks are providing a view of what happened to the data row based on a Workflow action.
From the webhook, are you trying to get a particular label/all labels on the data row from the webhook?
Could you expand on the use case for seeing label ID(s) in the Webhooks?