-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
[$1000] User B still able to split the bill even when admin changes the settings #21922
Comments
Triggered auto assignment to @Christinadobrzyn ( |
Bug0 Triage Checklist (Main S/O)
|
ProposalPlease re-state the problem that we are trying to solve in this issue.Split bill should get dismissed in a similar way how the attachment gets dismissed when admin changes the settings to 'Only admin' What is the root cause of that problem?The problem here is that we haven't dismissed the split bill modal once it's opened What changes do you think we should make in order to solve the problem?We should add a condition check to allow or not, if no we will dismiss the model
checkAllowDismissModal() {
const isAllowedSplit = ReportUtils.isAllowedToComment(this.props.report);
if (!isAllowedSplit) {
Navigation.dismissModal(this.reportID);
}
} In a this.checkAllowDismissModal() What alternative solutions did you explore? (Optional)N/A |
Looks like something related to As a reminder, please make sure that all proposals are not workarounds and that any and all attempt to fix the issue holistically have been made before proceeding with a solution. Proposals to change our Feel free to drop a note in #expensify-open-source with any questions. |
Job added to Upwork: https://www.upwork.com/jobs/~01c0a939934a385c11 |
Current assignee @Christinadobrzyn is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @mollfpr ( |
I can reproduce - adding external |
dupe of #21902 |
This is not a dupe. This issue was posted on Slack channel on June 26. Whereas #21902 was posted yesterday. Thus, 21902 is a dupe of this issue. |
ProposalPlease re-state the problem that we are trying to solve in this issue.If a user is splitting bill/assigning task in a room and permissions are changed then RHN doesn't hide dynamically. What is the root cause of that problem?We don't check for permission updates in the So if the room is archived, has any errors, or permission is changed to admin only then composer will be hidden but RHN for task or split bill won't hide. What changes do you think we should make in order to solve the problem?We use the following function to hide the composer when room is archived, report has any errors or permissions are changed to admin only - Lines 2319 to 2327 in 53e4154
We should use the same function to navigate to the report dynamically in all 3 cases. To do that, we need to add the following code in if(ReportUtils.shouldHideComposer(report, reportErrors)) Navigation.navigate(ROUTES.getReportRoute(reportID)); I checked and We can make a new utility function for this and reuse it in both places to navigate to the parent report if permissions are changed/room is deleted or there are any errors. What alternative solutions did you explore? (Optional)NA Result - Screen.Recording.2023-06-30.at.3.53.10.AM.mov |
Thank you guys for the proposals! @Nikhil-Vats I try using
Based on our NAVIGATION guidelines, we should use We can work on @namhihi237 proposal, but I'd instead use 🎀 👀 🎀 C+ reviewed! |
Triggered auto assignment to @arosiclair, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
Yes, Thanks @mollfpr reviewed the proposal, and we will go with |
@arosiclair will you let us know what you think of #21922 (comment) |
📣 @mollfpr 🎉 An offer has been automatically sent to your Upwork account 🎉 Reviewer - [$1000] User B still able to split the bill even when admin changes the settings |
📣 @namhihi237 You have been assigned to this job! |
📣 @Priya! 📣
|
The BZ member will need to manually hire priya for this role Reporter. Please store your Upwork details and apply to our Upwork job so this process is automatic in the future! |
@namhihi237 sorry to ask but I can't find your Upwork profile in our GHs. Can you send me a link to your Upwork profile so I can hire you? Thanks! |
Awesome - hired you @namhihi237! @priya-zha & @mollfpr you were automatically hired. External Upwork job: https://www.upwork.com/jobs/~01c0a939934a385c11 |
The PR was deployed to production, I think have an issue with automatic post |
I'm going to be ooo until July 31st so going to unassign and assign a new teammate. @sophiepintoraetz At this time, we're reviewing the PR and paying based on #21922 (comment) I'll take this back if it's still open when I return. |
Triggered auto assignment to @sophiepintoraetz ( |
This comment was marked as outdated.
This comment was marked as outdated.
@arosiclair, @mollfpr, @namhihi237, @sophiepintoraetz Whoops! This issue is 2 days overdue. Let's get this updated quick! |
Payments issued! |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Action Performed:
Expected Result:
Split bill should get dismissed in a similar way how the attachment gets dismissed when admin changes the settings to 'Only admin'
Actual Result:
User B still able to split the bill even when admin changes the settings
Workaround:
Can the user still use Expensify without this being fixed? Have you informed them of the workaround?
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.3.34-1
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
green-2023-06-26_18.50.30.mp4
Recording.964.mp4
Expensify/Expensify Issue URL:
Issue reported by: @priya-zha
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1687785649051329
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: