Skip to content
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

[$1000] Web -Task - Empty description is displayed even when description is set in task #23294

Closed
1 of 6 tasks
kbecciv opened this issue Jul 20, 2023 · 17 comments
Closed
1 of 6 tasks
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 External Added to denote the issue can be worked on by a contributor Help Wanted Apply this label when an issue is open to proposals by contributors

Comments

@kbecciv
Copy link

kbecciv commented Jul 20, 2023

If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!


Action Performed:

  1. Open the app
  2. Click plus and click on assign task
  3. Write any title and description and click next
  4. Select any assignee and any user to share somewhere and click confirm task
  5. In task report, click on plus and click assign task
  6. Write any title, keep description empty and click next
  7. Close the right hand menu and now click on current report description and observe that even though task has description, it is displayed as empty

Expected Result:

App should display currently set description when we click on description in any task report

Actual Result:

App displays empty description when we click on plus and assign task from task report, set title, keep description empty, click on next, close the right hand menu and click on description

Workaround:

Unknown

Platforms:

Which of our officially supported platforms is this issue occurring on?

  • Android / native
  • Android / Chrome
  • iOS / native
  • iOS / Safari
  • MacOS / Chrome / Safari
  • MacOS / Desktop

Version Number: 1.3.43-2
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

empty.description.even.when.description.is.set.mp4
Recording.3783.mp4

Expensify/Expensify Issue URL:
Issue reported by: @dhanashree-sawant
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1689841710414669

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~010cf7591e3ba247f3
  • Upwork Job ID: 1683549848105144320
  • Last Price Increase: 2023-07-24
@kbecciv kbecciv added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Jul 20, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jul 20, 2023

Triggered auto assignment to @isabelastisser (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.

@melvin-bot
Copy link

melvin-bot bot commented Jul 20, 2023

Bug0 Triage Checklist (Main S/O)

  • This "bug" occurs on a supported platform (ensure Platforms in OP are ✅)
  • This bug is not a duplicate report (check E/App issues and #expensify-bugs)
    • If it is, comment with a link to the original report, close the issue and add any novel details to the original issue instead
  • This bug is reproducible using the reproduction steps in the OP. S/O
    • If the reproduction steps are clear and you're unable to reproduce the bug, check with the reporter and QA first, then close the issue.
    • If the reproduction steps aren't clear and you determine the correct steps, please update the OP.
  • This issue is filled out as thoroughly and clearly as possible
    • Pay special attention to the title, results, platforms where the bug occurs, and if the bug happens on staging/production.
  • I have reviewed and subscribed to the linked Slack conversation to ensure Slack/Github stay in sync

@BhuvaneshPatil
Copy link
Contributor

BhuvaneshPatil commented Jul 20, 2023

Proposal

Please re-state the problem that we are trying to solve in this issue.

Empty description is displayed even when description is set in task

What is the root cause of that problem?

In TaskDescriptionPage component, we are getting task from Onyx.

export default compose(
withOnyx({
betas: {
key: ONYXKEYS.BETAS,
},
task: {
key: ONYXKEYS.TASK,
},
}),
withLocalize,
)(NewTaskDescriptionPage);

And when we create new task (partially) as shown in video, the task value is changed and thus when we try to get that value from onyx, we get empty value -

Screenshot 2023-07-20 at 3 19 37 PM

What changes do you think we should make in order to solve the problem?

Above logic of getting task from onyx works well when we are creating a new task, but for that we use NewTaskDescriptionPage.
In this case instead of getting the task from onyx, we will get report. As we have reportID from route, we can use it to fetch the report on TaskDescriptionPage and use the value of description from the report.

we can get report fro onyx following way -

report: {
    key: ({route}) => `${ONYXKEYS.COLLECTION.REPORT}${route.params.reportID}`,
},

and for TextInput we can set the defaultValue

defaultValue={(props.report && props.report.description) || ''}

We have to change the submit method in component in order to accompany the changes.
from props.task.report -> props.report

Similar to this we have done in - TaskTitlePage

What alternative solutions did you explore? (Optional)

@dhairyasenjaliya
Copy link
Contributor

this should be fixed #23210

@dhanashree-sawant
Copy link

Hi @dhairyasenjaliya, I think they have cross checked that first, kindly check the slack conversation once.

@dukenv0307
Copy link
Contributor

dukenv0307 commented Jul 21, 2023

Maybe this issue will be fixed by #22078

Proposal

Please re-state the problem that we are trying to solve in this issue.

Web -Task - Empty description is displayed even when description is set in task

What is the root cause of that problem?

This issue only happens on the description page (doesn't happen on the title page). This is because on the TaskTitlePage we use the report field from ONYX directly and on the TaskDescriptionPage we use task.report field from ONYX. So we need setTaskReport before going to TaskDescriptionPage

What changes do you think we should make in order to solve the problem?

On TaskDescriptionPage, we should use the report field from ONYX directly like on the TaskTitlePage and we don't need to call setTaskReport on TaskDescriptionPage

@0xmiros
Copy link
Contributor

0xmiros commented Jul 21, 2023

Though root cause is different, this will be part of solution in #22078 to avoid #23210.

@BhuvaneshPatil
Copy link
Contributor

BhuvaneshPatil commented Jul 21, 2023

@0xmiroslav
This issue solves the problem occurring in #22078 , and the selected proposal for that came after this bug and it's same as proposed solution, so this bug should fix the #22078

@melvin-bot melvin-bot bot added the Overdue label Jul 24, 2023
@isabelastisser
Copy link
Contributor

Not overdue!

@melvin-bot melvin-bot bot removed the Overdue label Jul 24, 2023
@isabelastisser
Copy link
Contributor

@isabelastisser isabelastisser added the External Added to denote the issue can be worked on by a contributor label Jul 24, 2023
@melvin-bot melvin-bot bot changed the title Web -Task - Empty description is displayed even when description is set in task [$1000] Web -Task - Empty description is displayed even when description is set in task Jul 24, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jul 24, 2023

Job added to Upwork: https://www.upwork.com/jobs/~010cf7591e3ba247f3

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Jul 24, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jul 24, 2023

Current assignee @isabelastisser is eligible for the External assigner, not assigning anyone new.

@melvin-bot
Copy link

melvin-bot bot commented Jul 24, 2023

Triggered auto assignment to Contributor-plus team member for initial proposal review - @sobitneupane (External)

@sobitneupane
Copy link
Contributor

@isabelastisser I was unable to reproduce the issue. Is this still reproducible on your end?

@BhuvaneshPatil
Copy link
Contributor

BhuvaneshPatil commented Jul 26, 2023

Though root cause is different, this will be part of solution in #22078 to avoid #23210.

@sobitneupane I think it was solved here. This is the PR - #23342
I have left a comment here about the proposals.

@isabelastisser
Copy link
Contributor

Thanks @sobitneupane!

  • I will issue the payment in Upwork now and close this issue.

Payment: @dhanashree-sawant $250 - issue reporter.

@dhanashree-sawant
Copy link

Thanks @isabelastisser, I have accepted the offer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 External Added to denote the issue can be worked on by a contributor Help Wanted Apply this label when an issue is open to proposals by contributors
Projects
None yet
Development

No branches or pull requests

8 participants