Fix get all ancestors in a thread#42554
Conversation
…der to more easily demonstrate that issue 41519 has been fixed.
…ng to that report which is parent of its child report.
|
@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] |
|
I see there is a failing unit test, which test I believe is incorrect and will need to be re-written. |
|
testing |
Reviewer Checklist
Screenshots/VideosAndroid: NativeScreen.Recording.2024-05-31.at.02.34.36.movAndroid: mWeb ChromeiOS: NativeScreen.Recording.2024-05-31.at.02.34.00.mov |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
Hey, I'm struggling to locate a regression where opening users comment on a new MoneyReport, then 'Reply in Thread' and try to tap the blue This is one of a few PRs that seem either a cause or just related. If you have any thoughts or suggestions, please let me know. |
|
revertt |
|
@rushatgabhane I'll take a look at this now. It looks like the PR #43201 to revert this change has already been merged. I have a question. We know that this change corrects an earlier error and cleans up the code. Instead of reverting this change why don't we continue with code clean-up by fixing the regressions, which code we now know has been relying on the previous error? I can see in some instances that it is better to leave a previous error in place and build around it. But in this case, isn't the previous error one that would be worth the extra effort to clean up? |
|
See the following proposals: 43172 and 43190 are duplicates. My proposal for both is in 43190. |
|
@rushatgabhane note that without this PR we have two conflicting definitions of an ancestor object, one as used in ThreadDivider and another as used in ReportActionItem. It will clarify code and help to prevent future issues by having only one definition of an ancestor object, the definition used in ReportActionItem. See #43190 (comment). |
|
🚀 Deployed to production by https://github.com/luacmartins in version: 1.4.81-11 🚀
|





Details
This changes fixes a problem getting all ancestors in a thread. This problem is currently not visible because report preview actions are currently not permitted to be thread ancestors, which also makes this solution not visible. In order to make this solution visible for the purpose of making videos for this pull request, a temporary change allowing report preview actions to be thread ancestors has been added. After making the videos, the temporary change was removed.
Fixed Issues
$ #41519
PROPOSAL: #41519 (comment)
Tests
Offline tests
Same behavior.
QA Steps
Same as tests.
PR Author Checklist
### Fixed Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.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