-
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
[Advanced Approval Workflows] Update pendingAction/pendingFields when making an action offline #48086
[Advanced Approval Workflows] Update pendingAction/pendingFields when making an action offline #48086
Conversation
ef78ac2
to
3701866
Compare
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 🚀
@DylanDylann 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] |
@blazejkustra What is the final expectation? Currently, If we have any actions offline, all workflows will be greyed out. I think it is different from the PR description
|
The approach we decided to go with is to grey out workflow when any member from this workflow is affected (member or approver is added/updated/removed). ☝️ That's the final expectation
I think it's not true 🤔 Try to add more users to the workspace and edit workflows/add new ones |
@DylanDylann I think it works as described in the description: Screen.Recording.2024-08-30.at.13.39.21.mov |
@blazejkustra When add an workflow offline, the default workflow also be greyed out Screen.Recording.2024-08-31.at.00.19.09.mov |
Because the default workflow contains every member that includes members in the new workflow. It happens to me because Line 134 in cd5ed20
so the pendingAction still be applied to the default workflow |
@DylanDylann To be clear, what is the expected behaviour in your opinion? When adding a new workflow, the default workflow should also be greyed out because the default workflow members are changed? |
We did not find an internal engineer to review this PR, trying to assign a random engineer to #47701 as well as to this PR... Please reach out for help on Slack if no one gets assigned! |
@blazejkustra Sorry for back and forth. The current code works well with the new expectation. |
I want to confirm this new expectation because I have never seen the same situation in our App. @youssef-lr Could you help verify this expectation?
Note that: Two workflows only be related together if an approver belongs to both workflows. If member O is a member of workflow A and also an approver of workflow B --> workflow A and workflow B have no relation. With the current approach, If there is any update to member O in workflow A, workflow B also be grey out although workflow B isn't related to the change in workflow A cc @tgolen Tag you because you follow this feature at the beginning, It is perfect to have your opinion on this |
@DylanDylann Still missing reviewer checklist, right? |
@blazejkustra I want to hear a thought from the internal engineer about #48086 (comment) before completing the checklist |
@DylanDylann Sure! I haven't linked this one before here. Here's the missing context: |
Reviewer Checklist
Screenshots/VideosAndroid: NativeAndroid: mWeb ChromeScreen.Recording.2024-09-04.at.21.46.14.moviOS: NativeScreen.Recording.2024-09-04.at.21.53.10.moviOS: mWeb SafariScreen.Recording.2024-09-04.at.21.47.22.movMacOS: Chrome / SafariScreen.Recording.2024-09-04.at.21.45.10.movMacOS: DesktopScreen.Recording.2024-09-04.at.21.46.43.mov |
✋ 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/youssef-lr in version: 9.0.30-0 🚀
|
@blazejkustra How should we perform?
|
On staging you need |
Details
The approach we decided to go with is to grey out workflow when any member from this workflow is affected (member or approver is added/updated/removed).
This means that with only one update there is a chance there are more than just one workflow greyed out, due to the fact that any users can be in multiple workflows at once.
Fixed Issues
$ #47701
PROPOSAL: N/A
Tests
N/A
Offline tests
canUseWorkflowsAdvancedApproval
function to returntrue
(or usecanUseWorkflowsAdvancedApproval
beta)QA Steps
Same as Offline tests
PR Author Checklist
### Fixed Issues
section aboveTests
sectionOffline steps
sectionQA steps
sectiontoggleReport
and notonIconClick
)myBool && <MyComponent />
.src/languages/*
files and using the translation methodWaiting for Copy
label for a copy review on the original GH to get the correct copy.STYLE.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 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
MacOS: Chrome / Safari
Screen.Recording.2024-08-27.at.15.34.27.mov