Skip to content

Fixes #6: Read Data Source directories in one query - #51

Merged
jnovinger merged 1 commit into
mainfrom
6-reconciliation-during-synchronization-can-stage-a-mixed
Oct 21, 2026
Merged

jnovinger merged 1 commit into
mainfrom
6-reconciliation-during-synchronization-can-stage-a-mixed

Conversation

@pheus

@pheus pheus commented Oct 21, 2026

Copy link
Copy Markdown
Collaborator

Fixes: #6

Read each Data Source directory's paths and contents in one query, scoped to the Project's data path. This prevents reconciliation from combining an earlier path inventory with newer file contents.

Add regression coverage for changes during the read, query count, directory scoping and reconciliation after recurring synchronizations. Update the documentation to describe the remaining synchronization limitation.

NetBox can still expose partially applied synchronizations. The core change to publish file updates atomically is tracked in netbox-community/netbox#23464.

Reads a Data Source directory's paths and bytes in one query scoped by
the data path, replacing the separate path and content queries. Adds
tests for a write during the read, the single query and a recurring
Data Source, and documents NetBox's partial synchronizations.

Fixes #6
@pheus
pheus marked this pull request as ready for review October 21, 2026 18:46
@pheus
pheus requested a review from jnovinger October 21, 2026 18:47
@jnovinger
jnovinger merged commit dd5a4fa into main Oct 21, 2026
20 checks passed
@jnovinger
jnovinger deleted the 6-reconciliation-during-synchronization-can-stage-a-mixed branch October 21, 2026 19:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Reconciliation during synchronization can stage a mixed source revision

2 participants