-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
[$500] Web - Money request - Workspace member is missing from the workspace when requesting money for workspace #26428
Comments
Triggered auto assignment to @stephanieelliott ( |
Bug0 Triage Checklist (Main S/O)
|
This looks like quite a major bug! |
ProposalPlease state again the problem we are trying to solve in this issue.Workspace member is missing from the workspace when requesting money for workspace. What is the cause of this issue?If click header from IOU report, App/src/pages/ReportDetailsPage.js Line 73 in ec95ab0
App/src/pages/ReportDetailsPage.js Lines 90 to 101 in ec95ab0
But workspace expense chat report has only one participant id, so total number of the members is 1, and is different with total numbers of the workspace. What changes do you think we should make to solve the problem?We can display total number of workspace members if report is workspace room.
const isPolicyRoom = useMemo(() => ReportUtils.isAdminRoom(props.report) || ReportUtils.isAnnounceRoom(props.report) || ReportUtils.isPolicyExpenseChat(props.report), [props.report]);
const policyMembers = useMemo(() => _.keys(props.policyMembers[`${ONYXKEYS.COLLECTION.POLICY_MEMBERS}${props.report.policyID}`]), [props.policyMembers, props.report.policyID]); And change this line as below. subtitle: isPolicyRoom ? policyMembers.length : participants.length,
const getAllParticipants = (report, personalDetails, translate, policyMembers = {}) => {
...
if (ReportUtils.isAdminRoom(report) || ReportUtils.isAnnounceRoom(report) || ReportUtils.isPolicyExpenseChat(report)) {
participantAccountIDs = _.keys(policyMembers[`${ONYXKEYS.COLLECTION.POLICY_MEMBERS}${report.policyID}`]);
}
...
const participants = _.map(getAllParticipants(props.report, props.personalDetails, props.translate, props.policyMembers), (participant) => ({
... What alternative solutions have you investigated? (Optional)None. |
Job added to Upwork: https://www.upwork.com/jobs/~0152b582c375b0403c |
Current assignee @stephanieelliott is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @thesahindia ( |
@stephanieelliott, @thesahindia Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
I believe this is expected, you only see 1 member because there's only one member in that specific chat. Inviting other members in workspace will just create new reports related to that workspace. |
@stephanieelliott, I think we should close this issue. |
Ah yeah, I agree with you @thesahindia. Thinking about it that way this behavior would be expected. |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Action Performed:
Expected Result:
The total number of the members should be correct
Actual Result:
The total number of the members is not correct
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.3.60.3
Reproducible in staging?: y
Reproducible in production?: y
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
Screenshare.-.2023-08-26.8_47_27.AM.mp4
Recording.4136.mp4
Expensify/Expensify Issue URL:
Issue reported by: @misgana96
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1693028736979619
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: