-
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 2023-08-01] [$1000] Users who are not assigned can update the assignor for the task and update the status of the task #21716
Comments
Triggered auto assignment to @kevinksullivan ( |
Bug0 Triage Checklist (Main S/O)
|
ProposalPlease re-state the problem that we are trying to solve in this issue.B can't assign himself and update the task What is the root cause of that problem?In TaskHeader we did not check who can open the modal change assign App/src/components/TaskHeader.js Line 54 in c122266
App/src/components/TaskHeader.js Lines 66 to 69 in c122266
What changes do you think we should make in order to solve the problem?We need to check if the current user is ownerAccountID or not, If not we will disable
Result: Screen.Recording.2023-06-28.at.01.10.47.movWhat alternative solutions did you explore? (Optional)N/A |
checking on expected behavior in slack before moving forward |
@kevinksullivan Huh... This is 4 days overdue. Who can take care of this? |
Job added to Upwork: https://www.upwork.com/jobs/~018d124d13032a7005 |
Triggered auto assignment to @puneetlath ( |
Missed the label but this is a bug. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @mananjadhav ( |
@namhihi237 Based on the slack conversation I think the task should be enabled for policy admins, creator(owner) and assignee. Does your proposal cover all the scenarios? |
ProposalPlease re-state the problem that we are trying to solve in this issue.Users who are not assigned can update the assignor for the task and update the status of the task What is the root cause of that problem?We are not adding check on who can edit the task What changes do you think we should make in order to solve the problem?Add this check in this empty space App/src/components/TaskHeader.js Line 56 in c122266
pass policy in props to TaskHeader and then use it check if it's policy admin In end change thisdisabled={!isOpen || !canEdit} we can also add this check for title and description as mentioned in slack What alternative solutions did you explore? (Optional) |
Updated as Task View has changed ProposalPlease re-state the problem that we are trying to solve in this issue.Users who are not assigned can update the assignor for the task and update the status of the task What is the root cause of that problem?We are not adding check on who can edit the task What changes do you think we should make in order to solve the problem?3 persons are allowed to edit assignee as mentioned in slack
The challenge here we are not passing any policy data to the To check if
This function will return policy using policyID then we can use this data in
and then use this to disable For example here
we can change this line to
We can use same approach to limit user action for tasks at all the places where we want to restrict the user. We need to also fix this in taskHeaderActionButton. What alternative solutions did you explore? (Optional) |
Based on the requirements @Nodebrute's proposal looks good here. @puneetlath @kevinksullivan Wouldn't this also require a backend fix? 🎀 👀 🎀 C+ reviewed. |
Triggered auto assignment to @PauloGasparSv, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
@mananjadhav Could you please let me know the next steps here? |
Wait for @PauloGasparSv to review and assign the job. Thanks for the patience here. |
Triggered auto assignment to @Li357 ( |
Sorry @mananjadhav , was OOO. New internal engineer assigned |
@Li357 Can you please check the linked PR? |
Not overdue, going through regression testing |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.44-2 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 2023-08-01. 🎊 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:
As a reminder, here are the bonuses/penalties that should be applied for any External 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:
|
While this is treated as a bug, I would also consider this a feature request. We discussed on the group on what the expected behavior should be and then finally added the code to handle this. I wouldn't attribute this to any PR, unless this was decided earlier which I can't find. I think we should add a regression test for this one. @kevinksullivan we should add the Tests from the PR. @kevinksullivan @Li357 wdyt? Regression Test Steps
@kevinksullivan Also this is ready for payout on 08/01, but there's no timeline bonus attached to it. |
Agree, I think regression tests here would be valuable and those steps look good (I think steps 3 to 6 should be 4 to 6 for step 8?) |
For step 8, it is 3 to 6, as we need to add an assignee here. |
Payment summary:
|
Reviewed details for @mananjadhav. These details are accurate based on summary from Business Reviewer and are now approved for payment in NewDot. |
Upwork payments done |
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:
B can't assign himself and update the task
Actual Result:
B can assign himself and update the task
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.33-2
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
Screen.Recording.2023-06-24.at.20.29.58.mov
Recording.1117.mp4
Expensify/Expensify Issue URL:
Issue reported by: @namhihi237
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1687614685996199
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: