question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Visible rule and underscore values

See original GitHub issue

I’m facing some problems with expressions in visibility rule that contains underscore in the values, like STANDARD_HA.

Environment

azure-pipelines-task-lib version: 2.9.6

Issue Description

Values with underscore not pass in the extension validation.

Expected behaviour

Expression should be validated without errors.

Actual behaviour

Error: Extension validation failed.

Steps to reproduce

  1. Create a radio field:
    {
      "name": "tier",
      "type": "radio",
      "defaultValue": "BASIC",
      "options": {
        "BASIC": "standalone instance",
        "STANDARD_HA": "highly available primary/replica instances"
      }
    }
  1. And other field with this visibleRule: "visibleRule": "tier = STANDARD_HA"
  2. Package and publish the extension

Logs

Task definition visible rule \'tier = STANDARD_HA\' is invalid. It should be of format "A <validconditionhere> B" for Task with ID ...

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:15 (8 by maintainers)

github_iconTop GitHub Comments

2reactions
mindlessromancommented, Apr 1, 2021

not stale

2reactions
jessehouwingcommented, Nov 16, 2020

I also reported this to the product team and the rule on the marketplace is too strict. But I haven’t seen a plan to resolve yet.

Read more comments on GitHub >

github_iconTop Results From Across the Web

What are the rules about using an underscore in a C++ ...
Yes, underscores may be used anywhere in an identifier. I believe the rules are: any of a-z, A-Z ...
Read more >
Naming rules (code analysis) - .NET - Microsoft Learn
This rule assumes that an enumeration member that has a name that contains "reserved" is not currently used but is a placeholder to...
Read more >
Underscore using within functions - Appian Community
Underscore is used for partial evaluation. it gives you ability to evaluate the function without having that value defined yet. Mike Schmitt ...
Read more >
Choosing rule and data instance names - Pega
Many rules and data objects have a visible key that contains multiple fields — key ... Guideline 2: Use only letters, digits, underscores,...
Read more >
Programming in C++, Rules and Recommendations
The use of two underscores (` __ ') in identifiers is reserved for the compiler's internal use according to the ANSI-C standard. Underscores...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found