HomePhorge

ParserOutput: Convert category name back to a LinkTarget when merging CMC

This commit no longer exists in the repository. It may have been part of a branch which was deleted.

Description

ParserOutput: Convert category name back to a LinkTarget when merging CMC

When we are merging a ParserOutput into a ContentMetadataCollector,
convert categories to LinkTarget, which is the preferred parameter
type of CMC::addCategory().

This also reverts the temporary fix in
I0715f4fbc870e401e5759dd7c7a3c19077c40a6a.

Note that the category names *should* be in dbkey form for proper
deduplication, but both TitleValue:tryNew() and
CategoryLinksTable::setParserOutput() will renormalize if needed
(see I2b08edd90666e0fa4eafe91444a58806909b02d6 / T328477).

Depends-On: Iea894aa2cee90f4ca5c7688493b0654e4605ce23
Change-Id: I5a903396edb4da0900ecef37cb3bf4bd03b5ba68

Details

Provenance
C. Scott AnanianAuthored on Dec 18 2023, 7:33 PM
C. Scott AnanianCommitted on Dec 18 2023, 9:01 PM

Event Timeline

C. Scott Ananian <cananian@wikimedia.org> committed rMWf2d910844f28: ParserOutput: Convert category name back to a LinkTarget when merging CMC (authored by C. Scott Ananian <cscott@cscott.net>).Dec 18 2023, 9:01 PM

Commit No Longer Exists

This commit no longer exists in the repository.