-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Onyx migration for transactions backups #31280
Onyx migration for transactions backups #31280
Conversation
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.
Thanks for changing that around!
Hey, @tgolen, do I need to complete the PR Author Checklist? If so, do the tests need to be related to the other PR? |
Yes, please. Many of the points will not apply but they still need to be checked.
Here is an example of a PR that I wrote for an Onyx migration: #27203 which might give you some ideas. I think a basic test that functionality still works with the new collection would be good to have. |
@toglen Could you review the PR Author Checklist, please? Some don't apply, so I did not cross them. Also, I couldn't build an Android app, so I left it empty. Is it acceptable? |
@Tony-MK you need to fill all items even though they are not relevant.
|
There was recent announcement regarding this - https://expensify.slack.com/archives/C01GTK53T8Q/p1700075112873269 |
@situchan Thank you. What about the console errors? |
what console errors? |
From the PR Author Checklist:
There are some errors that appear in the Chrome Dev Tools console, but the PR didn't create them. The same errors also appear with the main branch. |
No worries about them as long as they aren't caused by this PR |
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.
@situchan Would you like to run through the reviewer checklist on this one?
Sure! |
This happens on main but is this expected or bug?
Screen.Recording.2023-11-20.at.10.07.45.PM.mov |
…tions to imporve performance. Also, edited file description and comments to improve clarity, conciseness and grammar
Found weird bug happening on main: Screen.Recording.2023-11-21.at.4.41.13.AM.movRepro step:
|
Reviewer Checklist
Screenshots/VideosAndroid: NativeAndroid: mWeb ChromeiOS: NativeiOS: mWeb SafariMacOS: Chrome / Safariweb.movMacOS: Desktop |
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.
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
Hm, yeah... I guess we did kind of go around the process for this one. The best thing to do would be to go back and go through the process:
|
We can use #31593 |
We can skip BZ checklist. This is not bug but dev improvement. |
🚀 Deployed to staging by https://github.com/tgolen in version: 1.4.2-0 🚀
|
🚀 Deployed to production by https://github.com/luacmartins in version: 1.4.2-3 🚀
|
Details
This migration moves all the transaction backups stored in the transaction collection, ONYXKEYS.COLLECTION.TRANSACTION, to a reserved collection that only stores draft transactions, ONYXKEYS.COLLECTION.TRANSACTION_DRAFT. The purpose of the migration is that there is a possibility that transaction backups are not filtered by most functions when all transactions are fetched.
One problem that arose from storing transaction backups with the other transactions is that for every distance request that has their waypoints updated offline, we expect the ReportPreview component to display the default image of a pending map. However, due to the presence of the transaction backup, the previous map image will be displayed alongside the current pending map. The problem was further discussed in this PR. #30232 (comment)
Fixed Issues
$
PROPOSAL:
Tests
Offline tests
QA Steps
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodApp/src/components/withLocalize.js
Lines 60 to 68 in 4bd9940
Waiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.Screenshots/Videos
Android: Native
Android.-.Native.mov
Android: mWeb Chrome
Android.-.mWeb.Chrome.mov
iOS: Native
iOS.-.Native.mov
iOS: mWeb Safari
iOS.-.mWeb.Safari.mp4
MacOS: Chrome / Safari
macOS.-.Chrome.mov
MacOS: Desktop
macOS.-.Desktop.mov