Lucas_Werkmeister_WMDE renamed this task from "Reorganize WikibaseQualityConstraints" to "WikibaseQualityConstraints refactorings".
Lucas_Werkmeister_WMDE updated the task description. (Show Details)

CHANGES TO TASK DESCRIPTION
During review of [I2fb05b9117](https://gerrit.wikimedia.org/r/397594/) (or perhaps [I1433ea7e32](https://gerrit.wikimedia.org/r/396408/), not sure), Jonas pointed out that it’s a bit strange to see words like “cache” pop up in `CheckingResultsBuilder`, which shouldn’t know anything about caching. After some discussion, we agreed on some changes we wanted to make – we wanted to do the necessary refactorings in a pair session, but didn’t find the time. In short, what’s currently called `CachingMetadata` should be split up, and all associated classes renamed to remove the “cache” from the name; and there could also be a `ConstraintReport` class, which would be a list of `CheckResult`s plus their merged metadata, and perhaps `DelegatingConstraintChecker` would be changed to return that and renamed to something like `ConstraintreportBuilder` (though I don’t think we reached an agreement on this). See the subtasks for details.

---

- Split up `CachingMetadata` into generic metadata (depended entity IDs) and information about how the value was cached (max age). The generic object contains the caching-specific one and has a `merge` method, so most of the places where `CachingMetadata` is currently passed around don’t have to change much, except for the rename. All the containers (`CachedBool` etc.) are also renamed to remove the “cache” from their names.
...

TASK DETAIL
https://phabricator.wikimedia.org/T182697

EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Lucas_Werkmeister_WMDE
Cc: gerritbot, Jonas, Lucas_Werkmeister_WMDE, Aklapper, Cpaulf30, Lahi, Gq86, Baloch007, Lordiis, GoranSMilovanovic, Adik2382, Th3d3v1ls, Ramalepe, Liugev6, QZanden, Lewizho99, Maathavan, Agabi10, Wikidata-bugs, aude, Mbch331
_______________________________________________
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs

Reply via email to