Open lanitochka17 opened 3 months ago
Triggered auto assignment to @adelekennedy (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.
@adelekennedy 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
We think that this bug might be related to #vip-split
I really apologize for commenting here, but I don't know where else to go that someone from expensify might see it. I emailed contributors@expensify.com a week ago requesting access to slack, along with a follow up a few days ago, and I haven't heard back. Are we just not accepting new contributors at the moment, or is there some other step I need to follow to gain access? Can someone please advise? Again, sorry for hijacking an issue thread.
π£ @rlmorrison74! π£ Hey, it seems we donβt have your contributor details yet! You'll only have to do this once, and this is how we'll hire you on Upwork. Please follow these steps:
Contributor details
Your Expensify account email: <REPLACE EMAIL HERE>
Upwork Profile Link: <REPLACE LINK HERE>
The issue is not reproducible on the latest main ... tried on IOS
Workspace with 0 members shows Split expense option.
We do not check count of members for displaying Split expense option in context menu.
Check for members count before showing the option in
src/pages/home/sidebar/SidebarScreen/FloatingActionButtonAndPopover.tsx
In newly created workspace, with no members invited, split expense option is displayed in #admin room. When trying to split expense, a hidden member is shown without invited
Here is the condition to display the split option in admin room:
https://github.com/Expensify/App/blob/8abdcca86923a5a121734f34bbc53f2eeb5a45dd/src/libs/ReportUtils.ts#L6103
with the otherParticipants
is:
https://github.com/Expensify/App/blob/8abdcca86923a5a121734f34bbc53f2eeb5a45dd/src/libs/ReportUtils.ts#L6090
which is not filtered out the participant that belongs to Expensify team.
The otherParticipants should be:
const otherParticipants = reportParticipants.filter((accountID) => {
const detail = allPersonalDetails?.[accountID];
return currentUserPersonalDetails?.accountID !== accountID && !PolicyUtils.isExpensifyTeam(detail?.login);
});
Beside above changes, we can apply the same filter in: https://github.com/Expensify/App/blob/8abdcca86923a5a121734f34bbc53f2eeb5a45dd/src/pages/iou/request/step/IOURequestStepAmount.tsx#L256 and https://github.com/Expensify/App/blob/8abdcca86923a5a121734f34bbc53f2eeb5a45dd/src/components/MoneyRequestConfirmationList.tsx#L452 to make sure the specialist is not included when splitting.
I am not also able to reproduce the issue ... the split option doesn't appear in the admin room
π£ @hayes102! π£ Hey, it seems we donβt have your contributor details yet! You'll only have to do this once, and this is how we'll hire you on Upwork. Please follow these steps:
Contributor details
Your Expensify account email: <REPLACE EMAIL HERE>
Upwork Profile Link: <REPLACE LINK HERE>
@adelekennedy Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!
reproduced - I'm also able to reproduce this on web, chrome v9.0.16-5, IMO this is a bug, we shouldn't show the split option until additional members are invited
Job added to Upwork: https://www.upwork.com/jobs/~0125de9b07488ab7a1
Triggered auto assignment to Contributor-plus team member for initial proposal review - @ahmedGaber93 (External
)
@ahmedGaber93 already some proposals to review!
@rlmorrison74 Let me search for your email in the inbox - I'll reach out via email fro next steps
I'm not able to reproduce on web, do I missed something?
https://github.com/user-attachments/assets/5ae41726-b6dd-4c14-b319-83d4e3f4dc3b
@ahmedGaber93 You can try the new account, with the first workspace in that account.
You can try the new account, with the first workspace in that account.
@daledah Still not able to reproduce
https://github.com/user-attachments/assets/b5383772-1d31-4ec7-b0c4-6dd0d6b71c41
Maybe my video will help you reproduce. From my side, after create a 1st workspace, I need to clear cache and restart.
https://github.com/user-attachments/assets/6cb28d5e-2936-4edf-ba87-a60386258d99
I am able to reproduce now. Thanks @daledah.
@daledah's proposal LGTM!
π π π C+ reviewed
Triggered auto assignment to @Gonals, see https://stackoverflow.com/c/expensify/questions/7972 for more details.
π£ @ahmedGaber93 π An offer has been automatically sent to your Upwork account for the Reviewer role π Thanks for contributing to the Expensify app!
π£ @daledah You have been assigned to this job! Please apply to the Upwork job and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review π§βπ» Once you apply to this job, your Upwork ID will be stored and you will be automatically hired for future jobs! Keep in mind: Code of Conduct | Contributing π
@Gonals, @ahmedGaber93, @adelekennedy, @daledah Whoops! This issue is 2 days overdue. Let's get this updated quick!
Not overdue, PR in progress.
This PR caused a pretty big regression where none of us with expensify.com emails can use the create options in DM: https://github.com/Expensify/App/issues/48282
@trjExpensify Yes, unfortunately this is a big regression, but the good news is the PR is not merged into production yet. I will create a revert PR now.
Oh hm, but it's on a checklist that's closed? π€ CC: @puneetlath is something broken?
We didn't do a production deploy for that checklist, so it's still on staging.
@ahmedGaber93 Do you think we need to revert the PR? I think we just need to create the follow up PR, which will update: https://github.com/Expensify/App/blob/fa8fa1a62d5346b3317c8c6a46088d6c584c1868/src/libs/ReportUtils.ts#L6398
(accountID) => currentUserPersonalDetails?.accountID !== accountID && !PolicyUtils.isGuide(allPersonalDetails?.[accountID]?.login)
with isGuide
is:
function isGuide(email: string | undefined): boolean {
const emailDomain = Str.extractEmailDomain(email ?? '');
return emailDomain === CONST.EMAIL.GUIDES_DOMAIN;
}
@daledah I think this not urgent issue and there is no need to rush, let's revert it before deploying to production then we can discuss the solution. May be emails with GUIDES_DOMAIN
also need to use this feature on other scopes.
We didn't do a production deploy for that checklist, so it's still on staging.
@puneetlath is that's mean we have the chance to revert it before deploying to production?
@Gonals I DM you to revert PR https://github.com/Expensify/App/pull/47214, but it seems you are offline.
I merged and am CPing the revert.
Confirmed the options appear after reverting
@adelekennedy the expect behavior here is to hide the split option in admin room if the only other user in the room is guide team member and there is no other members.
The question here: is there is any case the guide member with email team.expensify.com
can be normal user of admin room and not a guide member? For example, if we have a workspace for guide team, the guide team members here will be normal users on admin room not guide member
CC @trjExpensify @Gonals
I'm not sure but my instinct is that they'd always be guide members but @trjExpensify or @Gonals for thoughts? I'll take this to Slack to confirm if we don't come to a conclusion here
is there is any case the guide member with email team.expensify.com can be normal user of admin room and not a guide member? For example, if we have a workspace for guide team, the guide team members here will be normal users on admin room not guide member
What do you mean by normal user? They can have their own workspaces for testing and demos on that domain, if that's the question.
Does anyone have the latest on what we do with Guides/AMs now? Do we just add them as a member of the #admins room, versus adding them to the workspace when assigned to a lead? CC: @puneetlath
If that's the case, then I think it's probably fine to just show the guide/AM as a member of the #admins room and thus as a participant here:
Does anyone have the latest on what we do with Guides/AMs now? Do we just add them as a member of the #admins room, versus adding them to the workspace when assigned to a lead? CC: @puneetlath
Yes, that's correct. We add them to the admins room, but not the workspace.
Okay cool, then I think it's fine to show the guide/AM as a participant of the #admins room and not hide that. Meaning, they can be selected for a Split
in the room, but I highly doubt anyone will do that in reality.
So what we should try to fix here is why they're showing as hidden. Agreed?
Makes sense to me. Hiding seems to cause more problems than benefits.
Thanks all for clearing the context.
@adelekennedy @daledah The "hidden" participant not reproduced with me in this case, it always displays the Guide member. Is there anyone able to reproduce it?
https://github.com/user-attachments/assets/1550c22a-162e-4792-8e2a-cc515b83dd3f
@daledah the issue is not reproduced on latest main with me. Can you confirm?
@ahmedGaber93 For me, on the lastest main, the Split expense option is not displayed:
https://github.com/user-attachments/assets/b3c02869-6def-4d3a-8af4-612171df3f3c
@daledah can you try to clear the cache like you described here https://github.com/Expensify/App/issues/46739#issuecomment-2273382189 then retest.
@daledah bump here https://github.com/Expensify/App/issues/46739#issuecomment-2354587449
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.16 Reproducible in staging?: Y Reproducible in production?: Y If this was caught during regression testing, add the test name, ID and link from TestRail: N/A Issue reported by: Applause - Internal Team
Action Performed:
Expected Result:
In newly created workspace, with no members invited, split expense option must not be displayed in #admin room. When no members invited in workspace, it must not show hidden member
Actual Result:
In newly created workspace, with no members invited, split expense option is displayed in #admin room. When trying to split expense, a hidden member is shown without invited
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
</details
https://github.com/user-attachments/assets/e01f812e-aab0-4f3a-bdb3-fa434f487b75
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @ahmedGaber93