Closed daria-sorokina-da closed 1 year ago
Design suggestion: new prop, FailureInfo.Message
could be a function of the other props by copying this code into the model.
search-results-ready
:
FailureInfo
should be populated, and a new property should be present: Summary
which should say something like: "Search failed at stage: Matching Algorithm, with validation error...[invalid-HLA]"
@WMDAJesse FYI, this the new prop containing the failure message, and here is the changeset for more context.
Currently if match prediction stage of the algorithm does not fail, and failure happens at a later stage, FailureInfo does not contain a failure message, see example:
Here MatchingAlgorithmFailureInfo is null, because the failure happened on a later stage.
Let's add a property FailureMessage / Message to FailureInfo to cover that, i.e. it should contain "Search failed at stage: PersistSearchResults" in this case.
Please note that FailureMessage in the root of this JSON is obsolete, and should be removed in the upcoming releases, as all failure info should be in FailureInfo property.