-
Notifications
You must be signed in to change notification settings - Fork 3k
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 2024-01-11] [$500] Task - Task assignee list opens with deep link when user has no access to edit task #33296
Comments
Job added to Upwork: https://www.upwork.com/jobs/~01c0cdfb5367dcebe3 |
Triggered auto assignment to @garrettmknight ( |
Bug0 Triage Checklist (Main S/O)
|
Triggered auto assignment to Contributor-plus team member for initial proposal review - @narefyev91 ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.We can access task assignee page even though we don't have access to. What is the root cause of that problem?We already have a condition here to disable it if the user doesn't have the permission (canModifyTask). App/src/pages/tasks/TaskAssigneeSelectorModal.js Lines 208 to 209 in b3ecf32
But the problem here is that the App/src/pages/tasks/TaskAssigneeSelectorModal.js Lines 249 to 252 in b3ecf32
App/src/pages/tasks/TaskAssigneeSelectorModal.js Lines 262 to 268 in b3ecf32
So, What changes do you think we should make in order to solve the problem?Add a new Onyx subscription to get the current
With this change, we can now remove this code and replace all of its usage with the App/src/pages/tasks/TaskAssigneeSelectorModal.js Lines 129 to 134 in b3ecf32
|
ProposalPlease re-state the problem that we are trying to solve in this issue.Task assignee list opens. What is the root cause of that problem?In here, we're relying on the This leads to the What changes do you think we should make in order to solve the problem?In here, we should use the I believe it's intentional to not connect to the Optionally, since both this change and this existing code are getting the report via What alternative solutions did you explore? (Optional)NA |
ProposalPlease re-state the problem that we are trying to solve in this issue.Task - Task assignee list opens with deep link when user has no access to edit task What is the root cause of that problem?We did get What changes do you think we should make in order to solve the problem?We can passed from rootParentReportPolicy: {
key: ({route}) => {
const report = ReportUtils.getReport(route.params.reportID)
const rootParentReport = ReportUtils.getRootParentReport(report);
return `${ONYXKEYS.COLLECTION.POLICY}${rootParentReport ? rootParentReport.policyID : '0'}`;
},
selector: (policy) => _.pick(policy, ['role']),
}, What alternative solutions did you explore? (Optional) |
Proposal from @dukenv0307 looks good to me #33296 (comment) |
Triggered auto assignment to @lakchote, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
@narefyev91 I think having a different way to get the |
I think this issue is straightforward so an optimized solution that doesn't degrade performance should be preferred before we get to the PR, where we might or might not realize the issue and could have the bad code merged. |
@dukenv0307's proposal LGTM 👍 |
📣 @dukenv0307 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
Taking this over. |
@narefyev91 this PR is ready for review. |
📣 @c3024 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
@c3024 you're up! |
PR review done. Awaiting final approval for merge by @lakchote |
Triggered auto assignment to @robertjchen ( |
Reassigning since @lakchote is out for parental leave. |
Merged! |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.21-4 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 2024-01-11. 🎊 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.
For reference, here are some details about the assignees on this issue:
|
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
|
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
|
Regression test proposal
👍 or 👎 |
Everybody's paid and the QA issue is up. Closing! |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Version Number: 1.4.14.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):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: Applause - Internal Team
Slack conversation:
Action Performed:
Precondition:
Expected Result:
Not here page opens.
Actual Result:
Task assignee list opens.
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6319789_1702998210569.20231219_191222.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: