Can't understand how approval workflow works

Feature(s) impacted

Approval Workflow for Smart Actions

Observed behavior

I can set the smart action permissions in order to have a role that MUST require approval:

but when the user triggers the smart action, it actually get immediately executed with no approval workflow.

Expected behavior

The Smart Action was supposed to trigger the approval workflow, as stated in this doc: Manage roles and permission levels - User Guide

Am I doing something wrong? Any help would be greatly appreciated.

Failure Logs

None
The action just gets executed as no approval workflow was set up :man_shrugging:

Context

  • Project name: Sailsquare
  • Team name: Operations
  • Environment name: STG-DATAMIX
  • Other info (from .forestadmin-schema.json file:
  "meta": {
    "liana": "forest-express-sequelize",
    "liana_version": "9.2.6",
    "stack": {
      "database_type": "postgres",
      "engine": "nodejs",
      "engine_version": "16.20.2",
      "orm_version": "6.28.0"
    }
  }

Hello @Matteo, and welcome back,

Would you be able to share some more details about the routes definition related to the smart action ?

Something that could cause the behaviour that you are seeing is failing to call the proper permission middlewares, as seen in the example provided in the documentation.

If the issue persist, could you please share a minimal reproducible code (after removing any confidential information ). You may also send it as private message if you prefer.

Regards,

@Nicolas.M

2 Likes

Hi @Nicolas.M
Thank you for you support.
With you hint, we realized that we didn’t call the forest middlewares correctly :sweat_smile:

So, now problem (on our side) solved :+1:

Thank you,
Matteo

3 Likes