Erroneous unlock condition breaks course page

Open
#220 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
30/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
ruby, yaml
Domain
backend

Research direction

Start with the metadata.yml example and reproduce the 500 Server Error on the course page using the shown unlocked_after values. Trace how these conditions are handled during course-page rendering; done means the server renders the course page successfully with this metadata.

Written by the indexing model from the issue text.

Description

bug lowprio tmc-legacy-course

metadata.yml causing server to not render properly (500 Server Error)

unlocked_after: 85% of week1
courses:
  course-xxx:
    unlocked_after: nil
Dominant language
Ruby
Stars
51
Forks
42
Avg merge
1h 27m
Merged PRs (30d)
1

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.

More from testmycode/tmc-server

All issues in testmycode/tmc-server

Similar issues

More Ruby issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.