Skip to content

Migrate pegasus.storage_apps => dashboard.projects all ENVs - #45480

Merged
maureensturgeon merged 8 commits into
stagingfrom
maureen/LP-2268-storage-apps-migration-all-envs
Mar 30, 2022
Merged

Migrate pegasus.storage_apps => dashboard.projects all ENVs#45480
maureensturgeon merged 8 commits into
stagingfrom
maureen/LP-2268-storage-apps-migration-all-envs

Conversation

@maureensturgeon

@maureensturgeon maureensturgeon commented Mar 24, 2022

Copy link
Copy Markdown
Contributor

Migration of storage_apps to dashboard to run on all environments once the migration has been completed in production (#45476). Also removes the DCDO flag which would switch between pegasus.storage_apps and dashboard.projects, and just points our code at dashboard.projects.

Links

Testing story

Tested various scenarios locally to ensure project-related code was working as expected. Including

  • public projects list
  • creating/updating projects
  • admin projects page
  • remixing project
  • project-backed levels
  • section projects list

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

@maureensturgeon
maureensturgeon force-pushed the maureen/LP-2268-storage-apps-migration-all-envs branch from 721a69d to 7a34594 Compare March 28, 2022 22:21
@maureensturgeon
maureensturgeon force-pushed the maureen/LP-2268-storage-apps-migration-all-envs branch from 5de9a6d to 2945297 Compare March 28, 2022 23:41
@maureensturgeon maureensturgeon changed the title All ENVs pegasus.storage_apps => dashboard.projects Migrate pegasus.storage_apps => dashboard.projects all ENVs Mar 29, 2022
@maureensturgeon
maureensturgeon marked this pull request as ready for review March 29, 2022 16:52
@maureensturgeon
maureensturgeon requested a review from a team as a code owner March 29, 2022 16:52
@maureensturgeon
maureensturgeon requested review from a team March 29, 2022 16:52

@jamescodeorg jamescodeorg left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🎉

# and there will be no previously existing storage_apps data, so the old pegasus table can be dropped.
# The view will be created for consistency across environments.
if is_table_already_exists_error && is_pegasus_table_empty
puts "projects has already been created, dropping pegasus storage_apps..."

@sureshc sureshc Mar 29, 2022

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

It might be safer for us to use CDO.log instead of puts. We have logic that treats any usage of puts in a cron job as an error that should result in a HoneyBadger notification and this migration will be run by our automated build job (/aws/ci_build) on non-production managed environments.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I could be wrong about puts (standard out) triggering a HoneyBadger error, but still probably more consistent for us to use CDO.log whenever possible.

@sureshc sureshc left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I don’t have enough context to provide useful feedback on the application logic changes, but the new schema.rb and the Sequel migration look great!

@maureensturgeon
maureensturgeon merged commit 9930e66 into staging Mar 30, 2022
@maureensturgeon
maureensturgeon deleted the maureen/LP-2268-storage-apps-migration-all-envs branch March 30, 2022 23:15
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