-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Reinstate fix get all ancestors in a thread #43518
Reinstate fix get all ancestors in a thread #43518
Conversation
…t.parentReportID to ancestor.report.reportID.
@rushatgabhane 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] |
@kmbcook im not able to load the header of any room/workspace ![]() |
@rushatgabhane it is working for me. I did just merge main and resolve a conflict in ThreadDivider, and I cleared my cache, but I'm not sure that any of those things would affect the problem you are seeing. Here are my screenshots. |
@kmbcook this PR breaks trips - ![]() The parent action is shown instead of trip data |
@rushatgabhane it looks like it is difficult for me to look into the problem you are talking about with trips because I am not on the travel beta. I'd be glad to look at the problem further is someone could add kevincook13@gmail.com to the beta. Since travel is still in beta do you want to go ahead with this PR even if it does break trips, and let trips work around this change? Or, do you want to wait until travel is out of beta and ensure that this PR does not break trips then? |
…estor report action is trip preview.
@rushatgabhane I think that problem you pointed out with trips is fixed now. |
reviewing |
@kmbcook travel looks good 👍 |
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.
Bug: invoice detail is duplitcated
Screen.Recording.2024-07-26.at.06.36.51.mov
@rushatgabhane I just merged main and took a video of opening invoice detail on main, and on this PR. Both videos look identical. This PR: PR.movMain: Main.mov |
@kmbcook the bug i mentioned is different. It has the payment details show two times. This is for expenses that have been approved Steps:
![]() |
@rushatgabhane I still can't reproduce the problem you are showing me. Here is what I see. (I just merged main again) Account A (Kevin) submitted an expense. Fred.movVideo of Kevin's view: Kevin.mov |
@rushatgabhane I wonder if this problem is specific to invoices. I see in the first video you sent that the header displays "Rushat's Expenses" and "Invoices". In my videos the header displays differently. |
my bad! yeah could be for invoices
if you don't see this, enable all betas in permissions.ts |
I see it! |
@rushatgabhane the same problem exists on main. |
Reviewer Checklist
Screenshots/VideosAndroid: mWeb Chrome |
@kmbcook LGTM! i understand that the unit tests cover everything but please add some screenshots as they are required |
Conflicts |
@rushatgabhane videos are now posted, and conflicts resolved. |
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.
LGTM, thanks!
✋ 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/marcochavezf in version: 9.0.18-0 🚀
|
🚀 Deployed to production by https://github.com/mountiny in version: 9.0.18-10 🚀
|
@@ -6897,14 +6897,12 @@ function getAllAncestorReportActions(report: Report | null | undefined): Ancesto | |||
let parentReportID = report.parentReportID; |
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.
With these changes the reportID contains the reportID of the report where the action belongs to, if we create a thread from report A, the reportID will be report A instead of B. So, isThreadFirstChat will always be false.
This caused the Join Thread to shows up for thread first chat. This resulted in #50262
We had a regression. Quoting from #52146 (comment): "the reportID now contains the reportID of the report where the action belongs to (the ancestor tree is lifted 1 level above). So when we delete the comment, |
Details
This pull request corrects an error getting all ancestors in a thread. The steps for reproducing this issue are no longer relevant because report preview actions are no longer displayed as parent actions in a thread. The root cause of this issue still exists, which causes inconsistency and confusion in the code. The purpose of this PR is to clean up the code.
See proposals in all three issues:
#41519 (comment)
#43175 (comment)
#43190 (comment)
Fixed Issues
$ #41519
$ #43175
$ #43190
PROPOSAL: #41519 (comment)
Tests
The primary test required for this change is covered by a revised unit test, which is included in this PR. Other testing is just to ensure that there are no regressions.
Offline tests
Covered by revised unit test.
QA Steps
Covered by revised unit test.
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label and/or tagged@Expensify/design
so the design team can review the changes.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-Chrome.mov
iOS: Native
IOS-Native.mov
iOS: mWeb Safari
IOS-Safari.mov
MacOS: Chrome / Safari
Mac-Chrome.mov
MacOS: Desktop
Mac-Desktop.mov