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

Copilot - No message is shown when trying to add the owner as copilot #48967

Closed
2 of 6 tasks
IuliiaHerets opened this issue Sep 11, 2024 · 11 comments
Closed
2 of 6 tasks
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. Engineering Reviewing Has a PR in review Weekly KSv2

Comments

@IuliiaHerets
Copy link

If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!


Version Number: v9.0.32-0
Reproducible in staging?: Y
Reproducible in production?: N/A
Email or phone of affected tester (no customers): [email protected]
Issue reported by: Applause Internal Team

Action Performed:

  1. Login to an Expensifail account
  2. Go to settings > security > add Copilot
  3. Write the email you used to login

Expected Result:

You can not add your own email as a Copilot message is shown

Actual Result:

No message is shown when trying to add the owner as copilot

Workaround:

Unknown

Platforms:

  • Android: Native
  • Android: mWeb Chrome
  • iOS: Native
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Bug6599491_1726024277915.Screen_Recording_2024-09-11_at_6.09.24_in_the_morning.mp4

View all open jobs on GitHub

@IuliiaHerets IuliiaHerets added DeployBlockerCash This issue or pull request should block deployment Bug Something is broken. Auto assigns a BugZero manager. labels Sep 11, 2024
Copy link

melvin-bot bot commented Sep 11, 2024

Triggered auto assignment to @youssef-lr (DeployBlockerCash), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.

Copy link

melvin-bot bot commented Sep 11, 2024

Triggered auto assignment to @joekaufmanexpensify (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.

@melvin-bot melvin-bot bot added the Daily KSv2 label Sep 11, 2024
@github-actions github-actions bot added Engineering Hourly KSv2 and removed Daily KSv2 labels Sep 11, 2024
Copy link
Contributor

👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:

  1. Identify the pull request that introduced this issue and revert it.
  2. Find someone who can quickly fix the issue.
  3. Fix the issue yourself.

@rushatgabhane
Copy link
Member

@youssef-lr @joekaufmanexpensify not a blocker.

this is behind a beta. kindly assign me because I'm working on copilot project

@mountiny mountiny added Daily KSv2 and removed DeployBlockerCash This issue or pull request should block deployment Hourly KSv2 labels Sep 11, 2024
@joekaufmanexpensify
Copy link
Contributor

Sounds good! LMK if there's anything I can do to help.

@dominictb
Copy link
Contributor

Proposal

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

  • No message is shown when trying to add the owner as copilot

What is the root cause of that problem?

  • In:

    (filteredOptions.recentReports?.length || 0) + (filteredOptions.personalDetails?.length || 0) !== 0 || !!filteredOptions.currentUserOption,

    we are adding filteredOptions.currentUserOption when calculating hasSelectableOptions param in getHeaderMessage.

  • So, when searching the current signed in email, there is no message is shown.

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

  • In here and here we can remove !!filteredOptions.currentUserOption check.

What alternative solutions did you explore? (Optional)

  • We can add the custom message to tell user that they cannot add the current email as the delegate:
        if(searchValue === filteredOptions.currentUserOption?.login){
            headerMessage = "Cannot add the current user as delegate"
        }

@joekaufmanexpensify
Copy link
Contributor

@rushatgabhane correct me if I'm wrong here but I don't think we need to hire anyone for this issue, is that right?

@dangrous
Copy link
Contributor

correct, this will be handled as part of the copilot project by @rushatgabhane

@joekaufmanexpensify
Copy link
Contributor

Sounds good. TY!

@joekaufmanexpensify
Copy link
Contributor

@rushatgabhane is there an ETA for a PR here?

@joekaufmanexpensify
Copy link
Contributor

PR in review

@melvin-bot melvin-bot bot removed the Overdue label Sep 16, 2024
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. Engineering Reviewing Has a PR in review Weekly KSv2
Projects
Status: Done
Development

No branches or pull requests

7 participants