-
-
Notifications
You must be signed in to change notification settings - Fork 154
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
ZEUS-2683: Storage: migrate from react-native-encrypted-storage
to react-native-keychain
#2687
Conversation
77ae325
to
daf3cab
Compare
c772e58
to
72b7af8
Compare
'LAST_CHANNEL_BACKUP_TIME', | ||
`${new Date()}` | ||
); | ||
await Storage.setItem('LAST_CHANNEL_BACKUP_STATUS', status); |
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.
why didn't we change the key here to variable LAST_CHANNEL_BACKUP_STATUS
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.
It's the same.
Note that there are two keys here: LAST_CHANNEL_BACKUP_STATUS
and LAST_CHANNEL_BACKUP_TIME
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.
It looks like POS migration didn't complete properly. We get errors when trying to add category or products
Error saving category: [TypeError: existingCategories.find is not a function (it is undefined)]
Good catch. Fixed. |
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.
Items to test:
In testing, try removing and adding items, where applicable |
|
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.
tACK
Description
Relates to issue: ZEUS-2683, ZEUS-2475
This pull request is categorized as a:
Checklist
yarn run tsc
and made sure my code compiles correctlyyarn run lint
and made sure my code didn’t contain any problematic patternsyarn run prettier
and made sure my code is formatted correctlyyarn run test
and made sure all of the tests passTesting
If you modified or added a utility file, did you add new unit tests?
I have tested this PR on the following platforms (please specify OS version and phone model/VM):
I have tested this PR with the following types of nodes (please specify node version and API version where appropriate):
Locales
Third Party Dependencies and Packages
yarn
after this PR is merged inpackage.json
andyarn.lock
have been properly updatedOther: