You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There is an issue with the topics-data.json generation in our content layer algorithm. Currently, the topics-data.json file is not displaying the correct names for each topic on the /topics page. Unlike tag-data.json, which correctly uses the title field for each topic (as coming from BitcoinOps), topics-data.json appears to use a different approach, resulting in inconsistencies in topic names.
Current Structure:
tag-data.json: Groups topics into categories, showing the count of transcripts for each topic. Used for the /categories page.
topics-data.json: Lists all topics with the count of transcripts for each, used for the /topics page.
Proposed Solution:
Consolidate JSON Generation: Since both JSON files represent similar data in different formats (by category and alphabetically), we can streamline the code by grouping the calculations and generation into a single method (still generating 2 different JSONs). This change will help avoid similar issues in the future.
File Renaming: For clarity, rename the JSON files:
tag-data.json → topics-by-category-counts.json
topics-data.json → topics-counts.json
This change will make the file purposes clearer and reduce the chance of confusion.
The text was updated successfully, but these errors were encountered:
There is an issue with the
topics-data.json
generation in our content layer algorithm. Currently, thetopics-data.json
file is not displaying the correct names for each topic on the/topics
page. Unliketag-data.json
, which correctly uses thetitle
field for each topic (as coming from BitcoinOps),topics-data.json
appears to use a different approach, resulting in inconsistencies in topic names.Current Structure:
tag-data.json
: Groups topics into categories, showing the count of transcripts for each topic. Used for the/categories
page.topics-data.json
: Lists all topics with the count of transcripts for each, used for the/topics
page.Proposed Solution:
Consolidate JSON Generation: Since both JSON files represent similar data in different formats (by category and alphabetically), we can streamline the code by grouping the calculations and generation into a single method (still generating 2 different JSONs). This change will help avoid similar issues in the future.
File Renaming: For clarity, rename the JSON files:
tag-data.json
→topics-by-category-counts.json
topics-data.json
→topics-counts.json
This change will make the file purposes clearer and reduce the chance of confusion.
The text was updated successfully, but these errors were encountered: