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

DTL (Test > Levelbuilder): 873b14dd #22169

Merged
merged 58 commits into from
May 2, 2018

Conversation

deploy-code-org
Copy link
Contributor

No description provided.

joshlory and others added 30 commits April 30, 2018 12:59
The level data we've been uploading to crowdin has two issues.

First, the yaml system we've been using wraps content like:

    en:
      data:
        instructions:
          2-3 Artist 1 new_instruction: "Hi, I'm an artist. You can write code to make
            me draw almost anything. Use a few blocks to make me draw over the grey lines
            in the picture. (Each line is 100 pixels long)"

This is not a valid way to do multiline strings in yaml. Although there
certainly exist ways to do multiline strings in yaml with the goal of
keeping yaml as a human-editable serialization format, we don't really
care about human-editability for this data and so are now going to
serialize the data like:

    en:
      data:
        instructions:
          2-3 Artist 1 new_instruction: "Hi, I'm an artist. You can write code to make me draw almost anything. Use a few blocks to make me draw over the grey lines in the picture. (Each line is 100 pixels long)"

Second, our data includes carriage returns (`\r`) as well as newlines
(`\n`). This should be fine, but crowdin does not render carriage
returns correctly, instead just rendering them as plaintext. This
results in translators seeing content that looks like

    My snowflake is falling apart!\r
    \r
    Can you figure out what's going wrong?

To fix this, we just strip out all carriage returns, replacing them with
newlines as appropriate
…blocks-when-used

Only fail empty function blocks if there's a corresponding call block
DTT (Staging > Test) [robo-dtt]
special i18n sync to capture newlines changes
DTT (Staging > Test) [robo-dtt]
DTT (Staging > Test) [robo-dtt]
DTT (Staging > Test) [robo-dtt]
DTT (Staging > Test) [robo-dtt]
Erin007 and others added 28 commits May 2, 2018 10:16
Stats tab: disable completed level count
DTT (Staging > Test) [robo-dtt]
Separate completed_levels_count as a new endpoint in dashboard API
Rewrite teacher dashboard "stats" tab in react using newly-created `completed_levels_count` endpoint in dashboardapi
Stats tab: add new line to file
DTT (Staging > Test) [robo-dtt]
@deploy-code-org deploy-code-org merged commit c84bf50 into levelbuilder May 2, 2018
@balderdash balderdash deleted the dtl_candidate_873b14dd branch September 18, 2018 05:55
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

9 participants