flowpipe icon indicating copy to clipboard operation
flowpipe copied to clipboard

File watching does not detect change inside loop block of input step?

Open e-gineer opened this issue 10 months ago • 1 comments

Version: v0.4.3-rc.2

I have this step:

  step "input" "approve" {
    notifier = notifier[param.approvers[0]]

    type = "button"

    subject = param.subject

    prompt = param.prompt

    option "approve" {
      label = "Approve"
      style = "ok"
    }

    option "deny" {
      label = "Deny"
      style = "alert"
    }

    loop {
      until = result.value == "deny" || loop.index >= length(param.approvers) - 1
      notifier = notifier[param.approvers[loop.index]]
    }

    output "approved" {
      value = self.value == "approve"
    }

  }

When I change the loop until attribute (e.g. add or remove the - 1), the file watching does not detect the change.

File watching works and reloads for changes to the option style attribute (as expected).

e-gineer avatar Mar 29 '24 18:03 e-gineer

Fixed in pipe-fittings: https://github.com/turbot/pipe-fittings/commit/27d7c5981ed93174ea8d6c76ca008b1c16276e7c

vhadianto avatar Apr 12 '24 06:04 vhadianto

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 30 days.

github-actions[bot] avatar Jun 11 '24 08:06 github-actions[bot]

This issue was closed because it has been stalled for 90 days with no activity.

github-actions[bot] avatar Jul 12 '24 08:07 github-actions[bot]