Skip to content
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-12-04] [$1000] Web - Displays "Hmm... it's not here" when click on Task by Anonymous User in a public room #23491

Closed
1 of 6 tasks
kbecciv opened this issue Jul 24, 2023 · 73 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Engineering Internal Requires API changes or must be handled by Expensify staff

Comments

@kbecciv
Copy link

kbecciv commented Jul 24, 2023

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:

  1. Create a task in any public room
  2. Send any message in the chat report of task details
  3. Back to the public room and copy public room URL
  4. Open the public room URL in incognito mode
  5. Tap on Task to go to Task details page

Expected Result:

Since tasks are essentially a thread with a done state - the anonymous user should be able to view the Task details, but should not be able to take any of the actions related to a task (complete task, edit)

Actual Result:

App displays "Hmm... it's not here"

Workaround:

Unknown

Platforms:

Which of our officially supported platforms is this issue occurring on?

  • Android / native
  • Android / Chrome
  • iOS / native
  • iOS / Safari
  • MacOS / Chrome / Safari
  • MacOS / Desktop

Version Number: 1.3.44.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
Notes/Photos/Videos: Any additional supporting documentation

Screen.Recording.2023-07-25.at.06.40.01.mov

Expensify/Expensify Issue URL:
Issue reported by: @hoangzinh
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1689950784101419

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~0184f834df2c94f428
  • Upwork Job ID: 1684551229979066368
  • Last Price Increase: 2023-08-03
@kbecciv kbecciv added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Jul 24, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jul 24, 2023

Triggered auto assignment to @michaelhaxhiu (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.

@melvin-bot
Copy link

melvin-bot bot commented Jul 24, 2023

Bug0 Triage Checklist (Main S/O)

  • This "bug" occurs on a supported platform (ensure Platforms in OP are ✅)
  • This bug is not a duplicate report (check E/App issues and #expensify-bugs)
    • If it is, comment with a link to the original report, close the issue and add any novel details to the original issue instead
  • This bug is reproducible using the reproduction steps in the OP. S/O
    • If the reproduction steps are clear and you're unable to reproduce the bug, check with the reporter and QA first, then close the issue.
    • If the reproduction steps aren't clear and you determine the correct steps, please update the OP.
  • This issue is filled out as thoroughly and clearly as possible
    • Pay special attention to the title, results, platforms where the bug occurs, and if the bug happens on staging/production.
  • I have reviewed and subscribed to the linked Slack conversation to ensure Slack/Github stay in sync

@StevenKKC
Copy link
Contributor

StevenKKC commented Jul 24, 2023

Proposal

Please re-state the problem that we are trying to solve in this issue.

Displays "Hmm... it's not here" when click on Task by Anonymous User in a public room.

What is the root cause of that problem?

When click on task, the following code is called.

<PressableWithoutFeedback
onPress={() => Navigation.navigate(ROUTES.getReportRoute(props.taskReportID))}

There is no checking whether user is anonymous, so the user is navigated to the task detail page.
But BE responds with "You do not have the permission to do the requested action.", so "Hmm... it's not here" is displayed.

What changes do you think we should make in order to solve the problem?

We should add session check as below.

	onPress={Session.checkIfActionIsAllowed(() => Navigation.navigate(ROUTES.getReportRoute(props.taskReportID)))}

What alternative solutions did you explore? (Optional)

None.

@thienlnam
Copy link
Contributor

Since tasks are essentially a thread with a done state - the anonymous user should be able to view the thread details, but should not be able to take any of the actions related to a task (complete task, edit)
So we should get a bug created to fix this so that an anonymous user can view task details in a public room always as the expected result

@melvin-bot melvin-bot bot added the Overdue label Jul 26, 2023
@michaelhaxhiu michaelhaxhiu added the External Added to denote the issue can be worked on by a contributor label Jul 27, 2023
@melvin-bot melvin-bot bot changed the title Web - Displays "Hmm... it's not here" when click on Task by Anonymous User in a public room [$1000] Web - Displays "Hmm... it's not here" when click on Task by Anonymous User in a public room Jul 27, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jul 27, 2023

Job added to Upwork: https://www.upwork.com/jobs/~0184f834df2c94f428

@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Jul 27, 2023
@melvin-bot
Copy link

melvin-bot bot commented Jul 27, 2023

Current assignee @michaelhaxhiu is eligible for the External assigner, not assigning anyone new.

@melvin-bot
Copy link

melvin-bot bot commented Jul 27, 2023

Triggered auto assignment to Contributor-plus team member for initial proposal review - @abdulrahuman5196 (External)

@michaelhaxhiu
Copy link
Contributor

Agree 100% with @thienlnam

@melvin-bot melvin-bot bot removed the Overdue label Jul 27, 2023
@BhuvaneshPatil
Copy link
Contributor

This needs to be worked upon the backend.
currently we don't have permission to fetch the report.
Screenshot 2023-07-27 at 11 00 28 PM

@melvin-bot melvin-bot bot added the Overdue label Jul 31, 2023
@abdulrahuman5196
Copy link
Contributor

Reviewing today

@melvin-bot melvin-bot bot removed the Overdue label Jul 31, 2023
@abdulrahuman5196
Copy link
Contributor

@thienlnam I am too seeing this error on openReport api when click on task from public room by anonymous user. We should check on this in backend.

On a side note: During testing for the first time the task details actually opened for me. But after that I am seeing this issue. Not sure if backend sent something different during first time.

So we should check in backend first

@thienlnam
Copy link
Contributor

Yeah agreed, let's get this internal and see what the issue is

@melvin-bot
Copy link

melvin-bot bot commented Aug 3, 2023

📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸

@melvin-bot melvin-bot bot added the Overdue label Aug 3, 2023
@michaelhaxhiu michaelhaxhiu added Internal Requires API changes or must be handled by Expensify staff Engineering and removed External Added to denote the issue can be worked on by a contributor Help Wanted Apply this label when an issue is open to proposals by contributors labels Aug 3, 2023
@melvin-bot
Copy link

melvin-bot bot commented Aug 3, 2023

Current assignee @abdulrahuman5196 is eligible for the Internal assigner, not assigning anyone new.

@melvin-bot melvin-bot bot added the Overdue label Oct 26, 2023
@marcochavezf
Copy link
Contributor

No update

@melvin-bot melvin-bot bot removed the Overdue label Oct 26, 2023
@marcochavezf
Copy link
Contributor

No update

@marcochavezf marcochavezf added Weekly KSv2 and removed Daily KSv2 labels Oct 27, 2023
@miljakljajic
Copy link
Contributor

Given this has been internal since August without much movement, is this low priority enough to close?

@melvin-bot melvin-bot bot added the Overdue label Nov 10, 2023
@marcochavezf
Copy link
Contributor

marcochavezf commented Nov 10, 2023

I have a backend fix for this in this PR. I noticed we'd still need to limit the anonymous user to mark the task as done (it will be fixed in a second PR).

@melvin-bot melvin-bot bot removed the Overdue label Nov 10, 2023
@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Weekly KSv2 labels Nov 10, 2023
@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Nov 27, 2023
@melvin-bot melvin-bot bot changed the title [$1000] Web - Displays "Hmm... it's not here" when click on Task by Anonymous User in a public room [HOLD for payment 2023-12-04] [$1000] Web - Displays "Hmm... it's not here" when click on Task by Anonymous User in a public room Nov 27, 2023
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Nov 27, 2023
Copy link

melvin-bot bot commented Nov 27, 2023

Reviewing label has been removed, please complete the "BugZero Checklist".

Copy link

melvin-bot bot commented Nov 27, 2023

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.3-11 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-12-04. 🎊

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.

  • External issue reporter
  • Contributor that fixed the issue
  • Contributor+ that helped on the issue and/or PR

For reference, here are some details about the assignees on this issue:

Copy link

melvin-bot bot commented Nov 27, 2023

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:

  • [@abdulrahuman5196] The PR that introduced the bug has been identified. Link to the PR:
  • [@abdulrahuman5196] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake. Link to comment:
  • [@abdulrahuman5196] A discussion in #expensify-bugs has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner. Link to discussion:
  • [@abdulrahuman5196] Determine if we should create a regression test for this bug.
  • [@abdulrahuman5196] If we decide to create a regression test for the bug, please propose the regression test steps to ensure the same bug will not reach production again.
  • [@miljakljajic] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:

@melvin-bot melvin-bot bot added Daily KSv2 Overdue and removed Weekly KSv2 labels Dec 3, 2023
@miljakljajic
Copy link
Contributor

Offers extended to @hoangzinh and @abdulrahuman5196! I'll pay as soon as you accept them.

@melvin-bot melvin-bot bot removed the Overdue label Dec 4, 2023
@hoangzinh
Copy link
Contributor

Accepted. Thanks @miljakljajic

@miljakljajic
Copy link
Contributor

Both payments complete!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Engineering Internal Requires API changes or must be handled by Expensify staff
Projects
None yet
Development

No branches or pull requests

10 participants