Skip to content

Support 'isHidden' / 'isEnabled' for defined template.json properties #3341

@vlada-shubina

Description

@vlada-shubina

Now isHidden is only available in host.json, and it leads to perf impact as we need to read host.json files for all templates to see if they are hidden or not. Suggestion is to move this property to template.json and allow to configure for different hosts similar to: #3340

It should be possible to hidden the template or specific its features: symbols (parameters), choices, post actions, primary outputs.

Consider supporting the following notations: <host ID><delimiter>isEnabled
Example:

vs_isEnabled: "true" - template is enabled in VS

my-parameter:
{
     vs_isEnabled: "false", - parameter is disabled in VS
     .... 
}

The logic, including fallback should be evaluated in Edge:

  • if template is disabled for specific host, it should not be returned in template list
  • if certain feature is disabled for specific host, it should not be returned via API
  • if host specific value is not available - use default value (without the prefix)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Priority:2Work that is important, but not critical for the releasearea: authoringEnhancements to the process of authoring, maintaining, and testing templatesfeatureThe issue defines new feature.triagedThe issue was evaluated by the triage team, placed on correct area, next action defined.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions