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

deprecate algebra game projects #58168

Conversation

mikeharv
Copy link
Contributor

@mikeharv mikeharv commented Apr 22, 2024

In addition to Calc and Eval, which are children of Play Lab (aka Studio), CS in Algebra uses a subtype of Play Lab itself. Play Lab supports the contract editor in the form of "algebra game" projects and levels. We can mark these as deprecated which will prevent users from loading these projects.

Based on:

Once we get the ability to mark specific level types as deprecated (e.g. Calc and Eval), we can extend this as needed to other types.

We should also update our list of deprecated project types for the purpose of filtering student personal projects. This was implemented a few weeks ago #57776 and just requires to add the new project type to a list.

Before:

image
image

After:
image
image

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

Jira: https://codedotorg.atlassian.net/browse/CT-515

Testing story

I manually confirmed that there are no regressions to other Play Lab projects.

As algebra game projects are no longer supported, the related tests will break if they are not removed.

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 mentioned this pull request Apr 23, 2024
8 tasks
@mikeharv mikeharv marked this pull request as ready for review April 23, 2024 20:17
@mikeharv mikeharv requested a review from a team April 23, 2024 20:17
@@ -189,4 +189,4 @@ export const NOTIFICATION_ALERT_TYPE = 'notification';

export const START_BLOCKS = 'start_blocks';

export const DEPRECATED_LABS = ['calc', 'eval'];
export const DEPRECATED_PROJECT_TYPES = ['algebra_game', 'calc', 'eval'];
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I renamed this because 'algebra_game' is technically Play Lab, and so these types aren't really full "labs".

@mikeharv mikeharv merged commit 3884e76 into mike/deprecate-calc-and-eval-projects Apr 23, 2024
1 check passed
@mikeharv mikeharv deleted the mike/deprecate-algebra-game-projects branch April 23, 2024 22:47
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