diff --git a/docs/.capability-evidence.json b/docs/.capability-evidence.json index 195ba2f..e14f7f8 100644 --- a/docs/.capability-evidence.json +++ b/docs/.capability-evidence.json @@ -225,7 +225,7 @@ "evidence": [ { "path": "backend/internal/api/v2/handlers/vcs_app_installation.go", - "sha256": "8bde97dddbbe7a971bf2986fd6236556916f02462960296a5c234be9f60844ef" + "sha256": "78c020e8e3e2467724551d291f46621d2678ef08b5b8b42895355bb261c24b0c" }, { "path": "backend/internal/api/v2/handlers/vcs_push_ansible_sync_test.go", @@ -521,7 +521,7 @@ "evidence": [ { "path": "backend/internal/api/v2/handlers/vcs_app_installation.go", - "sha256": "8bde97dddbbe7a971bf2986fd6236556916f02462960296a5c234be9f60844ef" + "sha256": "78c020e8e3e2467724551d291f46621d2678ef08b5b8b42895355bb261c24b0c" }, { "path": "backend/internal/api/v2/handlers/vcs_connections.go", diff --git a/scripts/changelog/data/changes.json b/scripts/changelog/data/changes.json index d282259..6ca3375 100644 --- a/scripts/changelog/data/changes.json +++ b/scripts/changelog/data/changes.json @@ -3873,6 +3873,31 @@ ], "availability": [] }, + { + "id": "inventory-source-edit-cancels-file-syncs", + "title": "Changing an inventory's repository cancels its unfinished file syncs", + "area": "Ansible", + "kind": "Changed", + "reviewed": true, + "audience": "Anyone who edits the VCS source of an inventory or relies on push-triggered inventory syncs, and Go callers of the core module.", + "before": "A file sync that was waiting or running when an inventory's VCS connection, repository, branch or path changed could continue with the new source, and a push that matched the former source could still start a sync.", + "after": "Changing an inventory's VCS connection, repository, branch or path cancels its waiting and running file syncs, and the sync history names the change. A push starts a sync only while the inventory still has the source it matched.", + "action": "Update the API to pick up the change. Request a sync again after changing an inventory's source while a sync was waiting or running.", + "details": [ + "Core module: WorkItemService gains RequestInventorySyncOf, FileSyncSource, SourceOf and the error ErrSyncSourceChanged, RecordFileSyncFailure takes an optional source, and AnsibleInventoryRepository.UpdateWithBinding cancels the file syncs of an inventory whose source it changes." + ], + "guides": [ + { + "title": "Ansible", + "path": "/docs/user-guides/ansible" + } + ], + "sourceCommits": [], + "requiredComponents": [ + "api" + ], + "availability": [] + }, { "id": "clone-token-is-confirmed", "title": "A file sync's GitHub App token is confirmed to be for the inventory's repository",