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

Public room - Tour link appears for anonymous user in public room #52115

Closed
2 of 8 tasks
IuliiaHerets opened this issue Nov 6, 2024 · 11 comments
Closed
2 of 8 tasks

Public room - Tour link appears for anonymous user in public room #52115

IuliiaHerets opened this issue Nov 6, 2024 · 11 comments
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2

Comments

@IuliiaHerets
Copy link

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: 9.0.58-0
Reproducible in staging?: Y
Reproducible in production?: N
Email or phone of affected tester (no customers): [email protected]
Issue reported by: Applause Internal Team

Action Performed:

  1. Go to staging.new.expensify.com
  2. Log out if logged in.
  3. Navigate to public room link anonymously.
  4. Open FAB.

Expected Result:

Tour link will not appear for anonymous user.

Actual Result:

Tour link appears for anonymous user in public room.

Workaround:

Unknown

Platforms:

  • Android: Standalone
  • Android: HybridApp
  • Android: mWeb Chrome
  • iOS: Standalone
  • iOS: HybridApp
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Bug6656088_1730861803145.20241106_105351.mp4

View all open jobs on GitHub

@IuliiaHerets IuliiaHerets added DeployBlockerCash This issue or pull request should block deployment Bug Something is broken. Auto assigns a BugZero manager. labels Nov 6, 2024
Copy link

melvin-bot bot commented Nov 6, 2024

Triggered auto assignment to @jliexpensify (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.

Copy link

melvin-bot bot commented Nov 6, 2024

Triggered auto assignment to @arosiclair (DeployBlockerCash), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.

@melvin-bot melvin-bot bot added the Daily KSv2 label Nov 6, 2024
Copy link

melvin-bot bot commented Nov 6, 2024

💬 A slack conversation has been started in #expensify-open-source

@github-actions github-actions bot added Engineering Hourly KSv2 and removed Daily KSv2 labels Nov 6, 2024
Copy link
Contributor

github-actions bot commented Nov 6, 2024

👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:

  1. Identify the pull request that introduced this issue and revert it.
  2. Find someone who can quickly fix the issue.
  3. Fix the issue yourself.

@NJ-2020
Copy link
Contributor

NJ-2020 commented Nov 6, 2024

Proposal

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

Public room - Tour link appears for anonymous user in public room### What is the root cause of that problem?

What is the root cause of that problem?

Offending PR: #51136

We did not check here if the user is anonymous

...(!hasSeenTour
? [
{
icon: Expensicons.Binoculars,
iconStyles: styles.popoverIconCircle,

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

We should check here if the user anonymous

...(!hasSeenTour
? [
{
icon: Expensicons.Binoculars,
iconStyles: styles.popoverIconCircle,

Or we can prevent of opening the url if the user is anonymous
onSelected: () => {
Welcome.setSelfTourViewed();
Link.openExternalLink(navatticURL);

onSelected: () => {
    if(Session.isAnonymousUser()) {
      return;
    }
    Welcome.setSelfTourViewed();
    Link.openExternalLink(navatticURL);
},

What alternative solutions did you explore? (Optional)

@nkdengineer
Copy link
Contributor

Proposal

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

Tour link appears for anonymous user in public room.

What is the root cause of that problem?

We don't check the user is anonymous user or not when clicking on the tour item

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

We should use interceptAnonymousUser as other place that we used to avoid this action for anonymous user and display the sign-in page

onSelected: () => interceptAnonymousUser(() => {
    Welcome.setSelfTourViewed();
    Link.openExternalLink(navatticURL);
}),

What alternative solutions did you explore? (Optional)

@arosiclair
Copy link
Contributor

I reproduced in staging web. I'm not sure this is a real bug honestly. The tour link works just fine as an anonymous user (it just links to an external website). Either way, it's a brand new feature and a minor issue (if it all) so I'll demote this.

@arosiclair arosiclair added Daily KSv2 and removed DeployBlockerCash This issue or pull request should block deployment Engineering Hourly KSv2 labels Nov 6, 2024
@arosiclair
Copy link
Contributor

@mountiny @rushatgabhane can you guys take a look at this? It doesn't seem like a problem to me but you guys would know better.

@jliexpensify
Copy link
Contributor

Assigned Rushat for 👀

@rushatgabhane
Copy link
Member

rushatgabhane commented Nov 11, 2024

Not a bug. Anonymous users should be able to see tour, i don't see why that would be a problem

@mountiny
Copy link
Contributor

I agree, I don't think its a problem that the anonymous users can see the tour link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2
Projects
None yet
Development

No branches or pull requests

7 participants