Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Warn about loops in Form expression #4230

Open
barmac opened this issue Apr 8, 2024 · 0 comments
Open

Warn about loops in Form expression #4230

barmac opened this issue Apr 8, 2024 · 0 comments
Labels
backlog Queued in backlog enhancement New feature or request Forms spring cleaning Could be cleaned up one day

Comments

@barmac
Copy link
Contributor

barmac commented Apr 8, 2024

Problem you would like to solve

With the new Expression field, it is possible to create a loop which causes the form output to flicker.

Proposed solution

Have a loop detection mechanism, and warn about the loop in the problems panel.

Alternatives considered

Leave it as is.

Additional context

Sample form:

{
  "components": [
    {
      "computeOn": "change",
      "label": "Expression",
      "type": "expression",
      "layout": {
        "row": "Row_14mocuo",
        "columns": null
      },
      "id": "Field_1v04vn8",
      "key": "foo",
      "expression": "=expression_r0l1s"
    },
    {
      "computeOn": "change",
      "label": "Expression",
      "type": "expression",
      "layout": {
        "row": "Row_1aqvlp7",
        "columns": null
      },
      "id": "Field_0b80s9m",
      "key": "expression_r0l1s",
      "expression": "=foo ** (0.0001)"
    }
  ],
  "type": "default",
  "id": "Form_1eamzum",
  "executionPlatform": "Camunda Cloud",
  "executionPlatformVersion": "8.5.0",
  "exporter": {
    "name": "Camunda Modeler",
    "version": "5.22.0-rc.2"
  },
  "schemaVersion": 16
}
@barmac barmac added enhancement New feature or request backlog Queued in backlog spring cleaning Could be cleaned up one day Forms labels Apr 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backlog Queued in backlog enhancement New feature or request Forms spring cleaning Could be cleaned up one day
Projects
None yet
Development

No branches or pull requests

1 participant