Skip to content
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

Settings for ModuleDefinitions #1829 #1832

Merged
merged 1 commit into from
Dec 9, 2021
Merged

Settings for ModuleDefinitions #1829 #1832

merged 1 commit into from
Dec 9, 2021

Conversation

leigh-pointer
Copy link
Contributor

Add Update settings for the ModuleDefinition

Add Update settings for the ModuleDefinition
@sbwalker
Copy link
Member

@leigh-pointer after reviewing this I just realized that there may an issue. ModuleDefinitions are stored in the Master database (ie. MasterDBContext) whereas Settings are stored in each Tenant database (ie. TenantDBContext). This PR may appear to work on a default install however as soon as you create another site using its own database you will realize that the settings are not shared across tenants - which essentially breaks your original goal. This is the reason why the SettingService API does not currently have Host Settings - it only has Tenant Settings. In order to implement this feature would require more work.

@leigh-pointer
Copy link
Contributor Author

leigh-pointer commented Nov 24, 2021 via email

@sbwalker
Copy link
Member

ModuleDefinitions are stored only in the Master - they are global to the installation

@leigh-pointer
Copy link
Contributor Author

leigh-pointer commented Nov 24, 2021 via email

@leigh-pointer
Copy link
Contributor Author

I have a simple solution for now. I will use the Get/UpdateSiteSettings then I can store the settings when the table is created the firsts time and then the settings are in the correct Tenant.

@sbwalker
Copy link
Member

sbwalker commented Dec 9, 2021

I think this enhancement is valuable and I believe I have a solution... so I will merge your PR and make the necessary adjustments

@sbwalker sbwalker merged commit d1ade87 into oqtane:dev Dec 9, 2021
@leigh-pointer leigh-pointer deleted the ModuleDefinitionSettings branch December 11, 2021 10:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants