Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Import Level Concept Difficulties for new 2018 levels - #25185

#25185
Merged
Hamms merged 5 commits into
stagingcode-dot-org/code-dot-org:stagingfrom
import-lcd-2018code-dot-org/code-dot-org:import-lcd-2018Copy head branch name to clipboard
Oct 4, 2018
Merged

Import Level Concept Difficulties for new 2018 levels#25185
Hamms merged 5 commits into
stagingcode-dot-org/code-dot-org:stagingfrom
import-lcd-2018code-dot-org/code-dot-org:import-lcd-2018Copy head branch name to clipboard

Conversation

@Hamms

@Hamms Hamms commented Oct 2, 2018

Copy link
Copy Markdown
Contributor

Based on the data contained in this spreadsheet

@Hamms
Hamms requested a review from joshlory October 2, 2018 21:05
@Hamms

Hamms commented Oct 2, 2018

Copy link
Copy Markdown
Contributor Author

@ryansloan can you spot-check the level changes to confirm that they match expectations?

@ryansloan

Copy link
Copy Markdown
Contributor

I checked a handful and they LGTM

@joshlory joshlory left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM after resolving conflicts. Thank you for doing this import!


lcd = LevelConceptDifficulty.find_or_create_by(level: level)
lcd.update!(concept_difficulties)
level.write_custom_level_file

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Only need to do this if we have a LCD for this level, right? Seeing a lot of edits on levels that don't actually change the LCD.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Hmm, good catch. Lemme try and make this a bit smarter

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Probably doesn't make a huge difference — the real (long-term) work item here is to not write values to the .level file unless they're different than the default value.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Updated!

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.

3 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.