-
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
[Awaiting payment] [$250] [Dupe detection] Description review appears when distance expenses are created without description #47974
Comments
Triggered auto assignment to @adelekennedy ( |
We think that this bug might be related to #wave-control |
@adelekennedy FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors |
ProposalPlease re-state the problem that we are trying to solve in this issue.Dupe detect -Description review appears when distance expenses are created without description What is the root cause of that problem?
App/src/libs/TransactionUtils/index.ts Lines 962 to 965 in 0c84552
What changes do you think we should make in order to solve the problem?We should remove the const getTransactionCommentWithoutWaypointKeys = (firstTransaction: OnyxEntry<Transaction['comment']>) => {
// Remove keyForList from each waypoint
const updatedWaypoints = Object.fromEntries(Object.entries(firstTransaction?.waypoints ?? {}).map(([key, waypoint]) => [key, (({keyForList, ...rest}) => rest)(waypoint)]));
// Create the new object
const updatedData = {
...firstTransaction,
waypoints: updatedWaypoints,
};
return updatedData;
};
// Helper function to check if all comments are equal
function areAllCommentsEqual(items: Array<OnyxEntry<Transaction>>, firstTransaction: OnyxEntry<Transaction>) {
return items.every((item) => {
if (item?.comment?.waypoints) {
return lodashIsEqual(getTransactionCommentWithoutWaypointKeys(item.comment), getTransactionCommentWithoutWaypointKeys(firstTransaction?.comment));
}
return lodashIsEqual(item?.comment, firstTransaction?.comment);
});
} What alternative solutions did you explore? (Optional)The App/src/libs/TransactionUtils/index.ts Line 989 in 0c84552
We can update
Resultdiscription_confirmation_issue.mp4 |
ProposalPlease re-state the problem that we are trying to solve in this issue.
What is the root cause of that problem?
What changes do you think we should make in order to solve the problem?
return items.every((item) => lodashIsEqual(getDescription(item), getDescription(firstTransaction))); App/src/libs/TransactionUtils/index.ts Line 989 in 0c84552
const allCommentsAreEmpty = isFirstTransactionCommentEmptyObject && transactions.every((item) => getDescription(item) === ''); What alternative solutions did you explore? (Optional) |
Job added to Upwork: https://www.upwork.com/jobs/~01d6cf4756c6ab01be |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @mananjadhav ( |
Dupe detection is a #wave-control project. CC: @dylanexpensify @pecanoro @parasharrajat @kubabutkiewicz |
Are we looking at regression or something @trjExpensify ? Should I go ahead with the proposal reviews? |
Go ahead with the reviews, I was just bringing it to the attention of the dupe detection team. |
The cause and proposals seem to be the same as this one #47975 so we can go ahead with this one for now |
@mananjadhav Could you review the proposals when you have a moment? |
Current assignee @pecanoro is eligible for the choreEngineerContributorManagement assigner, not assigning anyone new. |
This issue has not been updated in over 15 days. @mananjadhav, @pecanoro, @adelekennedy, @daledah eroding to Monthly issue. P.S. Is everyone reading this sure this is really a near-term priority? Be brave: if you disagree, go ahead and close it out. If someone disagrees, they'll reopen it, and if they don't: one less thing to do! |
PR has been merged and deployed to staging |
PR has been on production for a week, not sure why the automatization did not work, so I am going to adjust manually |
@adelekennedy this is ready for payout. I don't have a specific offending PR for this one. We've been comparing raw comment hence the issue. But I feel we should have a regression test for this. Regression test proposal:
|
Payouts due:
|
@adelekennedy Hi, can you create the offer and send to me at https://www.upwork.com/freelancers/~0138d999529f34d33f |
@daledah hired you for the job |
@adelekennedy Many thanks, accepted offer 👍 |
payments made |
$250 approved for @mananjadhav |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Version Number: v9.0.24-1
Reproducible in staging?: Y
Reproducible in production?: Y
Email or phone of affected tester (no customers): [email protected]
Issue reported by: Applause Internal Team
Action Performed:
Expected Result:
Description review will not show up because both distance expenses are created without description.
Actual Result:
Description review appears when both distance expenses are created without description.
Workaround:
Unknown
Platforms:
Screenshots/Videos
Bug6581468_1724512231051.20240824_230448.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @adelekennedyThe text was updated successfully, but these errors were encountered: