mirror of
https://github.com/discourse/discourse.git
synced 2025-02-10 21:34:50 +00:00
049f8569d8
* FIX: Recursively tag topics with missing ancestor tags Given only a child tag, walk up the ancestry chain, get all of it's ancestors for use in tagging a topic * FIX: Ensure only one parent tag is returned for topic tagging Current implementation selects and return first parent tag if child tag has multiple parents. This change updates recursive parent tag implementation to only return parent tags via only one ancestry line. * DEV: Add test case for tag cycles Given we aren't performing a strict graph traversal to get a tag's parent, cycles do not have any effect on the tags returned for topic tagging.