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

Backfill level reference_links and map_reference properties for 2024 scripts #57774

Merged
merged 6 commits into from Apr 10, 2024

Conversation

vijayamanohararaj
Copy link
Contributor

@vijayamanohararaj vijayamanohararaj commented Apr 3, 2024

Context: The set of reference guides in the curriculum are versioned. But, the cloning processing today is missing a step to update the reference guides that are linked in new/cloned levels to use the appropriate version.

This PR is a script that would retroactively fix the reference guides for levels in 2024 version of CSD, CSA and CSP.

Links

JIRA: https://codedotorg.atlassian.net/browse/TEACH-935

Testing story

Validated the change locally by running in "-dryrun" mode. Trimmed sample output below

Processing Unit [csd3-2024], ID: [22969]
Processing Level [CSD U3 L1 - Design Templates_2024], ID: [47984], current reference links [] map reference []
Processing Level [intro-pulse-survey_csd3_2024], ID: [48073], current reference links [] map reference []
Processing Level [CSD U3 Plotting Shapes Shape Lab_2024], ID: [47171], current reference links [] map reference []
Processing Level [CSD U3L3 rect_2024], ID: [47358], current reference links [] map reference []
Processing Level [CSD U3 rect_2024], ID: [47343], current reference links [] map reference []
Processing Level [CSD U3 Drawing Squares to Corners_2024], ID: [47092], current reference links [] map reference [/courses/csd-2022/guides/drawing-shapes]
New reference links [] map reference [/courses/csd-2024/guides/drawing-shapes]
Processing Level [CSD U3 fill_2024], ID: [47300], current reference links [] map reference [/courses/csd-2022/guides/drawing-shapes]
New reference links [] map reference [/courses/csd-2024/guides/drawing-shapes]
Processing Level [CSD U3 sequence_2024], ID: [47345], current reference links [] map reference [/courses/csd-2022/guides/drawing-shapes]
New reference links [] map reference [/courses/csd-2024/guides/drawing-shapes]
Processing Level [CSD U3 ellipse_2024], ID: [47299], current reference links [] map reference [/courses/csd-2022/guides/drawing-shapes]
New reference links [] map reference [/courses/csd-2024/guides/drawing-shapes]
Processing Level [CSD U3 drawing practice choice_2024], ID: [47981], current reference links [] map reference []
Processing Level [CSD U3 debug_2024], ID: [47292], current reference links [] map reference [/courses/csd-2022/guides/drawing-shapes]
New reference links [] map reference [/courses/csd-2024/guides/drawing-shapes]
Processing Level [CSD U3 drawing challenges_2024], ID: [47980], current reference links [] map reference []
Processing Level [CSD U3L4 - Predict_2024], ID: [47360], current reference links [["/courses/csd-2022/guides/shapes-and-parameters"]] map reference [/courses/csd-2022/guides/drawing-shapes]
New reference links [["/courses/csd-2024/guides/shapes-and-parameters"]] map reference [/courses/csd-2024/guides/drawing-shapes]
......

Deployment strategy

  1. Deploy script to levelbuilder machine as part of regular deployment
  2. Run the script in dryrun mode to identify any errors/issues
  3. After resolution of issues and we have a clean dryrun, execute the script to make the actual updates

Follow-up work

https://codedotorg.atlassian.net/browse/TEACH-1008

Privacy

N/A

Security

N/A

Caching

N/A

PR Checklist:

  • Tests provide adequate coverage
  • Privacy and Security impacts have been assessed
  • Code is well-commented
  • New features are translatable or updates will not break translations
  • Relevant documentation has been added or updated
  • User impact is well-understood and desirable
  • Pull Request is labeled appropriately
  • Follow-up work items (including potential tech debt) are tracked and linked

@vijayamanohararaj vijayamanohararaj marked this pull request as ready for review April 4, 2024 03:20
@vijayamanohararaj vijayamanohararaj requested review from a team and lfryemason and removed request for a team April 4, 2024 03:20
@vijayamanohararaj vijayamanohararaj merged commit dbc259f into staging Apr 10, 2024
2 checks passed
@vijayamanohararaj vijayamanohararaj deleted the vijaya/bkfil_refguide branch April 10, 2024 19:58
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

2 participants