-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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 2024-10-24] [$250] Error when copilot adds a new contact method #50063
Comments
Triggered auto assignment to @anmurali ( |
We think that this bug might be related to #wave-collect - Release 1 |
@anmurali FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors |
Edited by proposal-police: This proposal was edited at 2024-10-08 14:47:15 UTC. ProposalPlease re-state the problem that we are trying to solve in this issue.Error when copilot adds a new contact method What is the root cause of that problem?
What changes do you think we should make in order to solve the problem?Option 1.
const [account] = useOnyx(ONYXKEYS.ACCOUNT);
const isActingAsDelegate = !!account?.delegatedAccess?.delegate ?? false;
.
.
.
<Button
isDisabled = {isActingAsDelegate}
large
success
text={translate('contacts.newContactMethod')}
onPress={onNewContactMethodButtonPress}
pressOnEnter
/> App/src/pages/settings/Profile/Contacts/ContactMethodsPage.tsx Lines 125 to 131 in 3946b22
Option 2.
const [account] = useOnyx(ONYXKEYS.ACCOUNT);
const isActingAsDelegate = !!account?.delegatedAccess?.delegate ?? false;
.
.
.
{ !isActingAsDelegate && <Button
large
success
text={translate('contacts.newContactMethod')}
onPress={onNewContactMethodButtonPress}
pressOnEnter
/>} App/src/pages/settings/Profile/Contacts/ContactMethodsPage.tsx Lines 125 to 131 in 3946b22
<AccessOrNotFoundWrapper
shouldBeBlocked = {isActingAsDelegate}
.
.
>
<ScreenWrapper
.
.
</ScreenWrapper>
</AccessOrNotFoundWrapper> App/src/pages/settings/Profile/Contacts/NewContactMethodPage.tsx Lines 103 to 152 in 3946b22
What alternative solutions did you explore? (Optional)
Reminder: Please use plain English, be brief and avoid jargon. Feel free to use images, charts or pseudo-code if necessary. Do not post large multi-line diffs or write walls of text. Do not create PRs unless you have been hired for this job. |
Job added to Upwork: https://www.upwork.com/jobs/~021842646552595795235 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @c3024 ( |
Thanks for the proposal @ChavdaSachin. @Expensify/design Should we hide the "New Contact Method" button altogether or disable the button with a message on hover when a copilot accesses the account they are delegated to? |
Hmm. We tend to not do disabling or hiding in this kind of situation, but I also think the error is enough. Keen to hear if @dannymcclain agrees. |
Updated Proposal |
Love that @dannymcclain ! |
@c3024 - can you please review @ChavdaSachin revised proposal? |
@ChavdaSachin’s alternative solution, as per design inputs, looks good to me. We can work on more specifics in the PR with reviews from the design team. 🎀 👀 🎀 C+ reviewed. |
Triggered auto assignment to @Julesssss, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.49-2 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue: If no regressions arise, payment will be issued on 2024-10-24. 🎊 For reference, here are some details about the assignees on this issue:
|
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
|
Regression Test Proposal
|
@Julesssss, @anmurali, @ChavdaSachin, @c3024 Huh... This is 4 days overdue. Who can take care of this? |
Awaiting payment |
@ChavdaSachin - can you please give me your Upwork profile? You are in Slack, yes? |
I am not on slack yet. I have already applied for the job on upwork. |
@anmurali can you get it done today? |
@Julesssss, @anmurali, @ChavdaSachin, @c3024 Eep! 4 days overdue now. Issues have feelings too... |
Offer is here |
Accepted |
friendly bump ^ @anmurali |
@Julesssss, @anmurali, @ChavdaSachin, @c3024 Eep! 4 days overdue now. Issues have feelings too... |
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: 9.0.42-3
Reproducible in staging?: Y
Reproducible in production?: Y
Issue was found when executing this PR: #49150
Issue reported by: Applause Internal Team
Action Performed:
Expected Result:
The new email address is added as a new contact method.
Actual Result:
Copilot can not add new contact method. Error message "An unexpected error occurred when trying to add the new login.". RD in LHN-Profile, Profile window-Contact method, and LHP.
Workaround:
Unknown
Platforms:
Screenshots/Videos
Bug6622066_1727870652691.49150failst.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @anmuraliThe text was updated successfully, but these errors were encountered: