Create Method to Control the logic to Use/Skip Approval Flow for User Promotion for Non CustomRoleId Flow
Expected outcome:
- A method that can be used to check if Approval Flow should be triggered or not.
def should_use_approval_flow?
# (sample logic, the actual logic will depend on below decision)
# .. if SM and ultimate tier and usercap reached and ff is enabled return true else false
end
Context
We need to use the Approval flow for SelfManaged instances on Ultimate Tier when a user is getting promoted from non-billable -> billable role.
There are other scenarios which also need to be met, for which decision is pending:
Current UserCaps is an ApplicationSettings, which is triggered after the Setting is enabled and after the UserCaps is reached, we(kos and suraj) think that the Approval flow should also start only once UserCaps is reached (We need product confirmation around this behavior).
- If ^ is the case, then a FF could be created, and a method should be added which can be used through out code to figure out if Approval flow should be shown or not.
Pending Decision
- Should this be a different Application Setting other than UserCap? No
- Should this be along with UserCap behind a FF? Yes
- Should this be along with UserCap as a different setting for user to toggle? Yes
Edited by Suraj Tripathi