Skip to content

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

Closed

Description

@IuliiaHerets

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: v9.0.32-0
Reproducible in staging?: Y
Reproducible in production?: N/A
Email or phone of affected tester (no customers): applausetester+ds@applause.expensifail.com
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

Activity

  1. added
    DeployBlockerCashThis issue or pull request should block deployment
    BugSomething is broken. Auto assigns a BugZero manager.
    on Sep 11, 2024
  2. melvin-bot commented on Sep 11, 2024

    @melvin-bot

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

  3. melvin-bot commented on Sep 11, 2024

    @melvin-bot

    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.

  4. github-actions commented on Sep 11, 2024

    @github-actions
    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.
  5. rushatgabhane commented on Sep 11, 2024

    @rushatgabhane
    Member

    @youssef-lr @joekaufmanexpensify not a blocker.

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

  6. 3 remaining items

  7. dominictb commented on Sep 12, 2024

    @dominictb
    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"
            }
  8. joekaufmanexpensify commented on Sep 12, 2024

    @joekaufmanexpensify
    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?

  9. dangrous commented on Sep 12, 2024

    @dangrous
    Contributor

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

  10. joekaufmanexpensify commented on Sep 13, 2024

    @joekaufmanexpensify
    Contributor

    Sounds good. TY!

  11. joekaufmanexpensify commented on Sep 13, 2024

    @joekaufmanexpensify
    Contributor

    @rushatgabhane is there an ETA for a PR here?

  12. added a commit that references this issue on Sep 16, 2024
    ae039e1
  13. joekaufmanexpensify commented on Sep 16, 2024

    @joekaufmanexpensify
    Contributor

    PR in review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

BugSomething is broken. Auto assigns a BugZero manager.EngineeringReviewingHas a PR in reviewWeeklyKSv2

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions