-
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
[No QA] Fix: Expensify engineer is not tagged and assigned in Deploy Checklist to complete the QA for PRs with Internal QA. #38434
[No QA] Fix: Expensify engineer is not tagged and assigned in Deploy Checklist to complete the QA for PRs with Internal QA. #38434
Conversation
…d-assigned-in-Deploy-Checklist-to-complete-the-QA-for-PRs-with-Internal-QA
…t to complete the QA for PRs with Internal QA.
const internalQAPRs = _.filter(data, (pr) => !_.isEmpty(_.findWhere(pr.labels, {name: CONST.LABELS.INTERNAL_QA}))); | ||
return Promise.all(_.map(internalQAPRs, (pr) => this.getPullRequestMergerLogin(pr.number).then((mergerLogin) => ({url: pr.html_url, mergerLogin})))).then((results) => { | ||
// The format of this map is following: | ||
// { | ||
// 'https://github.com/Expensify/App/pull/9641': 'PauloGasparSv', | ||
// 'https://github.com/Expensify/App/pull/9642': 'mountiny' | ||
// } | ||
const internalQAPRMap = _.reduce( | ||
results, | ||
(acc, {url, mergerLogin}) => { | ||
acc[url] = mergerLogin; | ||
return acc; | ||
}, | ||
{}, | ||
); | ||
console.log('Found the following Internal QA PRs:', internalQAPRMap); |
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.
The Staging checklist failed here: https://github.com/Expensify/App/actions/runs/8231107620/job/22505767275 because the data returned from the github api when fetching the PR data here does not contain merged_by
attribute, we can verify this here: https://api.github.com/repos/Expensify/App/pulls?state=closed
We should call the api for each internal Qa PR to get the merged_by
attribute, example: https://api.github.com/repos/Expensify/App/pulls/37088 , to do this, I added a utils function here to fetch PR merger login.
@aimane-chnaif Please 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] |
@aimane-chnaif could you please approve to assign @roryabraham ? this doesn't require C+ review. Thanks! |
Thanks @rayane-djouah. I was OOO the last couple days and can't easily do the checklist from my mobile, so I'll plan to review this on Monday |
issueBody += '\r\n\r\ncc @Expensify/applauseleads\r\n'; | ||
return issueBody; | ||
const internalQAPRs = _.filter(data, (pr) => !_.isEmpty(_.findWhere(pr.labels, {name: CONST.LABELS.INTERNAL_QA}))); | ||
return Promise.all(_.map(internalQAPRs, (pr) => this.getPullRequestMergerLogin(pr.number).then((mergerLogin) => ({url: pr.html_url, mergerLogin})))).then((results) => { |
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.
@rayane-djouah why do we need to do another network request to get the PR merger login? isn't that information already available on the pr
object?
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.
The merged_by attribute is not available in the response from the "List Pull Requests" endpoint. This can be confirmed by checking the endpoint's response schema here and by inspecting the actual response from https://api.github.com/repos/Expensify/App/pulls?state=closed. To obtain this information, we should use the "Get a Pull Request" endpoint. The need for additional network requests will primarily affect internal QA PRs.
Reviewer Checklist
Screenshots/VideosAndroid: NativeAndroid: mWeb ChromeiOS: NativeiOS: mWeb SafariMacOS: Chrome / SafariMacOS: Desktop |
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
@roryabraham can we add internal QA label to this PR? Thank you. |
Details
Fixed Issues
$ #37691
PROPOSAL: #37691 (comment)
Tests
N/A
Offline tests
N/A
QA Steps
N/A
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodSTYLE.md
) were followedAvatar
, I verified the components usingAvatar
are working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG)
)Avatar
is modified, I verified thatAvatar
is working as expected in all cases)Design
label and/or tagged@Expensify/design
so the design team can review the changes.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
N/A
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop