REFACTOR: use rest serializer for tag-info categories

But the "synonyms" can't use the TagSerializer yet. We still have some
code from the discourse-tagging plugin that uses "text" instead of
"name", "count" instead of "topic_count", etc. We should make the js
consistent with the TagSerializer and then stop using tag_counts_json.
This commit is contained in:
Neil Lalonde
2019-12-10 14:57:59 -05:00
parent f921909595
commit 81a43f2c1e
4 changed files with 8 additions and 6 deletions

View File

@ -217,6 +217,7 @@ acceptance("Tag info", {
server.get("/tags/planters/info", () => {
return helper.response({
__rest_serializer: "1",
tag_info: {
id: 12,
name: "planters",