feat(BA-6626): app_config_fragment bulk repository layer#12426
Draft
jopemachine wants to merge 1 commit into
Draft
feat(BA-6626): app_config_fragment bulk repository layer#12426jopemachine wants to merge 1 commit into
jopemachine wants to merge 1 commit into
Conversation
cf41d87 to
ffa35db
Compare
jopemachine
added a commit
that referenced
this pull request
Jun 26, 2026
Bulk create/update/purge for app_config_fragment at the service layer, on top of the repository primitives in #12426 (BA-6626): - Bulk actions carrying BulkConditional{Creator,Updater,Purger} payloads, service methods, and BulkActionProcessor wiring (per-entity RBAC extension point; no validator yet). - Partial-success results (succeeded + failed[index, message]). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This was referenced Jun 26, 2026
jopemachine
commented
Jun 26, 2026
ffa35db to
bcc97bb
Compare
jopemachine
added a commit
that referenced
this pull request
Jun 26, 2026
Bulk create/update/purge for app_config_fragment at the service layer, on top of the repository primitives in #12426 (BA-6626): - Bulk actions carrying BulkConditional{Creator,Updater,Purger} payloads, service methods, and BulkActionProcessor wiring (per-entity RBAC extension point; no validator yet). - Partial-success results (succeeded + failed[index, message]). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
jopemachine
commented
Jun 26, 2026
bcc97bb to
846bc64
Compare
jopemachine
added a commit
that referenced
this pull request
Jun 26, 2026
Bulk create/update/purge for app_config_fragment at the service layer, on top of the repository primitives in #12426 (BA-6626): - Bulk actions carrying BulkConditional{Creator,Updater,Purger} payloads, service methods, and BulkActionProcessor wiring (per-entity RBAC extension point; no validator yet). - Partial-success results (succeeded + failed[index, message]). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
87bcc0c to
c83c084
Compare
846bc64 to
ef67230
Compare
jopemachine
added a commit
that referenced
this pull request
Jun 26, 2026
Bulk create/update/purge for app_config_fragment at the service layer, on top of the repository primitives in #12426 (BA-6626): - Bulk actions carrying BulkConditional{Creator,Updater,Purger} payloads, service methods, and BulkActionProcessor wiring (per-entity RBAC extension point; no validator yet). - Partial-success results (succeeded + failed[index, message]). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
c83c084 to
7cda3f9
Compare
ef67230 to
f2316f2
Compare
jopemachine
added a commit
that referenced
this pull request
Jun 26, 2026
Bulk create/update/purge for app_config_fragment at the service layer, on top of the repository primitives in #12426 (BA-6626): - Bulk actions carrying BulkConditional{Creator,Updater,Purger} payloads, service methods, and BulkActionProcessor wiring (per-entity RBAC extension point; no validator yet). - Partial-success results (succeeded + failed[index, message]). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
7cda3f9 to
614eaf0
Compare
f2316f2 to
3462f91
Compare
jopemachine
added a commit
that referenced
this pull request
Jun 26, 2026
Bulk create/update/purge for app_config_fragment at the service layer, on top of the repository primitives in #12426 (BA-6626): - Bulk actions carrying BulkConditional{Creator,Updater,Purger} payloads, service methods, and BulkActionProcessor wiring (per-entity RBAC extension point; no validator yet). - Partial-success results (succeeded + failed[index, message]). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
614eaf0 to
6d69904
Compare
3462f91 to
14f10a1
Compare
jopemachine
added a commit
that referenced
this pull request
Jun 26, 2026
Bulk create/update/purge for app_config_fragment at the service layer, on top of the repository primitives in #12426 (BA-6626): - Bulk actions carrying BulkConditional{Creator,Updater,Purger} payloads, service methods, and BulkActionProcessor wiring (per-entity RBAC extension point; no validator yet). - Partial-success results (succeeded + failed[index, message]). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
6d69904 to
47fa255
Compare
14f10a1 to
542e10e
Compare
jopemachine
added a commit
that referenced
this pull request
Jun 26, 2026
Bulk create/update/purge for app_config_fragment at the service layer, on top of the repository primitives in #12426 (BA-6626): - Bulk actions carrying BulkConditional{Creator,Updater,Purger} payloads, service methods, and BulkActionProcessor wiring (per-entity RBAC extension point; no validator yet). - Partial-success results (succeeded + failed[index, message]). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
47fa255 to
0b72350
Compare
542e10e to
1166463
Compare
jopemachine
added a commit
that referenced
this pull request
Jun 26, 2026
Bulk create/update/purge for app_config_fragment at the service layer, on top of the repository primitives in #12426 (BA-6626): - Bulk actions carrying BulkConditional{Creator,Updater,Purger} payloads, service methods, and BulkActionProcessor wiring (per-entity RBAC extension point; no validator yet). - Partial-success results (succeeded + failed[index, message]). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1166463 to
86638a4
Compare
jopemachine
added a commit
that referenced
this pull request
Jul 3, 2026
Bulk create/update/purge for app_config_fragment at the service layer, on top of the repository primitives in #12426 (BA-6626): - Bulk actions carrying BulkConditional{Creator,Updater,Purger} payloads, service methods, and BulkActionProcessor wiring (per-entity RBAC extension point; no validator yet). - Partial-success results (succeeded + failed[index, message]). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Build the app_config_fragment bulk repository on the conditional-bulk primitives (#12429): - AppConfigFragmentCreatorSpec as a plain CreatorSpec with scope-based rank (public < domain < user). - bulk_create / bulk_update / bulk_purge in db_source + repository, returning the AppConfigFragmentBulkWriteResult data type (succeeded + failed[index, message]) — partial success via the WriteOps.bulk_conditional_*_partial primitives. - Single create rewritten to gate + plain create (no next-value); GatedWrite removed. - Repository unit tests. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
65f7b52 to
4602841
Compare
c1deecb to
e3d03c1
Compare
jopemachine
added a commit
that referenced
this pull request
Jul 3, 2026
Bulk create/update/purge for app_config_fragment at the service layer, on top of the repository primitives in #12426 (BA-6626): - Bulk actions carrying BulkConditional{Creator,Updater,Purger} payloads, service methods, and BulkActionProcessor wiring (per-entity RBAC extension point; no validator yet). - Partial-success results (succeeded + failed[index, message]). Co-Authored-By: Claude Opus 4.8 (1M context) <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.
Summary
Repository-layer
app_config_fragmentbulk operations, split out of #12401 (BA-6618) to keep that PR reviewable. No API/service surface here — the service layer stacks on top. Built on the generic partial bulk ops already inWriteOps(bulk_create_partial/bulk_update_partial/bulk_purge_partial) — no new base primitives.bulk_create(items: Sequence[GatedAppConfigFragmentCreate])— each item pairs a fragmentCreatorSpecwith its allow-list write-gate. The gates are checked in the same transaction as the writes; rejected items are reported per item (batch index + reason) and the allowed items insert each in its own savepoint for partial success.bulk_update(updaters)/bulk_purge(purgers)— no write-gate: a fragment row exists only while its allow-list entry does (FK with cascade, feat(BA-6628): cascade fragment deletion from the allow list #12518), so an existing fragment is always writable at its own scope. Missing targets are reconstructed as per-item not-found failures (the generic partial ops silently skip a missing PK).AppConfigFragmentBulkWriteResultdata type (succeeded+failed[index, message]).📚 Stacked PRs
Part of the AppConfigFragment / AppConfig stack under BEP-1052 (epic BA-5781). Merge in order:
feat(BA-6552): app_config_fragments DB model and Alembic migrationfeat(BA-6553): repository layerrefactor(BA-6619): consolidate AppConfigScopeType into common.datarefactor(BA-6620): ExistsQuerier + AppConfigAllowList.existsfeat(BA-6554): AppConfigFragment service layerfeat(BA-6628): move fragment rank to the allow list with scope defaults(replaces feat(BA-6628): conditional-bulk repository primitives #12429)feat(BA-6628): expose allow-list rank on the v2 API surfacefeat(BA-6628): cascade fragment deletion from the allow listfeat(BA-6626): app_config_fragment bulk repository layer← you are herefeat(BA-6618): AppConfigFragment bulk CRUD service layerfeat(BA-6555): app_config service layer (merge engine)feat(BA-6556): AppConfig REST v2 API📚 Documentation preview 📚: https://sorna--12426.org.readthedocs.build/en/12426/
📚 Documentation preview 📚: https://sorna-ko--12426.org.readthedocs.build/ko/12426/
📚 Documentation preview 📚: https://sorna--12426.org.readthedocs.build/en/12426/
📚 Documentation preview 📚: https://sorna-ko--12426.org.readthedocs.build/ko/12426/