GitHub
02/25/2025, 10:52 PMstate_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/meltanoGitHub
02/25/2025, 10:52 PM