You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Due for payment 2025-06-11] [$250] Calculate missingComment, overCategoryLimit, and receiptRequired (for category) violations on the client #61790
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributor
Version Number: v9.1.43-5 Reproducible in staging?: Y Reproducible in production?: Y
Action Performed:
Note that this is currently working as designed, so this is more a feature request than a bug report, but I'm using the same template
Create workspace with a category that requires a description, flags amounts over $200, and always requires receipt
The workspace shouldn't require receipts as part of its rules, only the category above should
Create a money request for $300 and set the category that requires description
Notice the violations "Description required for selected category", "receipt required", and "amount over $200/person category limit" are shown
Go offline
Add a description and update the amount to $10
Notice how the violations "Description required for selected category", and "amount over $200/person category limit" don't disappear, since we calculate these violation only on the server
Go online
Wait a bit
Notice the violations disappears
Expected Result:
The violation should disappear
Actual Result:
The violations doesn't disappear, since we calculate this violation only on the server
Solution
Let's calculate the missingComment violation on the client
We have the information already in onyx inside the policyCategories_policyID key
If the description is empty and the money request category is set to one that requires a comment, display the violatino
If the description is not empty and the money request category is set to one that requires a comment, don't display the violation
Let's put this logic where the other logic calculating violations on the client is
⚠️ It looks like this issue is labelled as a New Feature but not tied to any GitHub Project. Keep in mind that all new features should be tied to GitHub Projects in order to properly track external CAP software time ⚠️
changed the title [-]Calculate missing comment for category on the client[/-][+][$250] Calculate missing comment for category on the client[/+]on May 9, 2025
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.1.58-4 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:
@rojiphil@Christinadobrzyn@rojiphil The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button]
[Contributor] If the regression was CRITICAL (e.g. interrupts a core flow) A discussion in #expensify-open-source has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner.
Link to discussion: Not Required. The existing checklist is good enough to capture such issues.
[Contributor] If it was decided to create a regression test for the bug, please propose the regression test steps using the template below to ensure the same bug will not reach production again.
Test 1:
Precondition: Workspace with Rules enabled
Go to Categories and press on any category
Then set the category rule with a rule set that requires a description, flags amounts over $200, and always requires receipt (The workspace rule shouldn't require receipts as part of its rules, only the category above should)
Create a money request for $300 without description and category
Turn offline and change the category to the one in (1)
Verify the violations "Description required for selected category", "receipt required", and "amount over $200/person category limit" are shown
Add a description and update the amount to $10
Verify the violations disappear
Test 2:
Precondition: Create an expense with a valid receipt image.
Go Offline.
Navigate to the expense report and open the receipt image.
Click on ThreeDots menu and Delete receipt.
Verify that the receipt image is removed.
Edit the Amount to a different amount.
Verify that the receipt image do not show a dummy receipt.
@Christinadobrzyn BZ checklist done. This is an improvement feature but we can add regression test cases for the same to prevent future regressions.
Also, please note that we had fixed another issue along with the improvement as mentioned here, here and here.
So, can we increase the compensation to $375 (i.e. $125 on top of $250) to accommodate the extra work involved?
cc @MarioExpensify@cead22
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributor
Activity
melvin-bot commentedon May 9, 2025
Triggered auto assignment to @Christinadobrzyn (
NewFeature), see https://stackoverflowteams.com/c/expensify/questions/14418#:~:text=BugZero%20process%20steps%20for%20feature%20requests for more details. Please add this Feature request to a GH project, as outlined in the SO.melvin-bot commentedon May 9, 2025
melvin-bot commentedon May 9, 2025
Triggered auto assignment to Design team member for new feature review - @shawnborton (
NewFeature)[-]Calculate missing comment for category on the client[/-][+][$250] Calculate missing comment for category on the client[/+]melvin-bot commentedon May 9, 2025
Job added to Upwork: https://www.upwork.com/jobs/~021920875184493148775
40 remaining items
melvin-bot commentedon Jun 4, 2025
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.1.58-4 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue:
If no regressions arise, payment will be issued on 2025-06-11. 🎊
For reference, here are some details about the assignees on this issue:
melvin-bot commentedon Jun 4, 2025
@rojiphil @Christinadobrzyn @rojiphil The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed. Please copy/paste the BugZero Checklist from here into a new comment on this GH and complete it. If you have the K2 extension, you can simply click: [this button]
Christinadobrzyn commentedon Jun 11, 2025
@rojiphil can you let us know about a regression test?
Payment summary here - #61790 (comment)
Moving to daily.
Christinadobrzyn commentedon Jun 12, 2025
nudge @rojiphil can you let us know about a regression test?
rojiphil commentedon Jun 12, 2025
BugZero Checklist:
Bug classification
Source of bug:
Where bug was reported:
Who reported the bug:
[Contributor] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake.
Link to comment:
[Contributor] If the regression was CRITICAL (e.g. interrupts a core flow) A discussion in #expensify-open-source has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner.
Link to discussion: Not Required. The existing checklist is good enough to capture such issues.
[Contributor] If it was decided to create a regression test for the bug, please propose the regression test steps using the template below to ensure the same bug will not reach production again.
https://github.com/Expensify/Expensify/issues/513365
Regression Test Proposal
Precondition:
Test:
Test 1:
Precondition: Workspace with Rules enabled
Test 2:
Precondition: Create an expense with a valid receipt image.
Delete receipt.Amountto a different amount.Do we agree 👍 or 👎
rojiphil commentedon Jun 12, 2025
@Christinadobrzyn BZ checklist done. This is an improvement feature but we can add regression test cases for the same to prevent future regressions.
Also, please note that we had fixed another issue along with the improvement as mentioned here, here and here.
So, can we increase the compensation to $375 (i.e. $125 on top of $250) to accommodate the extra work involved?
cc @MarioExpensify @cead22
Christinadobrzyn commentedon Jun 13, 2025
Thanks @rojiphil!
@MarioExpensify @cead22 can you lend your thoughts on the payment of this? #61790 (comment)
cead22 commentedon Jun 13, 2025
✅ 👍
Christinadobrzyn commentedon Jun 13, 2025
Thanks @cead22! I updated the payment summary to $375 (i.e. $125 on top of $250)
Regression test here #61790 (comment)
@rojiphil please request payment through ND. Closing!
garrettmknight commentedon Jun 19, 2025
$375 approved for @rojiphil