-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Tenant Workflows: Disable and Enable Tasks #4765
Conversation
Thanks for taking into account my comments, yes somewhere it is related to #4164 and i saw it when i merged dev to update my PR. Then i was blocked by some questions about some points i'm not sure of, but now that's ok because through this PR we will be able to work on it separately. I will merge #4164 where i only fixed the building (a method that is now async), you will have some conflicts but you will be able to rebase this PR on dev by just ignoring my changes on the related files. I will do a 1st review soon and as said i will ask you some questions about some points i'm not sure of.
To be continued Update i merged #4164 so that you can rebase, sorry for the conflicts, just ignore my changes that was only to fix the building. |
@@ -100,10 +96,10 @@ public async override Task<ActivityExecutionResult> ExecuteAsync(WorkflowExecuti | |||
shellSettings["DatabaseProvider"] = databaseProviderTask.Result?.Trim(); | |||
shellSettings["Secret"] = Guid.NewGuid().ToString(); | |||
shellSettings["RecipeName"] = recipeNameTask.Result.Trim(); | |||
|
|||
ShellSettingsManager.SaveSettings(shellSettings); |
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.
You can remove this line, this is done by UpdateShellSettingsAsync()
internally.
Note: Just a 1st review before merging #4164 on dev and rebase your PR
@@ -120,7 +119,7 @@ public override async Task<ActivityExecutionResult> ExecuteAsync(WorkflowExecuti | |||
} | |||
|
|||
ShellSettingsManager.SaveSettings(shellSettings); |
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.
idem, you can remove this line
Then, if this task can be run separately, not just after a create tenant task, maybe after having done ShellHost.TryGetSettings()
, maybe good to do ShellSettingsManager.LoadSettings(settings.Name)
, i will let you know.
Here i asked me that, if for a given tenant name, no settings are found (or if no tenant name provided), why not just returning Failed
. Will see when i will ask other questions, only simple questions not so much ;)
Sorry i didn't have any time to work on it, i will do it tomorrow. I thought about some changes, e.g better to not use Let me know if i can commit some changes in your branch directly or in a separate PR targetting you PR. |
I updated your PR. First part just for infos
And so on, so maybe we could harmonize this through another PR, i don't want to block this one. So here i forgot the above
|
Is there any permission check? And could these tasks be in a custom feature, such that not any user could use them by default? |
As a reminder As i remember i updated this PR to make it consistent with what is done in the Tenants Admin / Api controllers but didn't have the time to try it. Maybe someone just need to solve the conflicts and try it, at least it would be better than what is currently in the dev branch because of the following.
|
Conflicts fixed. |
Cool |
Fixes #5711 I will aprove it If needed i'll try to take the time to try it this w-end |
Implement Disable and Enable Workflow activities.
React to @jtkech review about #2450