not authorised
for every new user (object from WebUser
) — create a simple scenario:ConfirmRequest
with the following fields:user_id
— link to WebUser
;code
— type of string;is_success
type of boolean;result_title
type of string;result_text
type of string.CodeRequest
with the following fields:user_id
— link to WebUser
;is_success
type of boolean;result_title
type of string;result_text
type of string.not confirmed
— there will be two forms:ConfirmRequest
;CodeRequest
;confirmed
.CodeRequest
calls the scenario for generating and sending to a user a code in sync mode. The code is saved on WebUser
object.ConfirmRequest
compares the code with saved one on the WebUser
object. If yes, the role not confirmed
is removed and the roe confirmed
is added to the field role
on the WebUser
object.WatchRequest
:user_id
— link to WebUser
;feature_id
— link to features
;type
— type of string, we store there watch or unwatchFeatures
the field users_watching_ids
—type of arrayLink to WebUser
users_watching_ids arrayContainsAny {{id}}
—we pick only the features that have user's ID in users_watching_ids
WatchRequest
(may be either sync or regular)Changed
to development_status
and request_status
fields of feature
object, which sends objects form users_watching_ids
to the scenario "Notify users". The latter has a parameter (context variable) feature_id