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

Migration handler for JSON → DB store #69

Closed
petkodes opened this issue Sep 11, 2023 · 1 comment
Closed

Migration handler for JSON → DB store #69

petkodes opened this issue Sep 11, 2023 · 1 comment
Assignees
Labels
meta:triaged This issue has been triaged (has a good description, as well as labels for priority, size and type) p1 High priority size:small Small type:spike Additional research required

Comments

@petkodes
Copy link
Collaborator

No description provided.

@petkodes petkodes self-assigned this Sep 11, 2023
@petkodes petkodes added meta:awaiting-triage size:small Small p1 High priority type:spike Additional research required and removed meta:awaiting-triage labels Sep 11, 2023
@petkodes petkodes added the meta:triaged This issue has been triaged (has a good description, as well as labels for priority, size and type) label Sep 21, 2023
@hopeyen
Copy link
Collaborator

hopeyen commented Sep 21, 2023

Assume the we have already set up a database with appropriate resolvers to query, add, and remove entries

Migration steps

  1. make sure there is a persisted state json file AND no existing data in tables
  2. up on loading the cache for persisted state, allow the data to be read and serialized (currently exists here)
  3. iterate over the parsed data and insert each entry into the appropriate table
  4. delete the persisted state json file upon success of inserting all entries into db

@petkodes petkodes closed this as not planned Won't fix, can't repro, duplicate, stale Oct 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
meta:triaged This issue has been triaged (has a good description, as well as labels for priority, size and type) p1 High priority size:small Small type:spike Additional research required
Projects
None yet
Development

No branches or pull requests

2 participants