-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Filter out assigned guides from the policy members #16338
Conversation
@thesahindia @marcochavezf One of you needs to copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button] |
I think it needs to reviewed internally? Or is there a way to get a guide account? |
@@ -323,6 +325,19 @@ class WorkspaceMembersPage extends React.Component { | |||
|| this.isKeywordMatch(member.firstName, searchValue) | |||
|| this.isKeywordMatch(member.lastName, searchValue)); | |||
|
|||
// eslint-disable-next-line arrow-body-style |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NAB: We already have other arrow-body-style functions, so I think this is not needed.
// eslint-disable-next-line arrow-body-style |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's a disable next line not disable for the file.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think you're right it's not needed though because the style is fine.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That comment is for when you want to use a curly brace for style reasons but the linter wants you to do it all on one line.
Ah I'm a bit confused, afaik Guides can only be added to group policies, and group policies are not accessible in NewDot unless you enter in the browser And if I access the Group policy in NewDot, I'm still seeing the Also not sure if we should also hide the cc @sakluger |
@marcochavezf Not quite. Guides & SDRs can also be added as admins to the Workspaces of leads. |
Signed in as what account? If you are logged in with an |
Oh should I add the Guide manually for Workspaces? Because the guide is not added, just when I create a group policy. Or maybe I'm missing something. |
I see, yeah I was using an expensify.com account, testing with a different account. |
We don't need to look at the members page with a group policy that is not really supported in NewDot.
Hmm... so I am not sure if adding the guide to a workspace in this way is the expected flow. The guides are added automatically and not manually added by users. To try this out you can:
|
@marcochavezf can I get your review here please 🙏 |
Reviewer Checklist
Screenshots/Videos |
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
@marcaaron We are not able to login as guides. Can we only verify the first 3 steps only |
🚀 Deployed to staging by https://github.com/marcochavezf in version: 1.2.92-0 🚀
|
I'll check do QA for this now thanks. |
🚀 Deployed to production by https://github.com/luacmartins in version: 1.2.92-2 🚀
|
// If this policy is owned by Expensify then show all support (expensify.com or team.expensify.com) emails | ||
if (PolicyUtils.isExpensifyTeam(lodashGet(this.props.policy, 'owner'))) { | ||
return; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This caused a "bug" #17252. The root cause was internal, just noting here for reference. If we delete the workspace the owner would be undefined
and the PolicyUtils.isExpensifyTeam
will crash.
Details
Customers are confused about seeing guides in their workspaces so we are filtering them out.
Fixed Issues
$ https://github.com/Expensify/Expensify/issues/266480
Tests
@team.expensify.com
user) in their policy/workspace/[policy id]/members
@team.expensify.com
users in any assigned policiesexpensify.com
and verify they can also see the@team.expensify.com
users or@expensify.com
users in any policies.Offline tests
N/A
QA Steps
Same as tests, but internal I think.
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)src/languages/*
files and using the translation methodWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)/** comment above it */
this
properly so there are no scoping issues (i.e. foronClick={this.submit}
the methodthis.submit
should be bound tothis
in the constructor)this
are necessary to be bound (i.e. avoidthis.submit = this.submit.bind(this);
ifthis.submit
is never passed to a component event handler likeonClick
)StyleUtils.getBackgroundAndBorderStyle(themeColors.componentBG
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)ScrollView
component to make it scrollable when more elements are added to the page.main
branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTest
steps.Screenshots/Videos
Web
Mobile Web - Chrome
Mobile Web - Safari
Desktop
iOS
Android