-
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
Put duplicate detection under a new beta #43864
Conversation
@akinwale We need to put the new code behind a beta and since you reviewed the original PR, I was wondering if you could review and test this one too! I would say just testing that dupe detection does not work if we have a beta. I still need to add the beta to the back-end so you can only test it does not work for now. |
Reviewer Checklist
Screenshots/VideosAndroid: NativeAndroid: mWeb ChromeiOS: NativeiOS: mWeb SafariMacOS: Chrome / Safari43864-web.mp4MacOS: Desktop |
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.
@youssef-lr 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] |
✋ 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/bondydaa in version: 1.4.86-0 🚀
|
1 similar comment
🚀 Deployed to staging by https://github.com/bondydaa in version: 1.4.86-0 🚀
|
🚀 Deployed to staging by https://github.com/bondydaa in version: 1.4.86-0 🚀
|
🚀 Deployed to production by https://github.com/AndrewGable in version: 9.0.0-9 🚀
|
@@ -693,6 +704,10 @@ function hasNoticeTypeViolation(transactionID: string, transactionViolations: On | |||
* Checks if any violations for the provided transaction are of type 'warning' | |||
*/ | |||
function hasWarningTypeViolation(transactionID: string, transactionViolations: OnyxCollection<TransactionViolation[]>): boolean { | |||
if (!Permissions.canUseDupeDetection(allBetas ?? [])) { |
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 caused this bug. With this change, hasWarningTypeViolation always returns false if canUseDupeDetection is false, but dupe detection is only one reason that causes a warning violation type. When a receipt scanning fails, the BE still returns a warning violation
Details
We just opened violations for everyone so we need to put dupe detection under a new beta to not break things.
Fixed Issues
$ https://github.com/Expensify/Expensify/issues/405681
$ https://expensify.slack.com/archives/C036QM0SLJK/p1718119516375829
PROPOSAL:
Tests
With your expensify account or any other that is not expensifail (which has all betas enabled):
Offline tests
Same as 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 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: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop