Skip to content
This repository has been archived by the owner on Nov 27, 2023. It is now read-only.

Wrong display of route with a component log as middle step (first example of Camel Yaml route in official Camel documentation) #1562

Closed
apupier opened this issue Mar 27, 2023 · 4 comments
Labels
bug Something isn't working

Comments

@apupier
Copy link
Contributor

apupier commented Mar 27, 2023

Describe the Bug

The example of Yaml route in official Camel documentation is not rendered correctly. https://camel.netlify.app/camel-k/latest/languages/yaml.html#_defining_a_route

Steps to Reproduce the Bug or Issue

  1. Open source code editor
  2. Paste


- from: 
    uri: "direct:start"
    steps: 
      - filter:
          expression:
            simple: "${in.header.continue} == true"
          steps: 
            - to:
                uri: "log:filtered"
      - to:
          uri: "log:original"


  1. Click Sync code button
    --> a log is displayed on a second line

Screenshots or Videos

image

Platform

  • OS: Fedora
  • Browser:VS Code
  • Version: 0.7.5
@apupier apupier added the bug Something isn't working label Mar 27, 2023
@apupier
Copy link
Contributor Author

apupier commented Mar 27, 2023

reproducing also when adding the step from the UI after a filter which has a branch:

wrongDisplayAfterFiler

@Delawen
Copy link
Contributor

Delawen commented Mar 28, 2023

Another corner case of the same bug

image

- from:
    uri: activemq:queue:null
    steps:
    - choice:
        when:
        - steps:
          - to:
              uri: activemq:queue:null
          - stop: {}
        - steps: []
        - steps: []
    - to:
        uri: avro:null:null:null/null

@Delawen
Copy link
Contributor

Delawen commented Mar 28, 2023

image

@kahboom kahboom self-assigned this Mar 28, 2023
@apupier apupier changed the title Wrong display of route with a filter (first example of Camel Yaml route in official Camel documentation) Wrong display of route with a component log as middle step (first example of Camel Yaml route in official Camel documentation) Mar 29, 2023
@kahboom kahboom removed their assignment Mar 29, 2023
@kahboom kahboom changed the title Wrong display of route with a component log as middle step (first example of Camel Yaml route in official Camel documentation) UI is not handling END branch steps Mar 29, 2023
@kahboom kahboom changed the title UI is not handling END branch steps Wrong display of route with a component log as middle step (first example of Camel Yaml route in official Camel documentation) Mar 29, 2023
@kahboom
Copy link
Contributor

kahboom commented Mar 29, 2023

Closing as this will be resolved with kaoto-archive/kaoto-backend#586, and opening a separate issue for handling END steps.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants