Hi team, I am trying to add a new entity to the me...
# troubleshoot
b
Hi team, I am trying to add a new entity to the metadata model (called
MLFeatureV2
to support our ML discoverability use cases). I’ve done the changes on Pegasus, GraphQL, Java and React and it has successfully built with
./gradlew build
. I tried to ingest to gms and it worked. The aspect values are successfully stored in MySQL (as seen in screenshot). However, when I navigate to the UI, the
getSearchResults
graphql request (second screenshot) for the new entity has below error.
Copy code
{
  "errors": [
    {
      "message": "The field at path '/search/searchResults[0]/entity' was declared as a non null type, but the code involved in retrieving data has wrongly returned a null value.  The graphql specification requires that the parent field be set to null, or if that is non nullable that it bubble up null to its parent and so on. The non-nullable type is 'Entity' within parent type 'SearchResult'",
      "path": [
        "search",
        "searchResults",
        0,
        "entity"
      ],
      "extensions": {
        "classification": "NullValueInNonNullableField"
      }
    }
  ],
  "data": {
    "search": null
  }
}
Do you know what’s missing here?
b
@green-football-43791 Can you help Harvey? I think this must be related to the changes necessary in datahub-frontend to add an entity to search
g
Hey ! We resolved already in a dm 🙂