TEST [AAP-72400] feat: add REST API endpoints for management jobs#2
Draft
B-Whitt wants to merge 4 commits into
Draft
Conversation
Add ManagementJob, ManagementJobSchedule, and ManagementJobExecution models with ManagementJobType and ExecutionStatus enums. Includes migration 0071 and 16 integration tests covering model creation, relationships, constraints, and cascade deletes. Jira: AAP-72399 Assisted-By: Claude Opus
Assisted-By: Claude Opus
Assisted-By: Claude Opus
Add ManagementJobViewSet with list, retrieve, partial update, launch, and execution history endpoints. Includes read/update serializers, filters (name, job_type, is_enabled), and 18 integration tests. Jira: AAP-72400 Assisted-By: Claude Opus
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.
This is a test of the AAP-SDLC harness Skill [2026-04-22]. Do not merge.
What is being changed?
Adds REST API endpoints for the management job framework:
GET /api/eda/v1/management-jobs/— list all jobs with filtering (name, job_type, is_enabled)GET /api/eda/v1/management-jobs/{id}/— retrieve job detailsPATCH /api/eda/v1/management-jobs/{id}/— update is_enabled and parametersPOST /api/eda/v1/management-jobs/{id}/launch/— trigger on-demand executionGET /api/eda/v1/management-jobs/{id}/executions/— list execution history with paginationGET /api/eda/v1/management-jobs/{id}/executions/{exec_id}/— execution detail with outputNo Create or Delete — management job types are system-defined.
Why is this change needed?
Phase 2 of the management job framework (Epic AAP-72387). Builds on the data models from AAP-72399 to expose them via REST API.
Jira: AAP-72400
How does this change address the issue?
All 8 acceptance criteria pass:
Does this change introduce any new dependencies, blockers or breaking changes?
No new dependencies. Depends on AAP-72399 (management job models). Follows existing EDA ViewSet patterns.
How it can be tested?
18 tests pass. Story 1 model tests also pass (16/16, no regressions).
Intent Adherence: 95/100
Deductions: (-5) AC #3 mentions "schedule" as updatable, but schedule is a separate model. PATCH updates is_enabled and parameters on ManagementJob. Flagged and approved during planning.
Changeset
src/aap_eda/api/views/management_job.pysrc/aap_eda/api/serializers/management_job.pysrc/aap_eda/api/filters/management_job.pysrc/aap_eda/api/views/__init__.pysrc/aap_eda/api/serializers/__init__.pysrc/aap_eda/api/filters/__init__.pysrc/aap_eda/api/urls.pytests/integration/api/test_management_job.pyAssisted-By: Claude Opus