-
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
[HOLD for payment 2023-10-10] [$500] Workspace - Opening rate unit workspace page on login displays '0.000' and changing value does not work #26131
Comments
Triggered auto assignment to @kevinksullivan ( |
Bug0 Triage Checklist (Main S/O)
|
ProposalPlease re-state the problem that we are trying to solve in this issue.Opening rate unit workspace page on login displays '0.000' and changing value does not work What is the root cause of that problem?The rate data is fetched using When we access rates page with link itself bypassing reimbursement page, this action is not triggered, thus making rate data not available for us. Also another problem is that if you access it in offline mode or slow internet connection, the data won't be loaded and it shows 0, even if data is loaded if you are in rates page, it won't be updated in TextInput What changes do you think we should make in order to solve the problem?To fetch data when rates page is directly accessed, we can apply something like this, which checks if we have rates data and if not it will try to fetch it: componentDidMount() {
if (lodashGet(this.props, 'policy.customUnits', []).length === 0) {
BankAccounts.setReimbursementAccountLoading(true);
Policy.openWorkspaceReimburseView(this.props.policy.id);
}
} We should update inputs when rate data is fetched. I couldn't find any way of modifying input's value, since inputs are using The another problem with this approach is that when user is modifying inputs and data is fetched it will interrupt user and set input value itself confusing user. We can maybe utilize pendingActions here by passing
What alternative solutions did you explore? (Optional) |
ProposalPlease re-state the problem that we are trying to solve in this issue.Opening rate unit workspace page on login displays '0.000' and changing value does not work What is the root cause of that problem?The reimbursement rate information is loaded in the previous page in App/src/pages/workspace/reimburse/WorkspaceReimburseView.js Lines 112 to 113 in fd755ee
However, when accessing the URL directly, What changes do you think we should make in order to solve the problem?In WorkspaceRateAndUnitPage.js:
componentDidMount() {
if (_.isEmpty(lodashGet(this.props, 'policy.customUnits', {})) && !this.props.isReimbursementAccountLoading) {
BankAccounts.setReimbursementAccountLoading(true);
Policy.openWorkspaceReimburseView(this.props.policy.id);
}
}
render() {
...
+ if (this.props.isReimbursementAccountLoading) {
+ return <FullscreenLoadingIndicator />;
+ }
...
}
isReimbursementAccountLoading: {
key: ONYXKEYS.REIMBURSEMENT_ACCOUNT,
selector: (reimbursementAccount) => lodashGet(reimbursementAccount, 'isLoading', true),
}, What alternative solutions did you explore? (Optional)N/A |
Job added to Upwork: https://www.upwork.com/jobs/~014ad1f796cb41f15e |
Current assignee @kevinksullivan is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @rushatgabhane ( |
@kevinksullivan, @rushatgabhane Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
@kevinksullivan, @rushatgabhane 6 days overdue. This is scarier than being forced to listen to Vogon poetry! |
reviewing |
I like @alitoshmatov's proposal #26131 (comment) C+ reviewed 🎀 👀 🎀 |
Triggered auto assignment to @cristipaval, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
I wonder if this is because the offline behaviour is not yet implemented for Distance requests. If I recall correctly, we postponed this due to the tight deadline. @neil-marcellini could you please confirm? |
@cristipaval @kevinksullivan @rushatgabhane 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! |
@cristipaval @kevinksullivan @rushatgabhane 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! |
friendly bump @neil-marcellini |
@cristipaval, @kevinksullivan, @rushatgabhane Whoops! This issue is 2 days overdue. Let's get this updated quick! |
@rushatgabhane Could you please take care of the checklist? 🙏 |
WIP
|
Created a manual request - https://staging.new.expensify.com/r/495465708926398 |
Payment summary Reporter: @dhanashree-sawant $250 |
$500 payment approved for @rushatgabhane based on summary above. |
@kevinksullivan Friendly bump, I am also waiting for payment on upwork. |
@kevinksullivan is ooo until 26th. @alitoshmatov are you ok to wait or you want me to reassign someone able to pay? |
That's fine, I will wait till @kevinksullivan is back |
@alitoshmatov paid out. @dhanashree-sawant let me know when you accept this offer. |
Thanks @kevinksullivan, I have accepted the offer. |
@cristipaval, @kevinksullivan, @rushatgabhane, @alitoshmatov Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
Are we good to close this one? |
friendly bump @kevinksullivan |
@kevinksullivan has sent me the offer but milestone approval is left. |
@kevinksullivan has been OOO, I think he'll be back today. I pinged him internally. |
I'm confused... @dhanashree-sawant can you link the job where it says I need to pay? For whatever reason I don't see you assigned to the original job and it's closed now https://www.upwork.com/jobs/~014ad1f796cb41f15e I am not seeing a separate one either. If you can link me to it that would be great. Otherwise I can create a new one. |
This is the message room for that job, not sure if this link will work for you or not but I have sent 'Hi' on upwork in that room |
all set |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Action Performed:
Expected Result:
App should display correct value on rate unit workspace page on login and save the value if value is changed
Actual Result:
App displays '0.000' as rate on rate unit workspace page on login and on changing and saving the value, it does not change the value
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: v1.3.57-6
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation
rate.appears.as.0.on.login.unit.workspace.mp4
Recording.6043.mp4
Expensify/Expensify Issue URL:
Issue reported by: @dhanashree-sawant
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1692551644917109
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: