Skip to content

Variables: Introduce direct access to source resolvers in JS function resolvers #9112

Closed

Description

@medikoo

Use case description

Currently JS function resolvers, have mean to access other properties as resolved, but have no means to specifically resolve data from sources.

It's actually required, as due to fact that variables resolution is done at multiple stages, at very early stages some sources may not be available at fulfilled, and there's no clear method to wait for them.

It's problem raised here: #8364 (comment)

Proposed solution

Introduce resolveSource(name, { params, address }) function to be passed into JS function resolver, which will allow to directly resolve data from sources.

Having that resolveSource('self', { address: 'foo.bar' }), could be considered as an alias for resolveConfigurationProperty(["foo", "bar"]).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions