Repository navigation
feat(kitsu): surface sync status and error feedback in UI and events - #179
Draft
Ahmed-Hindy wants to merge 5 commits into
Draft
Ahmed-Hindy wants to merge 5 commits into
Ahmed-Hindy wants to merge 5 commits into
Conversation
This branch has not been deployed
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.
Brief description
Adds live sync status and error feedback across the Kitsu server, processor service, and AYON Settings frontend so users can see whether manual, startup, and inbound Kitsu syncs queued, succeeded, or failed.
Preview
Dependencies
project_full_sync()raises on HTTP 4xx/5xx responses fromPOST /pushinstead of reporting rejected startup/manual syncs asSynced.Changes
Server
GET /sync-status(server/kitsu/sync_status.py, manager-only) aggregating per-projectkitsu.sync/kitsu.sync_requeststate (including expiry of abandoned/stale jobs, retryability,created_attimestamps, and startup-vs-manual precedence), latest failedkitsu.inbound_sync, heartbeat-checked processor health, and recent processorlog.errorevents.POST /sync/{project_name}andPOST /pairing(server/kitsu/init_pairing.py,server/__init__.py) to reject unpaired projects, reset stale error descriptions/payloads on restart, and return queued event metadata (SyncRequestResponseModel).GET /pairingunchanged for backwards compatibility.Processor
get_pairing_list()so credential/login/pairing startup errors all dispatch redactedlog.errordiagnostics.kitsu.sync) to include redacted error summaries indescriptionand full redacted error/traceback details inpayload.kitsu.syncevents (finished/failed).kitsu.inbound_syncevents in AYON/eventswhen a handler raises or/push//removereturns an HTTP error (preserving resolvedproject_idon legacy Zou<1.0.32task:updateevents and propagating casting fetch failures).Frontend
PairingList.jsx,PairingButton.jsx) using native@ynput/ayon-react-components(Section,Toolbar,Spacer,Panel,ScrollPanel,Button,Icon,Dialog) and AYON CSS color tokens.2swhile active/retrying,15sidle), disabled/busy button states onSync nowandPair project, toolbar processor-offline / error notices (including processor diagnostics when/pairingfails), separate! Live errorindicator (compared against full-sync start time so overlapping full syncs do not hide live errors), and a clickable! Failederror detailsDialogpopup.Testing
tests/tests/test_sync_feedback.pycovering secret redaction,kitsu.sync/kitsu.inbound_sync/log.errorevent recording, startup credential/pairing ordering, casting fetch failures, abandoned-job expiry, legacy Zoutask:updatecontext, manager authorization, and serversync_request/get_sync_statushelpers.ruff checkpasses andyarn buildsucceeds infrontend/.