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

[HOLD for payment 2023-07-12] [HOLD for payment 2023-07-10] Copilot - Copilot and regular account actions are displayed the same in #admins room #21970

Closed
1 of 6 tasks
lanitochka17 opened this issue Jun 30, 2023 · 14 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Daily KSv2 Engineering

Comments

@lanitochka17
Copy link

lanitochka17 commented Jun 30, 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!


Issue found when executing PR #21246

Action Performed:

OldDot:

  1. Create Control policy
  2. Make changes in policy setting both under regular account and then co-pilot (or copilot and then regular account)
    NewDot:
  3. Verify there is visual difference between actions taken under regular account and copilot

Expected Result:

Regular account and copilot should be displayed differently.

Actual Result:

All actions taken by both accounts are displayed under the name who did first actions

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
  • MacOS / Desktop

Version Number: 1.3.35.4

Reproducible in staging?: Yes

Reproducible in production?: No

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

Bug6112227_issue-1.mp4
Bug6112227_issue_2-1.mp4

Expensify/Expensify Issue URL:

Issue reported by: Applause - Internal Team

Slack conversation:

@lanitochka17 lanitochka17 added the DeployBlockerCash This issue or pull request should block deployment label Jun 30, 2023
@github-actions github-actions bot added the Hourly KSv2 label Jun 30, 2023
@OSBotify
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.

@melvin-bot
Copy link

melvin-bot bot commented Jun 30, 2023

Triggered auto assignment to @tylerkaraszewski (Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.

@tylerkaraszewski
Copy link
Contributor

@hayata-suenaga - Since you reviewed the original PR I'm handing this to you, I unfortunately can't look into it as I'm about to leave on my sabbatical.

@hayata-suenaga
Copy link
Contributor

hayata-suenaga commented Jun 30, 2023

I was able to reproduce

Screenshot 2023-06-30 at 2 32 23 PM

The last message should be sent from a copilot account (not Hayata Suenaga)

@hayata-suenaga
Copy link
Contributor

When there are time gap between when the actual user and when the copilot edit the policies, the policy log message is sent from a correct person.

However, when the time is short, the the account of first person who make changes to the policy (actual user or copilot user) is used for subsequent messages.

@hayata-suenaga
Copy link
Contributor

I think these lines should not exists will test on my dev

} else if (props.action.delegateAccountID) {
// We replace the actor's email, name, and avatar with the Copilot manually for now. This will be improved upon when
// the Copilot feature is implemented.
const delegateDetails = props.personalDetailsList[props.action.delegateAccountID];
const delegateDisplayName = delegateDetails.displayName;
actorHint = `${delegateDisplayName} (${props.translate('reportAction.asCopilot')} ${displayName})`;
displayName = actorHint;
avatarSource = UserUtils.getAvatar(delegateDetails.avatar, props.action.delegateAccountID);
}

@hayata-suenaga
Copy link
Contributor

the above method didn't work.

I'm still investigating I gonna ask help on slack

@hayata-suenaga
Copy link
Contributor

still not working. When the copilot takes action, the policy change log message is shown as taken by the real user, not the copilot.

Screenshot 2023-06-30 at 4 06 03 PM

@hayata-suenaga
Copy link
Contributor

@yuwenmemon please disregard the screenshot above #21970 (comment)

that is the effect from the code change I made in #21970 (comment)

@Julesssss
Copy link
Contributor

The fix for this was merged and Cp'd . Marking it off the checklist 👍

@Julesssss Julesssss removed the DeployBlockerCash This issue or pull request should block deployment label Jul 3, 2023
@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Hourly KSv2 labels Jul 3, 2023
@melvin-bot melvin-bot bot changed the title Copilot - Copilot and regular account actions are displayed the same in #admins room [HOLD for payment 2023-07-10] Copilot - Copilot and regular account actions are displayed the same in #admins room Jul 3, 2023
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Jul 3, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jul 3, 2023

Reviewing label has been removed, please complete the "BugZero Checklist".

@melvin-bot
Copy link

melvin-bot bot commented Jul 3, 2023

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.35-5 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 2023-07-10. 🎊

After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.

  • External issue reporter
  • Contributor that fixed the issue
  • Contributor+ that helped on the issue and/or PR

As a reminder, here are the bonuses/penalties that should be applied for any External issue:

  • Merged PR within 3 business days of assignment - 50% bonus
  • Merged PR more than 9 business days after assignment - 50% penalty

@melvin-bot melvin-bot bot added Weekly KSv2 and removed Weekly KSv2 labels Jul 5, 2023
@melvin-bot melvin-bot bot changed the title [HOLD for payment 2023-07-10] Copilot - Copilot and regular account actions are displayed the same in #admins room [HOLD for payment 2023-07-12] [HOLD for payment 2023-07-10] Copilot - Copilot and regular account actions are displayed the same in #admins room Jul 5, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jul 5, 2023

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.36-5 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 2023-07-12. 🎊

After the hold period is over and BZ checklist items are completed, please complete any of the applicable payments for this issue, and check them off once done.

  • External issue reporter
  • Contributor that fixed the issue
  • Contributor+ that helped on the issue and/or PR

As a reminder, here are the bonuses/penalties that should be applied for any External issue:

  • Merged PR within 3 business days of assignment - 50% bonus
  • Merged PR more than 9 business days after assignment - 50% penalty

@melvin-bot melvin-bot bot added Daily KSv2 Overdue and removed Weekly KSv2 labels Jul 9, 2023
@yuwenmemon
Copy link
Contributor

This does not need payment it was all internal

@melvin-bot melvin-bot bot removed the Overdue label Jul 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Daily KSv2 Engineering
Projects
None yet
Development

No branches or pull requests

6 participants