testmycode / testmycode/tmc-server

.tmcignore specify course

Open
#243 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Ruby
Stars
51
Forks
42
Avg merge
1h 27m
Merged PRs (30d)
1

Description

It would be nice to be able to specify which course .tmcignore file concerns.

This currently hidden course: https://tmc.mooc.fi/hy/courses/42 should be a good example.
Now we have exercises from week 1 to week7 listed as hidden when we only want to show weeks 8 to 14 to users.

Possible fixes:

  • If .tmcignore contains text lines contain course names that the rule applies to. One course name per line.
  • .coursename.tmcignore, probably bad idea because course names might contains some special characters? But would be fast to check. Possibly lot's of ignore files.
  • Get rid of .tmcignore and use metadata.yml ignore: true

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing how .tmcignore is read and how the hidden course’s exercises are selected. Compare the proposed course-name rules with the metadata.yml ignore option; the work is done when ignore behavior can target one course without hiding exercises from weeks 8–14.

Written by the indexing model from the issue text.

Assessment

Tech stack
ruby
Domain
backend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.