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
Fix outdated resource and vocab links #46142
Conversation
Note: because of the ongoing Drone problems, I might merge before Drone succeeds so that this PR doesn't become stale. It already has a high change of merge conflicts and if it gets stale, that chance will increase. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this looks great, thank you for doing this Bethany! my main question is whether there's any additional follow-up work we should be tracking to prevent these kinds of errors from popping up again in the future.
@@ -122,7 +122,7 @@ | |||
"properties": { | |||
"creative_commons_license": "Creative Commons BY-NC-SA", | |||
"overview": "Students will create rules for ordering patterns of circles and squares. Students generate all possible messages with three place values, then create rules that explain how they ordered each message. Emphasis is placed on creating clear rules so that, if another group were to follow the rules, they would generate the same list in the same order. Using these rules, students then try to list all possible messages with four place values. As the lesson concludes, students share their rules with classmates.", | |||
"preparation": "* Have scissors ready for groups to create [r ab-cutouts/csp/2021] or have these pre-cut and prepared before class\r\n", | |||
"preparation": "* Have scissors ready for groups to create [r shape_cutouts/csp/2022] or have these pre-cut and prepared before class\r\n", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why is the resource key ('ab-cutouts') changing here -- are we regenerating the key from the resource name when we copy?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thank you for the pointer! the current behavior sounds good to me.
@@ -2994,7 +2994,7 @@ | |||
"key": "aa9a6902-38d1-4613-8535-7b515b0f7e04", | |||
"position": 16, | |||
"properties": { | |||
"description": "Once students have taken the survey, redirect them to the front of the room to see what happens with all of the data they've been generating.\n\n<i class=\"fa fa-list-alt\" aria-hidden=\"true\"></i> **Video:** Show students the \n[r finding_patterns_in_data/aiml/2021] video.", | |||
"description": "Once students have taken the survey, redirect them to the front of the room to see what happens with all of the data they've been generating.\n\n<i class=\"fa fa-list-alt\" aria-hidden=\"true\"></i> **Video:** Show students the \n[r finding_patterns_in_data/csd/2021] video.", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is there any follow-up needed to prevent this kind of problem from happening again in the future? it seems like an issue with lesson copy, but not sure if it's since been addressed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see. Here is an idea:
- extract this into a constant array
MARKDOWN_FIELDS
:code-dot-org/dashboard/app/models/lesson.rb
Line 829 in 5e0e00b
%w(overview student_overview preparation assessment_opportunities).each do |field| - make this method raise if you try to render something that is not in the new
MARKDOWN_FIELDS
array:code-dot-org/dashboard/app/models/lesson.rb
Line 175 in 5e0e00b
def render_property(property_name)
happy to own follow-up if that feels like too much.
I wrote a script to find and replace instances of resource and vocab text that didn't match the course version of the lesson. I don't believe I caught every single piece of markdown that needed to be updated. My plan is to see if I can get a list of the rest and either update myself or pass to the curriculum team to fix.
I spot checked a couple of the times the resource key changed in the markdown and they are existing resources with a slightly different key. The dedup logic is based on name and url of the resource so I think these keys just got changed along the way.
Script (note that there is some logic to prevent writing every single script_json file because that was a problem):
Links
Testing story
Deployment strategy
Follow-up work
Privacy
Security
Caching
PR Checklist: