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

Concatenates markdown and text if both are present. #13042

Merged
merged 1 commit into from Feb 3, 2017

Conversation

ashercodeorg
Copy link
Contributor

@ashercodeorg ashercodeorg commented Feb 3, 2017

Per request from @bakerfranke. In theory, this "shouldn't happen", though the system definitely allows for the question to live in both the text and the markdown.

@bakerfranke
Copy link
Contributor

LGTM in terms of what gets dumped into DB. I'll leave the ruby to @Hamms

end
if contained_question_text.nil?
return contained_question_markdown
end
Copy link
Contributor

Choose a reason for hiding this comment

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

might we want if contained_question_markdown.nil? || contained_question_markdown.empty??

Copy link
Contributor Author

Choose a reason for hiding this comment

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

By default, I'll answer no, as an empty markdown meant something got saved to it. And this is edge-case enough, I don't think it warrants investigation of the subtleties.

@ashercodeorg ashercodeorg merged commit aa304de into staging Feb 3, 2017
@ashercodeorg ashercodeorg deleted the concatenate branch February 3, 2017 20:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants