-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Refactor withFullPolicy #10873
Refactor withFullPolicy #10873
Conversation
Two quick questions as I was helping @grgia review this one:
|
Not so familiar with everything applause can do. Can we ask them to look at the network tab in dev console? The only thing to verify is that a certain request doesn't appear like I mentioned in my tests.
I could add desktop but I don't think I can access network logs for the other platforms. There are no visible UI changes so not much to capture. |
|
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 agree with Andrew, your variable name refactor looks good, but we should probably have QA steps to ensure that the components that you removed the calls from still work as they should!
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.
LGTM
PR Reviewer Checklist
|
@grgia looks like this was merged without passing tests. Please add a note explaining why this was done and remove the |
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
This is breaking custom units, reverting it fixes things. Screen.Recording.2022-09-13.at.2.01.02.PM.mov |
cc @roryabraham
Details
withFullPolicy
towithPolicy
Policy.loadFullPolicy
withPolicy
from components that don't actually use itFixed Issues
$ https://github.com/Expensify/Expensify/issues/217650
Tests
command=Get
requests withreturnValueList=policyList
policyIDList={policyID}
parametersPR Review Checklist
Contributor (PR Author) Checklist
### Fixed Issues
section aboveTests
sectionQA steps
sectiontoggleReport
and notonIconClick
)src/languages/*
filesSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)/** comment above it */
displayName
propertythis
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)PR Reviewer Checklist
The Contributor+ will copy/paste it into a new comment and complete it after the author checklist is completed
### Fixed Issues
section aboveTests
sectionQA steps
sectiontoggleReport
and notonIconClick
).src/languages/*
filesSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
have been tested & I retested again)/** comment above it */
displayName
propertythis
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)QA Steps
Verify you can navigate to the following pages and view policy data on them without issue
Verify you can navigate to the following pages without issue
Screenshots
Web
Screen.Recording.2022-09-08.at.10.45.01.AM.mov
Mobile Web
Desktop
iOS
Android