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

[$250] Expensify personal - Not here page opens when opening Expensify profile from group member list #43841

Closed
6 tasks done
lanitochka17 opened this issue Jun 17, 2024 · 46 comments
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. External Added to denote the issue can be worked on by a contributor Reviewing Has a PR in review Weekly KSv2

Comments

@lanitochka17
Copy link

lanitochka17 commented Jun 17, 2024

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.84-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: N/A
Issue reported by: Applause - Internal Team

Action Performed:

  1. Go to staging.new.expensify.com
  2. Go to FAB > Start chat
  3. Create a group chat with "Expensify"
  4. Click on the group chat header > Members
  5. Click Expensify
  6. Click Profile

Expected Result:

Expensify profile will open without issue

Actual Result:

Not here page shows up when opening Expensify profile from group chat member list

Workaround:

Unknown

Platforms:

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

  • Android: Native
  • Android: mWeb Chrome
  • iOS: Native
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Add any screenshot/video evidence

Bug6515676_1718636209822.expppensify.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01f91896edfd02fabc
  • Upwork Job ID: 1820597582663880018
  • Last Price Increase: 2024-08-19
@lanitochka17 lanitochka17 added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Jun 17, 2024
Copy link

melvin-bot bot commented Jun 17, 2024

Triggered auto assignment to @alexpensify (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.

@lanitochka17
Copy link
Author

@alexpensify FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors

@bernhardoj
Copy link
Contributor

Proposal

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

Not found page shows when opening the expensify account from group member list.

What is the root cause of that problem?

The profile page will show the not found page if the account is in the restricted account list and the expensify account is in that list (and the only one).

const shouldShowBlockingView = (!isValidAccountID && !isLoading) || CONST.RESTRICTED_ACCOUNT_IDS.includes(accountID);

App/src/CONST.ts

Lines 2073 to 2076 in b335423

// Account IDs that profile view is prohibited
get RESTRICTED_ACCOUNT_IDS() {
return [this.ACCOUNT_ID.NOTIFICATIONS];
},

But previously, we can't create a group with an expensify account at all, but this PR now allows the expensify account to be shown in the new chat/search list result.

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

We can hide the Profile button if the account is the restricted account.

<MenuItem
title={translate('common.profile')}
icon={Expensicons.Info}
onPress={navigateToProfile}
shouldShowRightIcon
/>

Or if we want to allow the user to see the expensify profile, then we need to remove the restricted account check here.

const shouldShowBlockingView = (!isValidAccountID && !isLoading) || CONST.RESTRICTED_ACCOUNT_IDS.includes(accountID);

Or again, we can prevent the expensify account from being added to the group.

const itemRightSideComponent = useCallback(
(item: ListItem & OptionsListUtils.Option) => {
if (item.isSelfDM) {
return null;
}

image

if (item.isSelfDM || CONST.RESTRICTED_ACCOUNT_IDS.includes(item.accountID)) {
    return null;
}

notice there is another expensify account and we can add it to the restricted list if needed

@alexpensify
Copy link
Contributor

I'll review this one soon.

@melvin-bot melvin-bot bot added the Overdue label Jun 21, 2024
@alexpensify
Copy link
Contributor

No update yet

@melvin-bot melvin-bot bot added Overdue and removed Overdue labels Jun 21, 2024
@alexpensify
Copy link
Contributor

Still on my testing radar

@melvin-bot melvin-bot bot removed the Overdue label Jun 24, 2024
@alexpensify
Copy link
Contributor

Other GHs and customer tasks have been a higher priority, I'll get to this one soon.

@melvin-bot melvin-bot bot added the Overdue label Jul 1, 2024
@alexpensify
Copy link
Contributor

Closing - I'm unable to replicate this experience by following the steps here

2024-07-01_07-15-33

@melvin-bot melvin-bot bot removed the Overdue label Jul 1, 2024
@alexpensify
Copy link
Contributor

Heads up, I will be offline until Monday, July 8, 2024, and will not actively watch over this GitHub during that period.

If this GitHub needs an urgent update, please ask for help in the #expensify-open-source Slack Room. If it can wait, I'll continue the review process when I return online. Thanks!

@bernhardoj
Copy link
Contributor

@alexpensify hi, it's still reproducible, you need to create a group with [email protected]

aa.mp4

@alexpensify
Copy link
Contributor

@bernhardoj I'm catching up from being OOO. I see the other GH mentioned here is closed too. Should we move this convo to a Slack 🧵 or keep this one closed? Thanks for the feedback!

@bernhardoj
Copy link
Contributor

bernhardoj commented Jul 9, 2024

@alexpensify The other GH is closed because it's expected that Expensify is shown in the contact list which I mentioned in my proposal, but in this issue, opening the Expensify profile from the group members list page shows not found page. I think the first thing is to clarify what should be the expected behavior. There are 3 possible solutions (hide the profile button for Expensify, allow the user to see the Expensify profile, or not allow the user to add Expensify to a group) in my proposal. I think we can reopen this and assign an internal engineer to take a look and decide what should be the expected behavior.

@alexpensify
Copy link
Contributor

OK, tomorrow, I'll start a discussion in the Slack room for more crowdsourced feedback.

@bernhardoj
Copy link
Contributor

@alexpensify hi, is there any update with the discussion?

@alexpensify alexpensify reopened this Jul 29, 2024
@alexpensify
Copy link
Contributor

Reopening so this one doesn't slip out of my radar

@trjExpensify
Copy link
Contributor

You shouldn't be able to Add to group the Chronos or Expensify users, so let's prevent that. Both are allowing me to select Add to group on them.

Image

@melvin-bot melvin-bot bot removed the Overdue label Aug 13, 2024
@trjExpensify
Copy link
Contributor

trjExpensify commented Aug 13, 2024

@trjExpensify Just to confirm. Is the screenshot present in @bernhardoj 's proposal here #43841 (comment) is the UX expectation?

Yep, as the Add to group button is how you create a group, so we don't want to show the button.

@alexpensify
Copy link
Contributor

@abdulrahuman5196 - are we good to go here or do you need more feedback from the team? Thanks for the update.

@melvin-bot melvin-bot bot added the Overdue label Aug 15, 2024
Copy link

melvin-bot bot commented Aug 16, 2024

@alexpensify, @abdulrahuman5196 Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!

Copy link

melvin-bot bot commented Aug 19, 2024

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

@abdulrahuman5196
Copy link
Contributor

Hi, Checking now

@melvin-bot melvin-bot bot removed the Overdue label Aug 20, 2024
@abdulrahuman5196
Copy link
Contributor

@bernhardoj 's proposal here #43841 (comment) looks good and works well.

🎀 👀 🎀
C+ Reviewed

Copy link

melvin-bot bot commented Aug 20, 2024

Triggered auto assignment to @iwiznia, see https://stackoverflow.com/c/expensify/questions/7972 for more details.

@iwiznia
Copy link
Contributor

iwiznia commented Aug 20, 2024

But previously, we can't create a group with an expensify account at all, but this PR now allows the expensify account to be shown in the new chat/search list result.

Asking here because I don't know why we did that.

@iwiznia
Copy link
Contributor

iwiznia commented Aug 20, 2024

Just to clarify, the part of the proposal we are doing is just this right?

Or again, we can prevent the expensify account from being added to the group.

Assuming the answer is yes and assigning @bernhardoj

@melvin-bot melvin-bot bot removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Aug 20, 2024
@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Daily KSv2 labels Aug 21, 2024
@bernhardoj
Copy link
Contributor

Just to clarify, the part of the proposal we are doing is just this right?

Yes

PR is ready. I also have a question about the expected results here

cc: @abdulrahuman5196 @trjExpensify @iwiznia

@alexpensify
Copy link
Contributor

Next Steps

This PR is going through the review process and waiting for @iwiznia to final review it.

Heads up, I will be offline until Tuesday, September 3, 2024, and will not actively watch over this GitHub during that period.

If anything urgent is needed here, please ask for help in the #expensify-open-source Slack Room-- thanks!

@alexpensify
Copy link
Contributor

I'm catching up from being OOO last week and I see that this went into production yesterday. Seven days will be Monday, September 9.

@alexpensify
Copy link
Contributor

Automation didn't kick in here, so I'll manually work on the process tomorrow.

@alexpensify
Copy link
Contributor

alexpensify commented Sep 13, 2024

Payouts due: 2024-09-09

Upwork job is here. I'll pay via Upwork because this one was created on June 17. Please accept and I can complete the payment process. Thanks!

@bernhardoj
Copy link
Contributor

Accepted

@abdulrahuman5196
Copy link
Contributor

The PR that introduced the bug has been identified. Link to the PR:
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:
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:

#41290 (comment)

Determine if we should create a regression test for this bug.

Yes.

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.

  1. Press FAB > Start Chat
  2. Search for [email protected]
  3. Verify there is no "Add to group" button for the account

@alexpensify accepted the offer

@alexpensify
Copy link
Contributor

Closing - I've completed the payment process in Upwork.

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. External Added to denote the issue can be worked on by a contributor Reviewing Has a PR in review Weekly KSv2
Projects
No open projects
Status: Done
Development

No branches or pull requests

6 participants