<#6784 feat: support Environment 'extras'> Issue c...
# meltano-repo-activity
g
#6784 feat: support Environment 'extras' Issue created by kgpayne Following this comment on env var expansion, it strikes me that manual expansion is needed in this case because
state_id_suffix
is implemented as a new attribute of the
Environment
, and so bypasses the `get`/`get_with_metadata` method on the
SettingsService
(and descendants), which handles env var expansion for 'normal' settings. I wouldn't block on it for now, but in future we might choose to take the same approach as with plugins; treating extra
Environment
attributes as extras, accessible via the regular
get_with_metadata
and
set_with_metadata
calls (which handle expansion). Apart from simplifying expansion, this would also make it much easier to add new "Environment setting extras" like this in future, accessible via
project_setting_service.get_with_metadata("_extra.state_id_suffix")
🙂 I think this would be as simple as updating the
MeltanoEnvStoreManager
to return any
Environment
attrs other than
['name', 'config' 'env']
as
_extras
in its
flat_config
property, but I haven't looked too closely. Configuration and overrides would happen in the usual settings hierarchy (env vars, yml etc.), and the cli can be kept in addition (if required) by passing the given value through as
config_override
to the
ProjectSettingsService
constructor. Originally posted by @kgpayne in #6758 (comment) meltano/meltano