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

Fix the scoring for principal implementation - should be YES/NO for m… - #26412

#26412
Merged
mehalshah merged 2 commits into
stagingcode-dot-org/code-dot-org:stagingfrom
fix_principal_implementation_scoringcode-dot-org/code-dot-org:fix_principal_implementation_scoringCopy head branch name to clipboard
Dec 19, 2018
Merged

Fix the scoring for principal implementation - should be YES/NO for m…#26412
mehalshah merged 2 commits into
stagingcode-dot-org/code-dot-org:stagingfrom
fix_principal_implementation_scoringcode-dot-org/code-dot-org:fix_principal_implementation_scoringCopy head branch name to clipboard

Conversation

@mehalshah

Copy link
Copy Markdown
Contributor

…inimum criteria.

After this is done, a migration is needed roughly like

Pd::Application::Teacher1920Application.select {|a| a.response_scores_hash[:meets_minimum_criteria_scores][:principal_implementation].in?(['0', '2'])}.each |x|
  score = x.response_scores_hash[:meets_minimum_criteria_scores]
  x.update(response_scores: response_scores_hash.deep_merge({meets_minimum_criteria_scores: {prinipcal_implementation: score == '2' ? 'Yes' : 'No'}}))
end

…inimum criteria.

After this is done, a migration is needed roughly like

Pd::Application::Teacher1920Application.select {|a| a.response_scores_hash[:meets_minimum_criteria_scores][:principal_implementation].in?(['0', '2'])}.each |x|
  score = x.response_scores_hash[:meets_minimum_criteria_scores]
  x.update(response_scores: response_scores_hash.deep_merge({meets_minimum_criteria_scores: {prinipcal_implementation: score == '2' ? 'Yes' : 'No'}}))
end
renderScoringDropdown(key, category) {
const scores = TeacherValidScores[_.camelCase(key)][_.camelCase(category)] || TeacherValidScores[_.camelCase(key)];

console.log(category);

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

is this logging intentional?

@mehalshah
mehalshah merged commit 7d0c6d4 into staging Dec 19, 2018
@fisher-alice
fisher-alice deleted the fix_principal_implementation_scoring branch July 13, 2022 22:29
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.