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

Abierto
#881 1 comentario 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
28/100
Tipo de issue
Error
Claridad
Necesita aclaración
Estado de actividad
Estancado
Stack tecnológico
javascript, nodejs
Área
cli

Línea de trabajo

Comienza con la reproducción de app.config.yaml y ejecuta aio app clean && aio app deploy usando [email protected]. Traza la ruta de despliegue de la acción webYesAuthYesSequence y compárala con las tres combinaciones que funcionan. Se considera completado cuando una secuencia que contiene una acción web: 'yes' con require-adobe-auth: true se despliega sin el error HTTP 400 indicado.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

bug

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

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 [email protected]
  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:
❯ 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
Lenguaje dominante
JavaScript
Estrellas
28
Forks
41
Merge medio
19 min
PR fusionados (30 d)
3

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de adobe/aio-cli-plugin-app

Todos los issues de adobe/aio-cli-plugin-app

Issues similares

Más issues de JavaScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.