Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(editor): Correctly display trigger nodes without actions and with related regular node in the "On App Events" category #4976

Merged
merged 1 commit into from
Dec 19, 2022

Conversation

OlegIvaniv
Copy link
Contributor

@OlegIvaniv OlegIvaniv commented Dec 19, 2022

For the "On App Events" category we merge trigger and regular nodes. We then filter-out regular nodes without actions. But if in the merging function, the regular node would appear first we'd use it as the merge baseline. So if it has a trigger counterpart without actions, it would get filtered out. To solve this, we simply sort the nodes before merging, to make sure trigger nodes are always on top.

The affected nodes were:

  1. AMQP Trigger
  2. Kafka Trigger
  3. RabbitMQ Trigger
  4. MQTT Trigger

Closes #4952

…lar node wouldn't show in the "On App Events" category
@OlegIvaniv OlegIvaniv added the ui Enhancement in /editor-ui or /design-system label Dec 19, 2022
@OlegIvaniv OlegIvaniv self-assigned this Dec 19, 2022
@n8n-assistant n8n-assistant bot added the n8n team Authored by the n8n team label Dec 19, 2022
@OlegIvaniv OlegIvaniv requested a review from netroy December 19, 2022 16:40
@netroy netroy merged commit 445463a into master Dec 19, 2022
@netroy netroy deleted the merged-trigger-nodes-without-actions-not-displaying branch December 19, 2022 16:42
@n8n-assistant n8n-assistant bot added the Upcoming Release Will be part of the upcoming release label Dec 19, 2022
@janober
Copy link
Member

janober commented Dec 21, 2022

Got released with n8n@0.209.0

@janober janober removed the Upcoming Release Will be part of the upcoming release label Dec 21, 2022
mutdmour added a commit that referenced this pull request Dec 22, 2022
…and with related regular node in the "On App Events" category (#4976)"

445463a
netroy pushed a commit that referenced this pull request Dec 22, 2022
Revert "fix(editor): Correctly display trigger nodes without actions and with related regular node in the "On App Events" category (#4976)"

445463a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
n8n team Authored by the n8n team ui Enhancement in /editor-ui or /design-system
Projects
None yet
Development

Successfully merging this pull request may close these issues.

RabbitMQ Trigger does not appear in On App Events listing
4 participants