Open isagoico opened 2 months ago
Current assignee @JmillsExpensify is eligible for the Bug assigner, not assigning anyone new.
📣 @goncastrum! 📣 Hey, it seems we don’t have your contributor details yet! You'll only have to do this once, and this is how we'll hire you on Upwork. Please follow these steps:
Contributor details
Your Expensify account email: <REPLACE EMAIL HERE>
Upwork Profile Link: <REPLACE LINK HERE>
Expense rules are not empty by default
We set default values when a workspace is being upgraded
Remove the 3 lines mentioned above. Additionally remove DEFAULT_MAX_EXPENSE_AGE
, DEFAULT_MAX_EXPENSE_AMOUNT
, and DEFAULT_MAX_AMOUNT_NO_RECEIPT
from the CONST
file as they will be no longer used.
@marcaaron should we keep this internal as part of the on-going implementation or handle externally?
@JmillsExpensify Eep! 4 days overdue now. Issues have feelings too...
Posted in Slack.
I think the solution proposed above will work so we can make this External
. There's no BE changes needed AFAICT. We just need to update these values to the DISABLED_MAX_EXPENSE_VALUE
.
Job added to Upwork: https://www.upwork.com/jobs/~021834670232070295133
Triggered auto assignment to Contributor-plus team member for initial proposal review - @suneox (External
)
📣 @suneox 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app!
📣 @CyberAndrii 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app!
Offer link Upwork job Please accept the offer and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review 🧑💻 Keep in mind: Code of Conduct | Contributing 📖
Hm, when I went to record videos, my fix worked fine on the desktop app, but then in Safari it didn't. There seems to be a bug that prevents applying onyx data from the BE which tricked me into thinking this is a FE only issue. I managed to reproduce it by creating a workspace while offline. This causes the CreateWorkspace
request to wait indefinitely for a response (you can see a loading indicator in devtools), which stalls the update queue.
So this also needs a fix on the backend. Should I still submit a PR?
https://github.com/user-attachments/assets/5d01c8a3-6d3f-42ca-9e19-d65213920f70
@marcaaron We need the backend to update the response value without the maxExpense...
values
then we can apply FE change to update optimisticData
without default values
@JmillsExpensify @suneox @marcaaron @CyberAndrii this issue was created 2 weeks ago. Are we close to approving a proposal? If not, what's blocking us from getting this issue assigned? Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks!
Ah bummer. Ok, I will raise the PR to fix this.
So this also needs a fix on the backend. Should I still submit a PR?
I mean we are still setting the optimistic data incorrectly so yes?
Also just to make sure this is needed...
@JmillsExpensify the doc actually says:
We won’t set a default for Require receipt amount, Max expense amount, and Max expense age (days) when Rules are first enabled.
I'm not sure that was intended to mean "when a user upgrades", but just when they "enable" rules - which is kind of distinct in that you could already be upgraded and enable or disable rules. It also seems like the "upgrade" path has logic to reset these back to defaults cc @youssef-lr who implemented the UpgradeToCorporate
.
My question is whether we still want those defaults baked in? I'm seeing the existing behavior on OldDot is:
Which makes me wonder whether we need to do anything here or if we can just close this one out.
@JmillsExpensify, @suneox, @marcaaron, @CyberAndrii Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!
Still deciding if we want to do this, but I will make it a Weekly for now. The changes are pretty minor.
@JmillsExpensify, @suneox, @marcaaron, @CyberAndrii Huh... This is 4 days overdue. Who can take care of this?
I'm gonna make this a monthly and try to get to it when I return from OOO. If we are passionate about it then we can get someone to help sooner.
@JmillsExpensify @suneox @marcaaron @CyberAndrii this issue is now 4 weeks old, please consider:
Thanks!
We’re still waiting to the internal team to make a decision regarding the default value.
@JmillsExpensify, @suneox, @marcaaron, @CyberAndrii Whoops! This issue is 2 days overdue. Let's get this updated quick!
Same above
@JmillsExpensify, @suneox, @marcaaron, @CyberAndrii Whoops! This issue is 2 days overdue. Let's get this updated quick!
We have both daily and monthly labels here. Let's remove the daily one?
@MelvinBot Not overdue
@JmillsExpensify, @suneox, @marcaaron, @CyberAndrii Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!
@JmillsExpensify, @suneox, @marcaaron, @CyberAndrii Whoops! This issue is 2 days overdue. Let's get this updated quick!
Not a high priority.
No update yet.
No update yet.
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: Reproducible in staging?: Yes Reproducible in production?: Yes
Expensify/Expensify Issue URL: https://github.com/Expensify/Expensify/issues/424689
Issue reported by: Applause - Internal team
Action Performed:
Expected Result:
When rules are first enabled no default will be set for Require receipt amount, Max expense amount, and Max expense age (days). As Described in the design doc in the "Individual expense rules" in "UI Additions & Changes Figma".
Actual Result:
Require receipt amount, Max expense amount, and Max expense age (days) have default values.
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
View all open jobs on GitHub
CC @JmillsExpensify @marcaaron - I think this should be/should have been implemented in the following issue https://github.com/Expensify/App/issues/47013
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @marcaaron