Navigation Menu

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

question id support #9

Merged
merged 2 commits into from Oct 26, 2016
Merged

question id support #9

merged 2 commits into from Oct 26, 2016

Conversation

aimichal
Copy link
Contributor

This adds support for question identifiers:

  • JSONL files updated
  • Data model updated
  • UI updated to show question id

Copy link

@OyvindTafjord OyvindTafjord left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One minor comment, LGTM! You could potentially now key questions off their ID rather than line number, but it's probably more useful to keep this relaxed so that specifying unique IDs for each question is optional.

@@ -4,6 +4,7 @@ import org.scalatest.FunSuite

class ExamQuestionSpec extends FunSuite {
val dummyExamQuestion = ExamQuestion(
id = "foo bar 123",

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Having spaces in identifiers can be annoying to deal with, so maybe set a good example by not having spaces in this sample ID?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I considered re-writing the "question number" logic to use the string identifiers but decided against it because of exactly the reason you arrived at :-)

@aimichal aimichal merged commit 6dc3bd5 into master Oct 26, 2016
@aimichal aimichal deleted the questionid branch October 26, 2016 22:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants