-
Notifications
You must be signed in to change notification settings - Fork 3.2k
49954 approval workflow editing #54178
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
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 |
@getusha it's done. |
@getusha May I ask if I am still waiting for your feedback after more than 3 weeks? |
@huult checks are failing, could you have a look? I've completed the checklist a while ago. |
I will check it soon |
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 & tests well!
@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 🚀
|
@@ -157,7 +158,7 @@ function convertPolicyEmployeesToApprovalWorkflows({employees, defaultApprover, | |||
return 1; | |||
} | |||
|
|||
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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am pretty sure this is written wrong. @getusha Can you get this corrected?
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 can spin up a quick PR but curious, is there any regression?
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 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)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
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