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

show deprecated course page for script levels with deprecated levels #58163

Conversation

mikeharv
Copy link
Contributor

@mikeharv mikeharv commented Apr 22, 2024

Last year, we deprecated several scripts related to CS in Algebra: #53211

However, there are other scripts that use levels of these types. We are gradually working on marking these level types as deprecated:

For projects of these types, we're using the deprecation page and ensuring that the projects no longer show up in the user's personal project table. For levels in scripts, we're currently relying on a script setting. With this change, we can hide unsupported levels in any script. We wouldn't expect deprecated Algebra levels to show up in other scripts, especially those recommend externally. If this does happen we will now show the deprecation warning on those particular script levels. For example, I have found calc/eval levels in scripts like s/algebrademo. This script isn't recommended anywhere but could potentially have been bookmarked if it was ever shared externally.

Before:

image

After:

image

This is a more robust solution than just deprecating whole scripts because our content authoring system doesn't guarantee that these unsupported levels won't show up elsewhere.
Note that this doesn't deprecate the whole script or its lessons - just the individual script levels. Eventually we might want to consider automatically showing the deprecation page for any script that includes deprecated levels (since we realistically can't support it). That work is drafted but currently blocked. Algebra levels show up in places like allthethings which we obviously don't want to deprecate, but that is being addressed too: #58190

Warning!!

The AP CSP Create Performance Task is in progress. The most critical dates are from April 3 - April 30, 2024. Please consider any risk introduced by this PR that could affect our students taking AP CSP. Code.org students taking AP CSP primarily use App Lab for their Create Task, however a small percent use Game Lab. Carefully consider whether your change has any risk of alterering, changing, or breaking anything in these two labs. Even small changes, such as a different button color, are considered significant during this time period. Reach out to the Student Learning team or Curriculum team for more details.

Links

Testing story

Deployment strategy

Follow-up work

Privacy

Security

Caching

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

@mikeharv mikeharv changed the title show deprecated course page for deprecated levels show deprecated course page for script levels with deprecated levels Apr 23, 2024
@mikeharv mikeharv marked this pull request as ready for review April 23, 2024 20:31
@mikeharv mikeharv requested a review from a team April 23, 2024 20:33
@mikeharv mikeharv merged commit 3f5486c into mike/deprecate-calc-and-eval-projects Apr 23, 2024
1 check passed
@mikeharv mikeharv deleted the mike/deprecate-calc-and-eval-script-levels branch April 23, 2024 22:48
mikeharv added a commit that referenced this pull request Apr 26, 2024
* show deprecation page for calc and eval projects

* deprecate algebra game projects (#58168)

* deprecate algebra game projects

* Delete big_game_remix.feature

* Delete big_game_versions.feature

* show deprecated course page for script levels with deprecated levels (#58163)

* show deprecated course page for deprecated levels

* safely check whether level exists and is deprecated

* Deprecate contract match levels (#58191)

* show deprecated course page for deprecated levels

* deprecate algebra game projects

* Delete big_game_remix.feature

* safely check whether level exists and is deprecated

* deprecate contract match levels

* Delete big_game_versions.feature

* Update allthethings.script_json

* Update and remove tests
mikeharv added a commit that referenced this pull request Apr 27, 2024
* show deprecation page for calc and eval projects

* deprecate algebra game projects (#58168)

* deprecate algebra game projects

* Delete big_game_remix.feature

* Delete big_game_versions.feature

* show deprecated course page for script levels with deprecated levels (#58163)

* show deprecated course page for deprecated levels

* safely check whether level exists and is deprecated

* Deprecate contract match levels (#58191)

* show deprecated course page for deprecated levels

* deprecate algebra game projects

* Delete big_game_remix.feature

* safely check whether level exists and is deprecated

* deprecate contract match levels

* Delete big_game_versions.feature

* Update allthethings.script_json

* Update and remove tests

* hide deprecated projects from section projects list
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