Describe the feature
I would like Maester to handle the new tenant-config as overrides like tests/Custom/maester-config.json. The tenant-config should either:
a) Replace the old custom-config completely. Breaking change, but easily fixed by renaming/copying tests/Custom/maester-config.json to tests/Custom/maester-config.{tenantId}.json
b) Merge settings using the following priority:
- Tenant-specific overrides: tests/Custom/maester-config.{tenantId}.json
- Global overrides: tests/Custom/maester-config.json
- Baseline: tests/maester-config.json
Impact and importance
Simplify the config story after the introduction of multi-tenant report (#1558).
Before, the default config was tests/maester-config.json, with any user-specific overrides (only) placed in the custom config tests/Custom/maester-config.json.
Now, the full config can be either the tenant-specific tests/maester-config.{tenantId}.json or the global tests/maester-config.json, resulting in:
- Duplicate code. Likely 99% of every tenant-config
- Manual work required for all tenant-configs to merge updates from global config after running
Update-MaesterTests
tests/Custom/maester-config.json being in a weird place as it overrides all tenants. A common use-case was defining emergency accounts, but they are tenant-specific and must be set in the full tenant-config.
- Conflicting recommendations. Modifying a full config is not recommended. See warning here and related discussion Change Export Config button to only export non-default values? #1461
Alternatives you've considered
No response
Additional context
No response
Describe the feature
I would like Maester to handle the new tenant-config as overrides like
tests/Custom/maester-config.json. The tenant-config should either:a) Replace the old custom-config completely. Breaking change, but easily fixed by renaming/copying
tests/Custom/maester-config.jsontotests/Custom/maester-config.{tenantId}.jsonb) Merge settings using the following priority:
Impact and importance
Simplify the config story after the introduction of multi-tenant report (#1558).
Before, the default config was
tests/maester-config.json, with any user-specific overrides (only) placed in the custom configtests/Custom/maester-config.json.Now, the full config can be either the tenant-specific
tests/maester-config.{tenantId}.jsonor the globaltests/maester-config.json, resulting in:Update-MaesterTeststests/Custom/maester-config.jsonbeing in a weird place as it overrides all tenants. A common use-case was defining emergency accounts, but they are tenant-specific and must be set in the full tenant-config.Alternatives you've considered
No response
Additional context
No response