getFeatureConfig

Updated:

Gets feature specific configuration from the platform.

getFeatureConfig is used to source platform level configuration by key, as provided by the platform.

As an example, Q2 UUX, at the time of this documentation, responds to getFeatureConfig with configuration keys
sourced from the Q2_Config object found in its global namespace.

Note: In order for a tecton sdk extension to receive a particular key from the platform from getFeatureConfig, , that key must be explicitly declared in the extension's configuration file on the python side. See the our documentation on configuring platform system variables for more detail.

Details

Type

tecton.sources.getFeatureConfig(featureConfigurations?: Set<string>): IDict<any>;

Example

tecton.sources.getFeatureConfig().then(config => {
  console.log(config.foo);
  // Do something with result
});

Arguments

PropertyTypeDefaultRequiredDescription
requestedConfigurationsstringN/AYes

Set of configurations to be retrieved from the running platform. All config values configured for the extension and for which the platform explicitly provides, will be returned.

Release Notes

Details

Initial Release