CodingTrain/thecodingtrain.com

Track topics and languages

shiffman opened this issue · 6 comments

I need to investigate this more but I noticed that several of the side tracks do not show topics or languages. I believe these are meant to be compiled from the topics and languages of the videos that are contained within the tracks? I see the following three scenarios:

  • all topics/languages compiled
  • only topics/languages from the first video in the track
  • no topics/languages listed

I'm not sure what causes one of the above scenarios to occur? Does anyone have an idea?

Example:
Screen Shot 2023-05-03 at 2 50 54 PM

@fdoflorenzano can you confirm that the intended behavior is to compile topics/languages from the videos rather than maintain a separate list of topics/languages for each track?

Thats weird. I'm pretty sure they were there earlier...

Looking into it now. It's possible that this is a bug in the tag resolver for topics/languages.

One pattern I'm noticing is it affects the tracks made up only of challenge videos.

@fturmel You might have found this already, but I think this is the issue -

// fetch all video nodes we found
const allVideos = await context.nodeModel.getNodesByIds({
ids: videoIds,
type: 'Video'
});

challenges are Challenges, not Videos, so they are not getting pulled here

@fturmel You might have found this already, but I think this is the issue -

// fetch all video nodes we found
const allVideos = await context.nodeModel.getNodesByIds({
ids: videoIds,
type: 'Video'
});

challenges are Challenges, not Videos, so they are not getting pulled here

That's it, figured it out roughly at the same time as you did. PR incoming.