-
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
Remove remaining uses of originalMessage.participants
as part of personalDetails migration
#21877
Conversation
const participantAccountIDs = reportAction.originalMessage.participantAccountIDs || PersonalDetailsUtils.getAccountIDsByLogins(reportAction.originalMessage.participants); | ||
const participantAccountIDs = reportAction.originalMessage.participantAccountIDs; |
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.
@puneetlath I thinkkkk we're only going to be able to do this once we finish the DB migration - https://github.com/Expensify/Expensify/issues/292074
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.
I think we should go ahead and let old IOUs break. We should clean them up, but we don't need to block this on it.
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.
Alright i think that's fair - then let's do this!! 👍 And the DB migration is ready to go at a moment's notice anyway so we can get this to production & finish the migration quick 👍
originalMessage.participants
as part of personalDetails migrationoriginalMessage.participants
as part of personalDetails migration
originalMessage.participants
as part of personalDetails migrationoriginalMessage.participants
as part of personalDetails migration
@stitesExpensify Please copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
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.
Tests well so far. Will checklist tomorrow morning
Please fill author checklist |
working on it now! |
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.
Code LGTM, just one question
Money request features are very broken on main. Both request money and split bill. Screen.Recording.2023-07-07.at.9.04.04.AM.movScreen.Recording.2023-07-07.at.8.59.49.AM.mov |
Another weird bug: Screen.Recording.2023-07-07.at.9.09.55.AM.movAll these bugs are not consistent. And sometimes works with some contact, not work with another contact. |
In this bug, even not able to request money showing console error Screen.Recording.2023-07-07.at.9.14.22.AM.mov |
Here's working videos: (both DM and workspace) Screen.Recording.2023-07-07.at.9.00.52.AM.movScreen.Recording.2023-07-07.at.9.12.51.AM.mov |
@Beamanator all above bugs happen on both main and this PR. No new regressions caused by this PR. |
@0xmiroslav thanks so much for you testing, I'm going to look into some of these issues on main shortly - but for this PR I think we can move forward, there's basically only 1 place we're truly removing changing things (moving our use of |
Reviewer Checklist
Screenshots/VideosWebMobile Web - ChromeMobile Web - SafariDesktopiOSAndroid |
🚀 Deployed to staging by https://github.com/puneetlath in version: 1.3.38-2 🚀
|
🚀 Deployed to production by https://github.com/francoisl in version: 1.3.38-7 🚀
|
Details
This PR removes/replaces all use of
reportActions_*.originalMessage.participants
. This is part of the email -> accountID migration.Note: This is NOT dealing with
report_*.participants
!! OnlyreportActions_*.originalMessage.participants
👍Fixed Issues
$ Related to #19007
Tests
Luckily we don't check this often, so the only places we need to test are:
Note: splitting bills with users you don't already have chats with seems to be broken, but it also seems to be broken on main.
Offline tests
Same as online tests.
QA Steps
Same as tests.
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodWaiting 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)/** comment above it */
this
properly so there are no scoping issues (i.e. foronClick={this.submit}
the methodthis.submit
should be bound tothis
in the constructor)this
are necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);
ifthis.submit
is never passed to a component event handler likeonClick
)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
Web
Mobile Web - Chrome
Mobile Web - Safari
Desktop
iOS
Android