-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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-10-09] [$500] Web - Can edit private note of archived workspace using URL #27891
Comments
ProposalPlease re-state the problem that we are trying to solve in this issue.Can edit private notes of archived workspace using URL What is the root cause of that problem?We do not have the logic to check if the room is archived, as a result, users can access and edit the note What changes do you think we should make in order to solve the problem?We should add the logic to check whether the room is archived by adding to the shouldShow prop of the FullPageNotFoundView component
ReportUtils.isArchivedRoom(report) What alternative solutions did you explore? (Optional) |
ProposalPlease re-state the problem that we are trying to solve in this issue.Can edit private note of archived workspace using URL What is the root cause of that problem?In What changes do you think we should make in order to solve the problem?we need to add condition const isArchivedRoom = useMemo(() => ReportUtils.isArchivedRoom(report), [report]);
<FullPageNotFoundView
shouldShow={..... || isArchivedRoom} We can apply the same fix in other notes pages, like PrivateNotesViewPage.js, PrivateNotesListPage.js ..., I think other proposals not included these places. What alternative solutions did you explore? (Optional)we can instead allow displaying the private notes, but disable edit it when isArchived |
Triggered auto assignment to @Christinadobrzyn ( |
Job added to Upwork: https://www.upwork.com/jobs/~011c113c6aa5282936 |
Bug0 Triage Checklist (Main S/O)
|
Triggered auto assignment to @puneetlath ( |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @jjcoffee ( |
Suggestion: This must be handled on the backend as well. If the workspace is archived and yet a PUT/PATCH to Note is made, the backend must throw 405 [ Not Allowed ]. |
Reviewing tomorrow! |
Assuming the expected behaviour is to display "not found", then since we have two pretty much identical proposals, we can go with @dukenv0307's proposal - it was first and LGTM! 🎀👀🎀 C+ reviewed |
Current assignee @puneetlath is eligible for the choreEngineerContributorManagement assigner, not assigning anyone new. |
Hi @jjcoffee Navigation flow: report details ⇾ notes list ⇾ note ⇾ edit note. Thanks! |
@jjcoffee can you please give me the last opinion about this #27891 (comment) |
@ahmedGaber93 Small additional changes like those you mention can be addressed in the PR and don't usually influence proposal selection. |
@jjcoffee I just thought this wouldn't be remembered, so I refer to it. |
📣 @jjcoffee 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app! |
📣 @dukenv0307 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
📣 @hichamcc We're missing your Upwork ID to automatically send you an offer for the Reporter role. |
Cool, @dukenv0307's proposal sounds good to me. I'll also update the back-end to disallow editing this for archived rooms. |
@jjcoffee The PR is ready for review |
🎯 ⚡️ Woah @jjcoffee / @dukenv0307, great job pushing this forwards! ⚡️ The pull request got merged within 3 working days of assignment, so this job is eligible for a 50% #urgency bonus 🎉
On to the next one 🚀 |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.3.75-12 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-10-09. 🎊 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:
|
@jjcoffee Can you complete the checklist and list any regression test steps? Payouts due: Issue Reporter: $50 @hichamcc (paid in Upwork) Eligible for 50% #urgency bonus? Y - based on #27891 (comment) Upwork job is here. |
@Christinadobrzyn accepted |
|
Regression Test Proposal
Do we agree 👍 or 👎 |
@Christinadobrzyn Checklist updated - apologies for the delay! |
Thanks! Test regression made and paid out based on #27891 (comment) Closing! |
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:
User should not be able to edit private note of archived workspace
Actual Result:
User is able to edit private note of archived workspace
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.3.72.6
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
note-archived.1.webm
Recording.4661.mp4
Expensify/Expensify Issue URL:
Issue reported by: @hichamcc
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1695067265209059
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: