[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.
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.
@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.
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 Issuessection aboveTestssectionOffline stepssectionQA stepssectiontoggleReportand notonIconClick)myBool && <MyComponent />.src/languages/*files and using the translation methodSTYLE.md) were followedAvatar, I verified the components usingAvatarare working as expected)StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))Avataris modified, I verified thatAvataris working as expected in all cases)Designlabel and/or tagged@Expensify/designso the design team can review the changes.ScrollViewcomponent to make it scrollable when more elements are added to the page.mainbranch was merged into this PR after a review, I tested again and verified the outcome was still expected according to theTeststeps.Screenshots/Videos
N/A
Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari
MacOS: Desktop