-
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
Replace report.participants
with *.participantAccountIDs
(Pt 1)
#22639
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.
Updated this prop name to try to be a bit more clear
const accountID = participantAccountIDs[i]; | ||
|
||
if (allPersonalDetails[accountID] && allPersonalDetails[accountID].login) { | ||
searchTerms = searchTerms.concat(allPersonalDetails[accountID].login); |
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 would be interesting to also allow search by display name, but i think search improvements are coming in Daniel S's proj
src/libs/ReportUtils.js
Outdated
// TODO: update to use report.participantAccountIDs | ||
// Note: To migrate we have to make sure the "duplicate chat report" issue doesn't come back: | ||
// https://github.com/Expensify/App/issues/21184 |
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.
MAIN TODO WE'RE BLOCKED ON IS HERE
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.
Nevermind - this case will be handled here: #21184
- so it's expected we still access
report.participants
here
report.participants
with *.participantAccountIDs
report.participants
with *.participantAccountIDs
(Pt 1)
@AndrewGable 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] |
I confirmed that this also happens on main so not a blocker. Screen.Recording.2023-07-11.at.9.09.01.PM.mov |
Thanks @0xmiroslav - yeah that duplicate chat issue is working on getting solved in @puneetlath 's PR: #22147 (with a backend change too #22147) |
Will that possibly fix #21877 (comment) as well? ![]() |
Ooh that's interesting @0xmiroslav - I don't thinkkkk so, I think the PR addresses creating new chats w/ users you don't have personal details for |
@0xmiroslav anything you need from me before you can continue testing? |
@Beamanator these are failing for me. There are 2 duplicate accounts data in Screen.Recording.2023-07-12.at.5.18.24.PM.mov |
…ortParticipantsArray
@0xmiroslav arggggg thanks, will check that out now 👍 |
@0xmiroslav it looks like that's easily reproduced in staging (probably in prod too), so I will change my test steps actually - this seems similar to this issue (#21706) but there could already be an exact issue for this. Screen.Recording.2023-07-13.at.11.36.11.AM.mov |
@0xmiroslav removed that test case since it's being handled elsewhere, please re-review 🙏 |
Reviewer Checklist
Screenshots/VideosWebScreen.Recording.2023-07-12.at.5.18.24.PM.mov
Screen.Recording.2023-07-12.at.5.27.40.PM.movMobile Web - ChromeMobile Web - SafariDesktopiOSAndroid |
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.
Please fix conflict
…ortParticipantsArray
Co-authored-by: Miroslav Stevanovic <97473779+0xmiroslav@users.noreply.github.com>
Conflicts fixed! (they were only in test files thankfully) - @AndrewGable ready for your review 👍 |
@roryabraham 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] |
@roryabraham removing your review request b/c @AndrewGable is already assigned to review - however please feel free to review if you'd like :D |
@AndrewGable can you please review or assign someone else to review this today?? This is part of the initiative to remove emails from Onyx and we'd like to get this merged ASAP! |
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
🚀 Deployed to staging by https://github.com/AndrewGable in version: 1.3.42-0 🚀
|
🚀 Deployed to production by https://github.com/jasperhuangg in version: 1.3.42-26 🚀
|
Details
Migrating one of the last places we store emails in onyx to accountIDs 👍
Note: this issue (#21184) will be handled in a PR that remove use of
report.participants
, but not in this one 👍Fixed Issues
$ Related to https://github.com/Expensify/Expensify/issues/294647
Tests
personalDetailsList
)Note: The following case doesn't need to be tested, there's a bug that's being handled in this issue: #21706
Offline tests
Same as above, all tests should also work while offline
QA Steps
Same as above
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