exercism / meta

Experimenting with a repo to manage the project-wide, meta todos.
7 stars 2 forks source link

Remove redundant information from track's config.json #19

Closed kytrinyx closed 7 years ago

kytrinyx commented 7 years ago

The slug is never used, because we use the track ID to initialize a track in Trackler. The repository can be inferred from the Track ID, so I've changed Trackler to construct the URL rather than reading it from the config.

stkent commented 7 years ago

Curious: where do track ids live, if not in the spot the slug is being removed from? Thanks!

kytrinyx commented 7 years ago

They are based on the name of the directory of the track, here: https://github.com/exercism/trackler/tree/master/tracks

We detect the names of the directories, and then use that to determine which tracks exist. So ultimately the track ID comes from the name of the repository.

In the nextercism prototype we will likely be explicitly identifying the repository URLs of the tracks and then using local git clones on the servers, but the same basic principle applies.

stkent commented 7 years ago

Cool, thanks for explaining!