49954 approval workflow editing#54178
Conversation
|
@huult we've got a conflict 🙏 |
Reviewer Checklist
Screenshots/VideosAndroid: Nativeandroid-49954-compressed.mp4Android: mWeb Chrome111screen-recording-2025-01-14-at-45115-in-the-afternoon_BRUBKIDN.mp4iOS: NativeiOS: mWeb Safariscreen-recording-2025-01-15-at-20157-in-the-afternoon-ir8jv47y_2UosYyz4.mp4Case 6 Screen.Recording.2025-01-15.at.2.07.13.in.the.afternoon.movMacOS: Chrome / Safariscreen-recording-2025-01-06-at-103316-at-night_dLwRON9q.mp4MacOS: Desktopdesktop-49954-compressed.mp4 |
|
@getusha I’ve resolved the conflict. Can you check it again? |
|
@huult now i give it a second look Case 5 expected result seems a bit off to me. I think it makes sense for the expected result be: Workflow 1 |
|
I think it's correct. Here are the statements for reference:
So using the "Case 5" example provided from the OP whereby approverB is removed from the workspace: Case 5:Workflow Setup:
So yeah, I think the expected results below is correct. 👍 Happy for a second opinion though, @JmillsExpensify if you want to take a look. :) Expected Result:
|
|
@getusha s per the information from @trjExpensify , case 5 is still correct and does not require any updates. |
|
Confirming that the logic @trjExpensify described above is correct. |
|
let's remove step 2 from QA steps @huult |
|
@getusha it's done |
|
The primary workflow appears as if it was removed, when removing an approver from workflow 2 when offline, I am able to reproduce it on staging as well. looks like related (we should handle the offline behavior for each case), we could probably handle this as a follow up. Screen.Recording.2025-01-15.at.3.30.09.in.the.afternoon.mov |
|
@huult checks are failing, could you have a look? I've completed the checklist a while ago. |
|
I will check it soon |
|
@huult, seems like we have some conflicts |
|
@Gonals I'm checking |
|
@Gonals it's done |
|
@Gonals The PR is ready for merge |
|
✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release. |
|
🚀 Deployed to staging by https://github.com/Gonals in version: 9.1.0-0 🚀
|
|
🚀 Deployed to production by https://github.com/francoisl in version: 9.1.0-2 🚀
|
| } | ||
|
|
||
| return (a.approvers.at(0)?.displayName ?? '-1').localeCompare(b.approvers.at(0)?.displayName ?? '-1'); | ||
| return (a.approvers.at(0)?.displayName ?? CONST.DEFAULT_NUMBER_ID).toString().localeCompare((b.approvers.at(0)?.displayName ?? CONST.DEFAULT_NUMBER_ID).toString()); |
There was a problem hiding this comment.
I am pretty sure this is written wrong. @getusha Can you get this corrected?
There was a problem hiding this comment.
I can spin up a quick PR but curious, is there any regression?
|
|
||
| if (hasApprovers) { | ||
| const ownerEmail = ownerDetails.login; | ||
| accountIDsToRemove.forEach((accountID) => { |
Details
Fixed Issues
$ #49954
PROPOSAL: #49954 (comment)
Tests
Same QA step
Offline tests
QA Steps
Case 1:
Workflow Setup:
Workflow 1:
Workflow 2:
Action:
Expected Result:
Case 2:
Workflow Setup:
Workflow 1:
Workflow 2:
Action:
Expected Result:
Workflow 1:
Workflow 2:
Case 3:
Workflow Setup:
Workflow 1:
Workflow 2:
Action:
Expected Result:
Case 4:
Workflow Setup:
Workflow 1:
Workflow 2:
Action:
Expected Result:
Workflow 1:
Workflow 2:
Case 5:
Workflow Setup:
Workflow 1:
Workflow 2:
Action:
Expected Result:
Workflow 1:
Workflow 2:
Case 6:
Workflow Setup:
Workflow 1:
Workflow 2:
Action:
Expected Result:
Workflow 1:
Verify that no errors appear in the JS console
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)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
Android: Native
Screen.Recording.2024-12-16.at.14.56.33.mp4
Android: mWeb Chrome
720.mp4
iOS: Native
Screen.Recording.2024-12-16.at.15.20.03.mp4
iOS: mWeb Safari
Screen.Recording.2024-12-16.at.15.27.11.mp4
MacOS: Chrome / Safari
Screen.Recording.2024-12-16.at.14.30.20.mp4
MacOS: Desktop
Screen.Recording.2024-12-16.at.14.44.49.mp4