thefrontside / playhouse

Frontside's Backstage Portal
https://backstage.frontside.services/
25 stars 13 forks source link

fix(humanitec): deduplicate updates for the same orgId/appId #375

Closed johanneswuerbach closed 10 months ago

johanneswuerbach commented 10 months ago

Motivation

People often open multiple tabs of backstage and there is no point in requesting the same information multiple times.

Approach

Keep the latest update in-memory and ensure only one update loop is running that dispatches to all open subscriptions.

changeset-bot[bot] commented 10 months ago

🦋 Changeset detected

Latest commit: bfed947d402e199680d616fa9b09986ee953b133

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 3 packages | Name | Type | | --------------------------------------------- | ----- | | @frontside/backstage-plugin-humanitec-backend | Patch | | @frontside/backstage-plugin-humanitec-common | Patch | | @frontside/backstage-plugin-humanitec | Patch |

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR