Skip to content

With SkipVariablePrompt variables are not resolved #103

@fw2568

Description

@fw2568

When using SkipVariablePrompt the variables of parent are not resolved.

if (!skipVariablesPrompt && GetApiVersion().IsCompatible(1, 1))
{
var serializedConfig = CatletConfigJsonSerializer.SerializeToElement(catletConfig);
var operation = Factory.CreateCatletsClient().PopulateConfigVariables(
new PopulateCatletConfigVariablesRequest(serializedConfig)
{
CorrelationId = Guid.NewGuid(),
});
var completedOperation = WaitForOperation(operation);
if (completedOperation.Result is CatletConfigOperationResult configResult)
{
var populatedConfig = CatletConfigJsonSerializer.Deserialize(configResult.Configuration);
catletConfig.Variables = populatedConfig.Variables;
}
}
if (catletConfig.Variables is not { Length: > 0 })
return true;

Expected

If API version is compatible variables should be resolved from parent, then it should be decided if variable prompt is necessary / disabled.

AB#757

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions