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] "__fake___" is displayed when clicking on "Mark as Complete" without selecting an assignee #21502

Closed
6 tasks
kavimuru opened this issue Jun 24, 2023 · 30 comments
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

@kavimuru
Copy link

kavimuru commented Jun 24, 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 room chat
  2. Navigate to the "Assign task" section in the room chat
  3. Enter a title for the task and click on "Next" > "Confirm task"
  4. Click on description then enter description and click on save
  5. Click on "Mark as complete"
  6. Go to the room chat

Expected Result:

The user who created the task should have their email displayed when no assignee selected

Actual Result:

When clicking on "Mark as Complete" without selecting an assignee, "fake" is shown

Workaround:

Can the user still use Expensify without this being fixed? Have you informed them of the workaround?

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. 32-5
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

screen-recording-2023-06-20-at-11640-pm_yjE5Rysc.mp4
Recording.1099.mp4

Expensify/Expensify Issue URL:
Issue reported by: @ayazhussain79
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1687249560384329

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~013428f2d15bee366a
  • Upwork Job ID: 1677054385495605248
  • Last Price Increase: 2023-07-06
@kavimuru kavimuru added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Jun 24, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jun 24, 2023

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

@melvin-bot
Copy link

melvin-bot bot commented Jun 24, 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 Jun 24, 2023

Proposal

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

"fake_" is displayed when clicking on "Mark as Complete" without selecting an assignee

What is the root cause of that problem?

The root cause of this problem originates here -

const taskAssignee = props.taskReport.managerEmail || props.action.childManagerEmail;

Here - we are using managerEmail i.e. the task assignee
When we do Mark as Done for a task that is without assignee, the managerEmail is set to - __fake__
and thus being rendered
and we are not checking if the email is __fake__ or not

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

For the task that doesn't have assignee
image

We have no participantAccountIDs list.

We can add this check before directly rendering the managerEmail, which will be __fake__ if the task is marked as done.

What to show here instead of __fake__ shall be discussed and decided.

This is the task that has assignee
image

The solution is -

  • Add check of participantAccountIDs while displaying the managerEmail. Based on output from Expensify team we can decide what to display there.

What alternative solutions did you explore? (Optional)

@melvin-bot melvin-bot bot added the Overdue label Jun 26, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jun 27, 2023

@sonialiap Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

@sonialiap
Copy link
Contributor

Will triage on wednesday

@melvin-bot melvin-bot bot removed the Overdue label Jun 27, 2023
@sonialiap
Copy link
Contributor

I am not getting the __fake__. @ayazhussain79 is this issue still occurring for you?

Screen.Recording.2023-06-28.at.4.56.33.PM.mov

@sonialiap
Copy link
Contributor

I wonder if it got fixed in this issue #21216

@sonialiap
Copy link
Contributor

Sounds like a PR was in review when both this issue and #21216 were reported

PR: #21216 (comment)

@ayazhussain79
Copy link
Contributor

@sonialiap sorry for the delay, I'm still able to reproduce it
Please try these steps and try it on room chat not on workspace room chat

  1. Open the room chat (if not created then created a room)
  2. Navigate to the "Assign task" section in the room chat
  3. Enter a title for the task and click on "Next" > "Confirm task"
  4. after that click on description and write something
  5. Now click on "Mark as done" button
  6. Go back to the room chat
Screenshot 2023-06-28 at 9 04 12 PM

@ayazhussain79
Copy link
Contributor

You can also check the steps in this video :

screen-recording-2023-06-28-at-91208-pm_ANS6zxC5.mp4

@abdulrahuman5196
Copy link
Contributor

@sonialiap I doubt if the PR mentioned would solve this issue. The PR was only expected to solve workspace chat requests where workspace is shown as actor.

@ayazhussain79
Copy link
Contributor

@sonialiap you can even reproduce it on chat here is the steps:

  1. Open a chat
  2. Go to the "Assign task"
  3. Just enter title and create the task
  4. After creating task edit the description
  5. After editing click on "Mark as done" Button
  6. Go to the chat and check the check the created task
screen-recording-2023-06-29-at-83655-pm_RKDn9PWp.mp4

@ayazhussain79
Copy link
Contributor

@sonialiap can you please check this one?

@mountiny
Copy link
Contributor

mountiny commented Jul 3, 2023

@abdulrahuman5196 can you still reproduce this issue?

@abdulrahuman5196
Copy link
Contributor

abdulrahuman5196 commented Jul 3, 2023

@mountiny This issue isn't reproducible in the latest main. Now we are not even showing the name, could have been some recent change.

@ayazhussain79
Copy link
Contributor

ayazhussain79 commented Jul 3, 2023

@mountiny @abdulrahuman5196 i can still reproduce it on lates main you can also reproduce it using both steps: #21502 (comment)

  1. Open the room chat
  2. Navigate to the "Assign task" section in the room chat
  3. Enter a title for the task and click on "Next" > "Confirm task"
  4. Click on description then enter description and click on save
  5. Click on "Mark as complete"
  6. Go to the room chat

Here is the result after taking lates pull from main

screen-recording-2023-07-03-at-62251-pm_DoLgRgUe.mp4

@ayazhussain79
Copy link
Contributor

ayazhussain79 commented Jul 3, 2023

You can reproduce it using these steps in room and also in 1:1 chat
please follow these steps:
step 1 for 1:1 chat:
#21502 (comment)
For room chat:

  1. Open the room chat
  2. Navigate to the "Assign task" section in the room chat
  3. Enter a title for the task and click on "Next" > "Confirm task"
  4. Click on description then enter description and click on save
  5. Click on "Mark as complete"
  6. Go to the room chat

@abdulrahuman5196
Copy link
Contributor

@mountiny Yes. Able to reproduce this issue. We should re-open this issue @sonialiap

Screenshot 2023-07-03 at 11 23 09 PM

@ayazhussain79
Copy link
Contributor

@sonialiap can you please check this bug

@mountiny mountiny reopened this Jul 6, 2023
@sonialiap
Copy link
Contributor

Sorry guys, was caught up in other issues. Thanks for the reproduction videos and the reopen. Triaging to external ⏭️

@sonialiap sonialiap added the External Added to denote the issue can be worked on by a contributor label Jul 6, 2023
@melvin-bot melvin-bot bot changed the title "__fake___" is displayed when clicking on "Mark as Complete" without selecting an assignee [$1000] "__fake___" is displayed when clicking on "Mark as Complete" without selecting an assignee Jul 6, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jul 6, 2023

Job added to Upwork: https://www.upwork.com/jobs/~013428f2d15bee366a

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

melvin-bot bot commented Jul 6, 2023

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

@melvin-bot
Copy link

melvin-bot bot commented Jul 6, 2023

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

@BhuvaneshPatil
Copy link
Contributor

About #21502 (comment)

We need to decide on the placeholder that we will be showing instead of __fake__.

@hoangzinh
Copy link
Contributor

It seems this issue is fixed in this PR #21781

@melvin-bot
Copy link

melvin-bot bot commented Jul 8, 2023

@sonialiap @Santhosh-Sellavel 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!

@BhuvaneshPatil
Copy link
Contributor

@ayazhussain79 Can you confirm if it's has been fixed or not.

@melvin-bot melvin-bot bot added the Overdue label Jul 9, 2023
@Santhosh-Sellavel
Copy link
Collaborator

Not Reproducible for me

@melvin-bot melvin-bot bot removed the Overdue label Jul 9, 2023
@ayazhussain79
Copy link
Contributor

Not able to reproduce now

@melvin-bot melvin-bot bot added the Overdue label Jul 11, 2023
@sonialiap
Copy link
Contributor

I cannot reproduce any more either. Looks like this got resolved by another PR

@melvin-bot melvin-bot bot removed the Overdue label Jul 12, 2023
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