If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
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
Platforms:
This should work the same in all platforms
Screenshots/Videos
Upwork Automation - Do Not Edit
- Upwork Job URL: https://www.upwork.com/jobs/~021920875184493148775
- Upwork Job ID: 1920875184493148775
- Last Price Increase: 2025-05-09
- Automatic offers:
- FitseTLT | Contributor | 107291199
Issue Owner
Current Issue Owner: @Christinadobrzyn
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
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
Expected Result:
The violation should disappear
Actual Result:
The violations doesn't disappear, since we calculate this violation only on the server
Solution
Platforms:
This should work the same in all platforms
Screenshots/Videos
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @Christinadobrzyn