Repository navigation
feat(root): add sourceResync and sourceResyncStatus - #33
Merged
Merged
Conversation
Start a resync of the MQTT brokers, optionally clearing everything PlaceOS publishes first, and read where it got to (PlaceOS/rest-api#454). For the backoffice database page. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
🎉 This PR is included in version 6.11.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
stakach
added a commit
to PlaceOS/backoffice
that referenced
this pull request
Oct 15, 2026
Two buttons on Manage Instance > Database: re-sync publishes every module's state and every model's metadata to the MQTT brokers again, and clear & re-sync removes everything PlaceOS published first, after a confirmation. A running re-sync, whoever started it, disables both and shows its progress until it finishes or fails. Needs @placeos/ts-client with sourceResync (PlaceOS/ts-client#33). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Client functions for the MQTT resync helpers in PlaceOS/rest-api#454, which are system admin only:
sourceResync(clear = false):POST /source/resync?clear=. Publishes every module's state and every model's metadata to the brokers again, after removing everything PlaceOS publishes from them whenclearis set. It resolves to the run's status. A run already in progress rejects with the raw 409Response, like other non-OK statuses.sourceResyncStatus():GET /source/resync. Reports where the last run got to.PlaceSourceResyncStatus.These are for the backoffice Manage Instance → Database page; that PR follows. This ships as a minor release (
feat).Testing: new
test/root/functions.spec.ts(2 tests) passes, andnpm run buildpasses.🤖 Generated with Claude Code