Skip to content

Markdown2Json has some failures when transforming data #58

@omiras

Description

@omiras

@kevmhughes pointed out that some of the questions in the MongoDB database are malformed.

image

In the example, the answer fields are empty. However, we may encounter other types of errors.

  1. We need to check the markdown2json script.
  2. We need to identify when a question is transformed unsuccessfully from Markdown to JSON and trigger a warning.
  3. No malformed questions should be inserted into the MongoDB database.

The consequence of having malformed questions in the MongoDB database is that we cannot safely offer the /api/questions/v1/random endpoint to REST API consumers.

Acceptance Criteria

  • No malformed questions are inserted into the MongoDB database.
  • The markdown2json script must trigger a warning when it fails to transform a single question successfully.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Status

    Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions