Skip to content

feat(BA-5844): AppConfigPolicy REST v2 surface#11312

Draft
jopemachine wants to merge 3 commits intoBA-5815from
BA-5844
Draft

feat(BA-5844): AppConfigPolicy REST v2 surface#11312
jopemachine wants to merge 3 commits intoBA-5815from
BA-5844

Conversation

@jopemachine
Copy link
Copy Markdown
Member

@jopemachine jopemachine commented Apr 26, 2026

📚 Stacked PRs

This PR is part of a 10-PR stack delivering BEP-1052. Merge in order:

  1. ⬇️ chore(BA-5822): drop legacy AppConfig layer (preparation for BEP-1052) #11265chore(BA-5822): drop legacy AppConfig layer
  2. ⬇️ feat(BA-5814): AppConfigPolicy foundation (data / repository / service / adapter, bulk-aware) #11266feat(BA-5814): AppConfigPolicy foundation
  3. ⬇️ feat(BA-5815): AppConfigPolicy GraphQL #11269feat(BA-5815): AppConfigPolicy GraphQL
  4. 👉 feat(BA-5844): AppConfigPolicy REST v2 surface #11312feat(BA-5844): AppConfigPolicy REST v2 ← you are here
  5. ⬇️ feat(BA-5827): AppConfigFragment foundation (DB + repository + errors) #11282feat(BA-5827): AppConfigFragment foundation
  6. ⬇️ feat(BA-5836): AppConfigFragment service vertical (service / DTO / adapter) #11296feat(BA-5836): AppConfigFragment service vertical
  7. ⬇️ feat(BA-5829): AppConfigFragment + AppConfig GraphQL #11285feat(BA-5829): AppConfigFragment + AppConfig GraphQL
  8. ⬇️ feat(BA-5830): AppConfigFragment + AppConfig REST v2 #11286feat(BA-5830): AppConfigFragment + AppConfig REST v2
  9. ⬇️ feat(BA-5832): AppConfig v2 SDK + CLI (BEP-1052) #11295feat(BA-5832): AppConfig v2 SDK + CLI
  10. ⬇️ feat(BA-5837): ValkeyCache for AppConfigFragment merged-view reads #11298feat(BA-5837): ValkeyCache for AppConfigFragment merged-view reads

CI on intermediate PRs may show test churn since each one only lands a slice of the new layer. The full picture is guaranteed to build at the tip (#11298).

Summary

Stack

Test plan

  • Restart manager, verify routes mount (/v2/app-config-policies/*).
  • ./bai admin app-config-policy ... once SDK lands (handled by BA-5832 / follow-up).
  • CI green: lint, typecheck, unit, component, integration, api-updated.

@github-actions github-actions Bot added size:L 100~500 LoC comp:manager Related to Manager component labels Apr 26, 2026
jopemachine added a commit that referenced this pull request Apr 26, 2026
jopemachine added a commit that referenced this pull request Apr 27, 2026
jopemachine added a commit that referenced this pull request Apr 27, 2026
jopemachine and others added 3 commits April 27, 2026 11:35
Add the REST v2 endpoints for AppConfigPolicy on top of the GraphQL-
only BA-5815. Mirrors the BA-5829 / BA-5830 split for the AppConfig-
Fragment stack.

- `api/rest/v2/app_config_policy/handler.py` — `V2AppConfigPolicyHandler`
  exposing `get`, `search`, and admin bulk-create / bulk-update /
  bulk-purge endpoints, all delegating to `AppConfigPolicyAdapter`.
- `api/rest/v2/app_config_policy/registry.py` — route registrar for
  the `app-config-policies` sub-tree (reads via `auth_required`,
  bulk writes via `superadmin_required`).
- `api/rest/v2/path_params.py` — `AppConfigPolicyConfigNamePathParam`
  for path-bound `config_name` lookups.
- `api/rest/v2/tree.py` — wire up the new handler / registrar.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Track BA-5814 / BA-5815 DTO refactor:
  • GET /v2/app-config-policies/{config_name}
    → GET /v2/app-config-policies/{policy_id}
  • Replace AppConfigPolicyConfigNamePathParam with
    AppConfigPolicyIdPathParam (policy_id: UUID).
  • Update bulk-purge handler docstring (purge keyed on row id).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp:manager Related to Manager component size:L 100~500 LoC

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant