-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
fix: clear duplicated report data #45295
Conversation
Signed-off-by: dominictb <[email protected]>
Signed-off-by: dominictb <[email protected]>
Excellent! Give me a couple of days to test this PR thoroughly. |
@@ -1322,18 +1330,35 @@ function handleReportChanged(report: OnyxEntry<Report>) { | |||
let callback = () => { | |||
Onyx.set(`${ONYXKEYS.COLLECTION.REPORT}${report.reportID}`, null); |
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.
Don't we need to clear the REPORT_DRAFT_COMMENT
of report.reportID
as well?
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.
added
src/libs/actions/Report.ts
Outdated
@@ -1322,18 +1330,35 @@ function handleReportChanged(report: OnyxEntry<Report>) { | |||
let callback = () => { | |||
Onyx.set(`${ONYXKEYS.COLLECTION.REPORT}${report.reportID}`, null); | |||
}; | |||
|
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.
Sorry, but do we need this line?
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.
deleted
@dominictb will you be able to address the feedback today? |
Thank you very much @dominictb, I'll continue testing, I haven't run it in native yet, But everything looks good so far, I'll come back with the checklist ASAP. |
Reviewer Checklist
Screenshots/VideosMacOS: Chrome / Safari45295_web.movMacOS: Desktop45295_desktop.mov |
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, all yours @puneetlath :D
I believe that something wrong happened with the automation, perhaps because I didn't paste the 🎀👀🎀 in the original issue to assign a responsible, do I do that now? Thank you!
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
Sorry, @brunovjk I don't quite follow what you mean. It looks like it did successfully assign me. |
Awesome! It's all good then :D |
🚀 Deployed to staging by https://github.com/puneetlath in version: 9.0.7-3 🚀
|
🚀 Cherry-picked to staging by https://github.com/thienlnam in version: 9.0.7-4 🚀
@Expensify/applauseleads please QA this PR and check it off on the deploy checklist if it passes. |
@puneetlath How can we create Duplicate report to validate this TC? |
@mvtglobally there's not really a way, but I QA'd it with my account which had some of these reports and it seems to have fixed it. |
I manually added some reports in Onyx with a |
🚀 Deployed to production by https://github.com/thienlnam in version: 9.0.7-8 🚀
|
🚀 Deployed to production by https://github.com/mountiny in version: 9.0.8-6 🚀
|
Details
Fixed Issues
$ #45035
PROPOSAL: #45035 (comment)
Tests
Pre-requisite: In Onyx we should have different duplicated report record (
report.preexistingReportID
is not empty). Some of the duplicated report record should be shown in the LHNVerify that: All reports or IOU displayed with username and message. When clicking on these report it won't show not found page.
Offline tests
QA Steps
Pre-requisite: We should have different duplicated report records (
report.preexistingReportID
is not empty). Some of the duplicated report record should be shown in the LHNVerify that: All reports or IOU displayed with username and message. When clicking on these report it won't show not found page.
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
N/A
Android: mWeb Chrome
compressed_android.webm.mp4
iOS: Native
N/A
iOS: mWeb Safari
iosweb.mp4
MacOS: Chrome / Safari
compressed_web.mov.mp4
MacOS: Desktop
compressed_web.mov.mp4