adobe / adobe/aio-cli-plugin-app

cannot create a sequence with an action that has `web:yes` property and `require-adobe-auth: true` annotation

Open
#881 1 comment 0 reactions 0 assignees View on GitHub
bug
Dominant language
JavaScript
Stars
28
Forks
41
Avg merge
1d 2h
Merged PRs (30d)
3

Description

## Description

Using the app.config.yaml manifest, you cannot create a sequence with an action that has the `web:yes` property and `require-adobe-auth: true` annotation set, this results in an error. The other 3 combinations are fine.

## Config

`app.config.yaml`
```yaml
application:
actions: actions
web: web-src
runtimeManifest:
packages:
test-app:
license: Apache-2.0
actions:
webYesAuthNoAction:
function: actions/generic/index.js
web: 'yes'
runtime: nodejs:22
inputs:
LOG_LEVEL: debug
annotations:
require-adobe-auth: false
final: true
webYesAuthYesAction:
function: actions/generic/index.js
web: 'yes'
runtime: nodejs:22
inputs:
LOG_LEVEL: debug
annotations:
require-adobe-auth: true
final: true
webNoAuthNoAction:
function: actions/generic/index.js
web: 'no'
runtime: nodejs:22
inputs:
LOG_LEVEL: debug
annotations:
require-adobe-auth: false
final: true
webNoAuthYesAction:
function: actions/generic/index.js
web: 'no'
runtime: nodejs:22
inputs:
LOG_LEVEL: debug
annotations:
require-adobe-auth: true
final: true
sequences:
# SUCCESS
webXAuthNoSequence:
actions: webNoAuthNoAction, webYesAuthNoAction
# SUCCESS
webNoAuthYesSequence:
actions: webNoAuthYesAction
# FAILURE
webYesAuthYesSequence:
actions: webYesAuthYesAction
```

## Repro Steps

1. Create an App Builder project with `aio-cli@11.x`
2. Create the `generic` action at the path specified in the `app.config.yaml` above
3. Put the yaml above as your `app.config.yaml`
4. Run `aio app clean && aio app deploy`
5. Note the error:

```sh
❯ aio app clean && aio app deploy
✔ Cleaned build artifacts for 'application'
Build artifacts cleaned up successfully!
✔ Built 4 action(s) for 'application'
✔ Building web assets for 'application'
✖ Deploying actions for 'application'
› Error: PUT https://deploy-service.app-builder.adp.adobe.io/runtime/api/v1/namespaces/52381-858dimcaribou/actions/test-app-prod
› /webYesAuthYesSequence Returned HTTP 400 (Bad Request) --> "Sequence component does not exist."
```

You might have to do this to reset your deploy after:
1. `aio app undeploy`
2. `aio rt package delete test-app --recursive`

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.