backstage / backstage

Backstage is an open framework for building developer portals
https://backstage.io/
Apache License 2.0
26.9k stars 5.58k forks source link

🐛 Bug Report: Event based GitHub Discovery is not working in latest version of backstage #24734

Open jiyo86 opened 1 month ago

jiyo86 commented 1 month ago

📜 Description

In backstage backend new approach & legacy this.events.publish() is not updating or creating entity in Backstage catalog. Currently github provider is only updating the info in database and that create the rate limit error. As per the documentation we can enable GITHUB Webhooks and backstage events based on events-backend-module-github we can achieve the catalog entity creation & updation but in V 26.0 it is not working as expected

👍 Expected behavior

New entity should be created in catalog listing using github webhooks using events-backend-module-github, by this endpoint /api/events/http/github

👎 Actual Behavior with Screenshots

NA

👟 Reproduction steps

configure /api/events/http/github in github wekhooks for push event and configure events-backend-module-github, and other dependency using https://backstage.io/docs/integrations/github/discovery/ create new push to main branch in githuib to trigger the webhooks.

📃 Provide the context for the Bug.

No response

🖥️ Your Environment

No response

👀 Have you spent some time to check if this bug has been raised before?

🏢 Have you read the Code of Conduct?

Are you willing to submit PR?

None

vinzscam commented 1 month ago

have you also specified

events:
  http:
    topics:
      - github

in your app-config? 🤔 BTW there are a bunch of related fixes coming out tomorrow with 1.27, could you also try with 1.27 once is out?

jiyo86 commented 1 month ago

I have added below code in my app-config. I will upgrade the version tomorrow and check again events: http: topics: