Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Lesson with lab gets returned with lab = false (breaking commands like open and next) #3

Description

@rrcobb

When viewing this lesson - https://github.com/learn-co-students/manipulating-hashes-web-071717 in chrome at learn.co, I tried learn next and expected to fork, clone, and open the repo, since it appears in the UI to be a lab. Similarly, after manually forking and cloning the lab, learn open opens the lab in chrome instead of the editor.

Doing a little digging led me to Learnweb::Client::Lesson and no further - I'm not sure where the code for the learn api lives, but it seems like CurrentLesson and NextLesson just save their attributes from the api response, so the logic that determines what is and is not a lab lives somewhere else!

Given that I don't know where that logic is, I'm not sure how to mark lessons as lab=true or lab=false in the lesson repo itself; it could be that this is not an issue with the learn-web client at all, but instead with the config on the lesson, or with the learn-co api that learn-web asks for the lesson.

Thanks!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions