-
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
Add a feature to allow the user to manage tenants #12360
Add a feature to allow the user to manage tenants #12360
Conversation
@MikeAlhayek If my memory serves well - I believe it was decided that we reuse the same Feature Management UI and provide tenant selection dropdown |
@ns8482e yes we decided to reuse the same UI as the code here does. Then we decided to leave the drop down menu into a separate PR. Once this PR is merged, I'll submit a second PR for that. |
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 approve because as of now we don't have anything else that allows doing this. We may revisit this feature later on by first all agreeing on a concept.
Okay, need to have the code under my eyes and try it, will do it as soon as possible. |
@jtkech have you had a chance to test this out? |
I'm going to look at it |
Just fetched your branch to start some tests.
|
Are you sure you forked the right branch? These issues were fixed a while ago. I'll check it out again tomorrow |
Yes, It seems that I didn't get for example the last Features.cshtml |
Okay found it, that's why I needed to install old sdks :( |
Okay better, I can now see the smaler Now the problem is that if we enable/disable It is also enabled/disable in the Default tenant. I will look at the code tomorrow |
@jtkech I'll check it again tomorrow. What you are stating should not be the case. if you manage features for tenant1, then you should be in the scope of tenant1. |
Okay I understand, when I changed the state of the feature of Tenant1, then to check the state of the same feature in the Default tenant I cliked on I think because it still has the tenant=Tenant1 as an ambient route value, which maybe would need to be cleared when clicking this admin menu item. |
|
In the AdminMenu.cs
|
@jtkech I just push the fix for the menu item. Here is a screen cast. |
Add a new feature that would allow the host to manage tenant's features
Fix #11870
This PR enhanced the
OrchardCore.Features
module by allowing to accept{tenant?}
is the route. This tenant value would only be evaluated if the request is running on the host. When a tenant value is present, we'll execute the code in the scope of the given tenant.Here is a screen shot from the Tenants list in the host the "Manage Features" button was added
listing features for site 1 example
This is how the features show up when it is running for a tenant and not the host "no changes to the outcome"
@jtkech do to multiple conflicts in PR #11869 I decided it was easier to fix it using this PR instead.