-
Notifications
You must be signed in to change notification settings - Fork 1
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
Migrate data from umami old version to new version #2215
Open
ajinkyaraj-23
wants to merge
16
commits into
main
Choose a base branch
from
2195-updating-umami-should-not-lead-to-re-iimporting-all-my-accounts
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
5d33993
Save backup in a file while migrating from 2.3.3 to 2.3.4
ajinkyaraj-23 fea142f
Import the backupData in router.tsx
ajinkyaraj-23 56e779d
Add redux-persist migrations
OKendigelyan 5c56ec5
test
OKendigelyan 7ab4ccc
Set up data migration
OKendigelyan ee0c753
Correct leveldb parsing
OKendigelyan ccca67a
Refine backupData
OKendigelyan f230e8e
Add flag to check if migration is completed
OKendigelyan 82ec664
Add global types for electronApi
OKendigelyan a6a22ae
Update paths to electron local storage in electron.js
OKendigelyan 2c3ded3
Remove backup_leveldb.json
OKendigelyan e8c609e
test: add logs
serjonya-trili add0636
reorder createWindow and backup
serjonya-trili 52465f6
test: revert backup_leveldb.json and reorder
OKendigelyan cc03870
test: moved logic to Router.tsx
OKendigelyan 76b2886
Add loader
OKendigelyan File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
export {}; | ||
|
||
declare global { | ||
interface Window { | ||
electronAPI?: { | ||
onBackupData: (fn: (event: any, data?: Record<string, string>) => void) => void; | ||
}; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -93,9 +93,9 @@ | |
"@umami/state": "workspace:^", | ||
"@umami/test-utils": "workspace:^", | ||
"@umami/tezos": "workspace:^", | ||
"@umami/utils": "workspace:^", | ||
"@umami/typescript-config": "workspace:^", | ||
"@umami/tzkt": "workspace:^", | ||
"@umami/utils": "workspace:^", | ||
"@vitejs/plugin-react": "^4.3.4", | ||
"babel-jest": "^29.7.0", | ||
"bignumber.js": "^9.1.2", | ||
|
@@ -156,6 +156,10 @@ | |
}, | ||
"packageManager": "[email protected]", | ||
"dependencies": { | ||
"electron-updater": "6.3.9" | ||
"electron-log": "^5.2.4", | ||
"electron-updater": "6.3.9", | ||
"level": "^9.0.0", | ||
"level-supports": "^6.0.0", | ||
"level-transcoder": "^1.0.1" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import { Flex, Spinner } from "@chakra-ui/react"; | ||
|
||
export const Loader = () => ( | ||
<Flex | ||
position="absolute" | ||
zIndex="9999" | ||
top="0" | ||
left="0" | ||
alignItems="center" | ||
justifyContent="center" | ||
width="full" | ||
height="100vh" | ||
backdropFilter="blur(10px)" | ||
backgroundColor="rgba(0, 0, 0, 0.2)" | ||
> | ||
<Spinner /> | ||
</Flex> | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
export {}; | ||
|
||
declare global { | ||
interface Window { | ||
electronAPI?: { | ||
onBackupData: (fn: (event: any, data?: Record<string, string>) => void) => void; | ||
}; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
export {}; | ||
|
||
declare global { | ||
interface Window { | ||
electronAPI?: { | ||
onBackupData: (fn: (event: any, data?: Record<string, string>) => void) => void; | ||
}; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
export {}; | ||
|
||
declare global { | ||
interface Window { | ||
electronAPI?: { | ||
onBackupData: (fn: (event: any, data?: Record<string, string>) => void) => void; | ||
}; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about putting createWindow outside the try and catch block. we dont want people to encouter error if the restoration of backup fails. We just want them to see clear welcome screen.