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: Resources API - Send delta message when resources are added / deleted via the plugin interface. #1797

Merged
merged 2 commits into from
Sep 21, 2024

Conversation

panaaj
Copy link
Member

@panaaj panaaj commented Sep 20, 2024

The setResource() and deleteResource() interface functions exposed by Resources API to plugins does not trigger the sending of a delta to notify clients that a resource change had occurred.

This PR updates these functions to send a delta when the operation is successful.
This now aligns with the behaviour when using the API HTTP endpoints.

@panaaj panaaj added the fix label Sep 20, 2024
src/api/resources/index.ts Outdated Show resolved Hide resolved
@tkurki tkurki merged commit 7323f02 into master Sep 21, 2024
4 checks passed
@tkurki tkurki deleted the resource-api-update-2409 branch September 21, 2024 05:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants