Lucas_Werkmeister_WMDE renamed this task from "Notice: Undefined index: Q50580715" to "Undefined index error in CachingResultsBuilder when checking constraints on empty entity". Lucas_Werkmeister_WMDE updated the task description. (Show Details) |
CHANGES TO TASK DESCRIPTION
If an entity has no statements, then we don’t have any `CheckResults` to store in the result array (not even `NullResults`), so `CheckingResultsBuilder` returns a completely empty array. This is already a violation of the `wbcheckconstraints` API, I think (consumers should probably be able to expect the entity ID and an empty `claims` array, at least), but it also results in an error in `CachingResultsBuilder` when trying to access the results for that entity to cache them:
```
Not sure what the best solution for this will be… probably some kind of `NullContext` (only entity, no statement etc.) that we can plug into the `NullResult` we already have from T178160?
```
...
```Not sure what the best solution for this will be… probably some kind of `NullContext` (only entity, no statement etc.) that we can plug into the `NullResult` we already have from T178160?
TASK DETAIL
EMAIL PREFERENCES
To: Lucas_Werkmeister_WMDE
Cc: Lucas_Werkmeister_WMDE, Aklapper, Reedy, Lahi, Gq86, GoranSMilovanovic, QZanden, LawExplorer, Agabi10, Wikidata-bugs, aude, Mbch331, Jay8g, Krenair
Cc: Lucas_Werkmeister_WMDE, Aklapper, Reedy, Lahi, Gq86, GoranSMilovanovic, QZanden, LawExplorer, Agabi10, Wikidata-bugs, aude, Mbch331, Jay8g, Krenair
_______________________________________________ Wikidata-bugs mailing list Wikidata-bugs@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs