Open lanitochka17 opened 3 weeks ago
Triggered auto assignment to @abekkala (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.
@abekkala 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 #wave-collect - Release 1
policy.role
changes, the ReportFooter
is not rerendered:
https://github.com/Expensify/App/blob/08bb00b2dc515bb1da2e70f9b9eae9d522c3be50/src/pages/home/report/ReportFooter.tsx#L225-L232Should add:
lodashIsEqual(prevProps.policy?.employeeList, nextProps.policy?.employeeList) &&
lodashIsEqual(prevProps.policy?.role, nextProps.policy?.role)
as well to the above propsAreEqual
function.
Then we update: https://github.com/Expensify/App/blob/08bb00b2dc515bb1da2e70f9b9eae9d522c3be50/src/pages/home/report/ReportFooter.tsx#L108
const cannotPerformWriteAction = !ReportUtils.canUserPerformWriteAction(report) && !shouldShowComposerOptimistically
const shouldHideComposer = cannotPerformWriteAction || isBlockedFromChat;
NA
@abekkala Whoops! This issue is 2 days overdue. Let's get this updated quick!
@abekkala Huh... This is 4 days overdue. Who can take care of this?
Job added to Upwork: https://www.upwork.com/jobs/~01c1f02627a154bb67
Triggered auto assignment to Contributor-plus team member for initial proposal review - @allgandalf (External
)
@daledah's proposed solution makes sense to me, we do not re-render the footer chat component when we update the roles of the user
πππ C+ reviewed
Triggered auto assignment to @aldo-expensify, see https://stackoverflow.com/c/expensify/questions/7972 for more details.
@abekkala, @aldo-expensify, @allgandalf Whoops! This issue is 2 days overdue. Let's get this updated quick!
π£ @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 π
π£ @allgandalf π An offer has been automatically sent to your Upwork account for the Contributor role π Thanks for contributing to the Expensify app!
Offer link Upwork job Please accept the offer and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review π§βπ» Keep in mind: Code of Conduct | Contributing π
Oops, I messed up and removed and added again @allgandalf , not sure what happened with the upwork job when I did that π¬
Happens on best of our days π No worries @aldo-expensify
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.24-0 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): biruknew45+171@gmail.com Issue reported by: Applause - Internal Team
Action Performed:
Expected Result:
After changing the member's role to admin, the member should be able to post immediately. The compose box and permission message should update consistently based on role and "Who Can Post" settings. after reverting the member's role to "Member," the compose box should be hidden again, preventing the member from attempting to send messages
Actual Result:
After changing the member's role to admin, the member cannot post. the compose box and permission message disappear and reappear inconsistently then the compose box remains visible even after reverting the member's role to "Member," but sending a message results in an error
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
https://github.com/user-attachments/assets/30438e8b-9992-4d7e-a8a0-529295cf4592
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @daledah