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

feat: Add support for user data migration from local storage #1199

Merged
merged 5 commits into from
Oct 24, 2024

Conversation

lhvy
Copy link
Contributor

@lhvy lhvy commented Oct 20, 2024

Resolves #1172

  • Add Redux migrator that moves local storage user data from persist:root into oldUser
  • Add functionality in Degree Wizard to import from, download, or clear oldUser
  • Add support for the migration query parameter on the landing page, which given a valid UserJson type as a JSON string, will write it to oldUser on page load, allowing for circles.csesoc.app to redirect to circles.devsoc.app with the converted data in the URL, and then the existing migration flow via Degree Wizard to be followed

All tested locally but please please please test it more! Thanks. Also I bumped antd for new link style. Seems fine and changelog didn't indicate any breaking changes we needed to worry about.

@lhvy lhvy added 📝 feature 🧠 New feature or request 👤 closed for help 👥 Closed to external help, team only 🫣 331 🤫 Is only in scope within the current 331 branch labels Oct 20, 2024
@lhvy lhvy self-assigned this Oct 20, 2024
@lhvy lhvy requested a review from a team as a code owner October 20, 2024 06:05
@lhvy lhvy linked an issue Oct 20, 2024 that may be closed by this pull request
@lhvy lhvy enabled auto-merge (squash) October 24, 2024 08:44
Copy link
Contributor

@martanman martanman left a comment

Choose a reason for hiding this comment

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

lgtm!!!!

@lhvy lhvy merged commit 556eb69 into 331-staging Oct 24, 2024
8 checks passed
@lhvy lhvy deleted the feat/all/1172/migration branch October 24, 2024 08:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
👤 closed for help 👥 Closed to external help, team only 📝 feature 🧠 New feature or request 🫣 331 🤫 Is only in scope within the current 331 branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

setup migration for redux persist (localstorage -> backend)
3 participants