feat(BA-6892): add kernel scheduling-history adapter and REST v2 endpoints#12870
Merged
Merged
Conversation
This was referenced Jul 15, 2026
Merged
jopemachine
force-pushed
the
feat/BA-6891-kernel-history-dto-service
branch
from
July 15, 2026 09:40
db1b59b to
6d7ebbc
Compare
jopemachine
force-pushed
the
feat/BA-6892-kernel-history-adapter-rest
branch
from
July 15, 2026 09:40
b9b9a37 to
8c13791
Compare
jopemachine
force-pushed
the
feat/BA-6891-kernel-history-dto-service
branch
from
July 15, 2026 09:56
6d7ebbc to
e8ce7ad
Compare
jopemachine
force-pushed
the
feat/BA-6892-kernel-history-adapter-rest
branch
from
July 15, 2026 09:56
8c13791 to
28b1894
Compare
jopemachine
force-pushed
the
feat/BA-6891-kernel-history-dto-service
branch
from
July 15, 2026 10:17
e8ce7ad to
b8a7aaa
Compare
jopemachine
force-pushed
the
feat/BA-6892-kernel-history-adapter-rest
branch
from
July 15, 2026 10:17
28b1894 to
3db2ec3
Compare
jopemachine
force-pushed
the
feat/BA-6891-kernel-history-dto-service
branch
from
July 20, 2026 04:10
b8a7aaa to
01a65ec
Compare
jopemachine
force-pushed
the
feat/BA-6892-kernel-history-adapter-rest
branch
from
July 20, 2026 04:10
3db2ec3 to
610dd75
Compare
jopemachine
force-pushed
the
feat/BA-6891-kernel-history-dto-service
branch
from
July 20, 2026 04:22
01a65ec to
e23c1a9
Compare
jopemachine
force-pushed
the
feat/BA-6892-kernel-history-adapter-rest
branch
from
July 20, 2026 04:28
610dd75 to
24c5225
Compare
jopemachine
force-pushed
the
feat/BA-6891-kernel-history-dto-service
branch
from
July 20, 2026 04:41
e23c1a9 to
320012c
Compare
jopemachine
force-pushed
the
feat/BA-6892-kernel-history-adapter-rest
branch
from
July 20, 2026 04:41
24c5225 to
9207228
Compare
jopemachine
force-pushed
the
feat/BA-6891-kernel-history-dto-service
branch
from
July 20, 2026 04:47
320012c to
564c862
Compare
jopemachine
force-pushed
the
feat/BA-6892-kernel-history-adapter-rest
branch
from
July 20, 2026 04:47
9207228 to
6163a98
Compare
jopemachine
force-pushed
the
feat/BA-6891-kernel-history-dto-service
branch
from
July 20, 2026 04:55
564c862 to
c3289f0
Compare
jopemachine
force-pushed
the
feat/BA-6892-kernel-history-adapter-rest
branch
from
July 20, 2026 04:55
6163a98 to
164383b
Compare
jopemachine
force-pushed
the
feat/BA-6891-kernel-history-dto-service
branch
from
July 20, 2026 05:05
c3289f0 to
8d1124c
Compare
jopemachine
force-pushed
the
feat/BA-6892-kernel-history-adapter-rest
branch
from
July 20, 2026 05:05
164383b to
942cb3a
Compare
jopemachine
force-pushed
the
feat/BA-6892-kernel-history-adapter-rest
branch
from
July 20, 2026 06:59
f05a631 to
d889ad0
Compare
jopemachine
force-pushed
the
feat/BA-6891-kernel-history-dto-service
branch
from
July 20, 2026 08:04
a4f9d28 to
e2857a0
Compare
jopemachine
force-pushed
the
feat/BA-6892-kernel-history-adapter-rest
branch
from
July 20, 2026 08:04
15b568a to
93a89e1
Compare
jopemachine
force-pushed
the
feat/BA-6891-kernel-history-dto-service
branch
from
July 20, 2026 08:13
e2857a0 to
1b11978
Compare
jopemachine
force-pushed
the
feat/BA-6892-kernel-history-adapter-rest
branch
from
July 20, 2026 08:13
93a89e1 to
03bd499
Compare
jopemachine
force-pushed
the
feat/BA-6891-kernel-history-dto-service
branch
from
July 20, 2026 08:26
1b11978 to
ae6f600
Compare
jopemachine
force-pushed
the
feat/BA-6892-kernel-history-adapter-rest
branch
from
July 20, 2026 08:26
03bd499 to
d956d23
Compare
jopemachine
force-pushed
the
feat/BA-6891-kernel-history-dto-service
branch
from
July 20, 2026 08:41
ae6f600 to
0b3351f
Compare
jopemachine
force-pushed
the
feat/BA-6892-kernel-history-adapter-rest
branch
2 times, most recently
from
July 20, 2026 08:50
d1cf2de to
642d2ed
Compare
jopemachine
force-pushed
the
feat/BA-6892-kernel-history-adapter-rest
branch
5 times, most recently
from
July 21, 2026 02:33
0cfb5cf to
aa33a76
Compare
jopemachine
marked this pull request as ready for review
July 21, 2026 02:34
Contributor
There was a problem hiding this comment.
Pull request overview
Adds REST v2 access to kernel scheduling history through the existing adapter/service architecture.
Changes:
- Adds admin and authenticated kernel-scoped search routes.
- Converts kernel filters, ordering, pagination, and response DTOs.
- Updates OpenAPI documentation and changelog.
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
registry.py |
Registers kernel history routes and authorization middleware. |
handler.py |
Adds REST request handlers. |
path_params.py |
Adds the kernel UUID path model. |
adapter.py |
Implements query conversion and processor integration. |
openapi.json |
Documents schemas and endpoints. |
12870.feature.md |
Records the feature change. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
fregataa
reviewed
Jul 21, 2026
jopemachine
force-pushed
the
feat/BA-6892-kernel-history-adapter-rest
branch
2 times, most recently
from
July 21, 2026 05:22
971c64e to
fa25066
Compare
6 tasks
HyeockJinKim
left a comment
Collaborator
There was a problem hiding this comment.
I didn't just want the kernel ID as the scope; I wanted to receive values that could be assigned to multiple scopes in the body, but it seems like something was set up incorrectly.
3 tasks
…oints Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
HyeockJinKim
approved these changes
Jul 21, 2026
4 tasks
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.
📚 Stacked PRs
BA-6887fix: kernel history conditions reference the real status columns ✅BA-6889models: kernel query conditions and orders ✅BA-6890repository: kernel search scope and scoped search ✅BA-6891DTO + service: kernel v2 DTOs and search actions ✅BA-6892adapter + REST v2: kernel endpoints ← you are hereBA-6883GraphQL v2: kernel history rootsBA-6893SDK + CLI: kernel commandsMerge in order, bottom-up. Each PR is based on the one above it, so its diff shows only its own layer.
What
The kernel slice of the v2 scheduling-history adapter, plus the two REST v2 routes that expose it.
POST /v2/scheduling-history/kernels/searchsuperadmin_requiredPOST /v2/scheduling-history/kernels/{kernel_id}/searchauth_requiredShape matches the session / deployment / route slices already in this module: the scope is a
path parameter, and the adapter method takes it as a separate argument
(
kernel_scoped_search(kernel_id, input)).The scoped route runs through the existing
ScopeActionProcessor, so access is resolvedagainst the RBAC scope rather than a role gate. That is why it is
auth_requiredand notsuperadmin_required— unlike the sibling scoped routes, which are all registeredsuperadmin_required.DTO naming
One input and one payload, shared by both routes:
SearchKernelHistoriesInputSearchKernelHistoriesPayloadNo
Admin-prefixed variants. The scope arrives in the path, so both routes take an identicalbody, and the response shape does not depend on the caller either.
KernelHistoryScopeDTOsits in
types.pynext toSessionHistoryScopeDTO/DeploymentHistoryScopeDTO/RouteHistoryScopeDTOfor the GraphQL layer to use.Not yet verifiable end-to-end
kernel_scheduling_historyhas no writer —KernelSchedulingHistoryCreatorSpecis defined butcalled from nowhere, so the table is empty. BA-6852 adds the writer; live verification against a
running manager has to wait for it.
🤖 Generated with Claude Code
📚 Documentation preview 📚: https://sorna--12870.org.readthedocs.build/en/12870/
📚 Documentation preview 📚: https://sorna-ko--12870.org.readthedocs.build/ko/12870/
📚 Documentation preview 📚: https://sorna--12870.org.readthedocs.build/en/12870/
📚 Documentation preview 📚: https://sorna-ko--12870.org.readthedocs.build/ko/12870/