-
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
[$250] The "new workspace" button is shown in Global Create to accounts already on workspaces #47567
Comments
Triggered auto assignment to @sakluger ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.We're showing the "new workspace" button in Global Create to accounts that are already on workspaces What is the root cause of that problem?Currently, we'll show the "new workspace" button in Global Create when the user has any active free policies (aka workspaces) In function App/src/libs/actions/Policy/Policy.ts Lines 237 to 242 in ad2ff21
What changes do you think we should make in order to solve the problem?
const adminChatEnabledPolicies = Object.values(policies ?? {}).filter(
(policy) =>
policy &&
((policy.type === CONST.POLICY.TYPE.FREE && policy.role === CONST.POLICY.ROLE.ADMIN) ||
(!includeOnlyFreePolicies &&
policy.type !== CONST.POLICY.TYPE.PERSONAL &&
+ (!shouldExcludeAdmin ? policy.role === CONST.POLICY.ROLE.ADMIN : true) &&
policy.isPolicyExpenseChatEnabled)),
);
What alternative solutions did you explore? (Optional)We'll write a new function to check the user was in a workspace that was not of type
|
Before I add the external label, I'm confirming the expected behavior in the original bug report thread in Slack. |
Job added to Upwork: https://www.upwork.com/jobs/~017c30fdb0f2028e60 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @thesahindia ( |
Triggered auto assignment to @arosiclair, see https://stackoverflow.com/c/expensify/questions/7972 for more details. |
We should also remove the
|
📣 @daledah You have been assigned to this job! |
@thesahindia This PR is ready for review. |
The automation didn't work, but this is on prod! Payment was due around Sept 2. |
Summarizing payment on this issue: Contributor: @daledah $250, sent offer via Upwork: https://www.upwork.com/nx/wm/offer/103905329 |
@thesahindia could you please let me know if you think we need regression test steps here? |
@sakluger @arosiclair @thesahindia @daledah this issue is now 4 weeks old, please consider:
Thanks! |
Sorry for the delay. I missed the notification on this. Here are the test steps:-
|
Thanks!
I think we're all good here! |
$250 approved for @thesahindia |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Version Number: 9.0.21-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
Expensify/Expensify Issue URL:
Issue reported by: @puneetlath
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1723669119268099
Action Performed:
Expected Result:
Create new workspace should not appear
Actual Result:
New workspace option appears
Workaround:
unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: