|
55 | 55 | from ..dependencies.rabbitmq import get_log_check_timeout, get_log_distributor |
56 | 56 | from ..dependencies.services import get_api_client |
57 | 57 | from ..dependencies.webserver_http import AuthSession, get_webserver_session |
| 58 | +from ._common import API_SERVER_DEV_FEATURES_ENABLED |
58 | 59 | from ._constants import ( |
59 | 60 | FMSG_CHANGELOG_NEW_IN_VERSION, |
60 | 61 | FMSG_CHANGELOG_REMOVED_IN_VERSION_FORMAT, |
|
115 | 116 | **DEFAULT_BACKEND_SERVICE_STATUS_CODES, |
116 | 117 | } |
117 | 118 |
|
| 119 | + |
118 | 120 | router = APIRouter() |
119 | 121 |
|
120 | 122 |
|
| 123 | +@router.get( |
| 124 | + "/-/releases/-/jobs", |
| 125 | + response_model=Page[Job], |
| 126 | + description="List of all jobs created for any released solver (paginated)", |
| 127 | + include_in_schema=API_SERVER_DEV_FEATURES_ENABLED, |
| 128 | +) |
| 129 | +async def list_all_solvers_jobs( |
| 130 | + user_id: Annotated[PositiveInt, Depends(get_current_user_id)], |
| 131 | + page_params: Annotated[PaginationParams, Depends()], |
| 132 | + solver_service: Annotated[SolverService, Depends(SolverService)], |
| 133 | + webserver_api: Annotated[AuthSession, Depends(get_webserver_session)], |
| 134 | + url_for: Annotated[Callable, Depends(get_reverse_url_mapper)], |
| 135 | + product_name: Annotated[str, Depends(get_product_name)], |
| 136 | +): |
| 137 | + raise NotImplementedError |
| 138 | + |
| 139 | + |
121 | 140 | @router.get( |
122 | 141 | "/{solver_key:path}/releases/{version}/jobs", |
123 | 142 | response_model=list[Job], |
|
0 commit comments