You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[$1000] Web - Edit and delete button are not available for normal message in mac after changing default contact #21948
BugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributorHelp WantedApply this label when an issue is open to proposals by contributorsNeeds ReproductionReproducible steps needed
Precondition: user should have more then 1 contact method verified
Open the app
Open any report
Send few messages
Change default contact method
Revisit report opened in step 2 and hover on latest sent messages (sent in step 3)
Expected Result:
App should display edit and delete for normal messages
Actual Result:
pp does not display edit and delete for normal messages after changing default contact method
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 ONLY
MacOS / Desktop
Version Number: 1.3.34-1 Reproducible in staging?: n/a Reproducible in production?: n/a 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
Please re-state the problem that we are trying to solve in this issue.
Web - Edit and delete button are not available for normal message in mac after changing default contact
What is the root cause of that problem?
After changing contact method, the reportAction is not updated with latest contact method email, so the condition inside canDeleteReportAction will be false:
What changes do you think we should make in order to solve the problem?
We should use check if the selected contact id is in the validated logins list and if it exists we should return true.
For this we should add a variable called validatedLoginList and filter the validated logins from Onyx for LOGIN_LIST as follows in ReportUtils.js
What alternative solutions did you explore? (Optional)
Use loginList which was already available but this includes non validated logins as well. So if one may add some sender's email id simply in new contact page (and not validate) and they would get edit and delete actions for that reportAction. This is not desirable.
changed the title [-]Web - Edit and delete button are not available for normal message in mac after changing default contact[/-][+][$1000] Web - Edit and delete button are not available for normal message in mac after changing default contact[/+]on Jul 1, 2023
BugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributorHelp WantedApply this label when an issue is open to proposals by contributorsNeeds ReproductionReproducible steps needed
Activity
melvin-bot commentedon Jun 30, 2023
Triggered auto assignment to @MitchExpensify (
Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.melvin-bot commentedon Jun 30, 2023
Bug0 Triage Checklist (Main S/O)
Platformsin OP are ✅)hungvu193 commentedon Jun 30, 2023
Proposal
Please re-state the problem that we are trying to solve in this issue.
Web - Edit and delete button are not available for normal message in mac after changing default contact
What is the root cause of that problem?
After changing contact method, the reportAction is not updated with latest contact method email, so the condition inside
canDeleteReportActionwill be false:What changes do you think we should make in order to solve the problem?
We should use loginList to compare with current actorEmail, if loginList includes
reportAction.actorEmailthen return true in hereWhat alternative solutions did you explore? (Optional)
N/A
c3024 commentedon Jun 30, 2023
Proposal
Please re-state the problem that we are trying to solve in this issue.
After changing default contact, the edit and delete icon are missing on context actions.
What is the root cause of that problem?
After changing default contact method sessionEmail changes to this but reportAction email remains the same as earlier until page reloads again and BE sends the updated email for reportAction. And this returns false
https://github.com/Expensify/App/blob/0bbf3fccfce0994ddf4fd9e95fb33dd9edbd1868/src/libs/ReportUtils.js#L203C1-L205C56
and the delete and edit are not shown
What changes do you think we should make in order to solve the problem?
We should use check if the selected contact id is in the validated logins list and if it exists we should return true.
For this we should add a variable called validatedLoginList and filter the validated logins from Onyx for LOGIN_LIST as follows in ReportUtils.js
we can replace the above equal comparison mentioned in RCA like this
Same can be applied for canDeleteReportAction here
https://github.com/Expensify/App/blob/0bbf3fccfce0994ddf4fd9e95fb33dd9edbd1868/src/libs/ReportUtils.js#L259C1-L260C21
What alternative solutions did you explore? (Optional)
Use loginList which was already available but this includes non validated logins as well. So if one may add some sender's email id simply in new contact page (and not validate) and they would get edit and delete actions for that reportAction. This is not desirable.
[-]Web - Edit and delete button are not available for normal message in mac after changing default contact[/-][+][$1000] Web - Edit and delete button are not available for normal message in mac after changing default contact[/+]melvin-bot commentedon Jul 1, 2023
Job added to Upwork: https://www.upwork.com/jobs/~016e71cf3db941fc35
melvin-bot commentedon Jul 1, 2023
Current assignee @MitchExpensify is eligible for the External assigner, not assigning anyone new.
melvin-bot commentedon Jul 1, 2023
Triggered auto assignment to Contributor-plus team member for initial proposal review - @mollfpr (
External)6 remaining items
MitchExpensify commentedon Jul 3, 2023
Not overdue, Melvin
mollfpr commentedon Jul 7, 2023
Reviewing proposal!
melvin-bot commentedon Jul 8, 2023
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸
mollfpr commentedon Jul 10, 2023
This issue is not reproducible. Is fixed in the accountID migration PR #22327
MitchExpensify commentedon Jul 10, 2023
@mollfpr thanks, sounds like reporting payment is all thats due here - agreed?
mollfpr commentedon Jul 11, 2023
@MitchExpensify Agree!
MitchExpensify commentedon Jul 11, 2023
Awesome, invite sent here for reporting payment @dhanashree-sawant 👍 https://www.upwork.com/jobs/~016e71cf3db941fc35
dhanashree-sawant commentedon Jul 12, 2023
@MitchExpensify, Thanks!
Offer accepted.
MitchExpensify commentedon Jul 12, 2023
Awesome, paid!