Skip to content

Commit

Permalink
review fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewjstone committed Dec 19, 2023
1 parent 0633fb1 commit 06a3851
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
9 changes: 8 additions & 1 deletion nexus/src/external_api/http_entrypoints.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4659,9 +4659,16 @@ async fn rack_view(
}]
async fn sled_list_uninitialized(
rqctx: RequestContext<Arc<ServerContext>>,
_query_params: Query<PaginatedById>,
query: Query<PaginationParams<EmptyScanParams, String>>,
) -> Result<HttpResponseOk<ResultsPage<UninitializedSled>>, HttpError> {
let apictx = rqctx.context();
// We don't actually support real pagination
let pag_params = query.into_inner();
if let dropshot::WhichPage::Next(last_seen) = &pag_params.page {
return Err(
Error::invalid_value(last_seen.clone(), "bad page token").into()
);
}
let handler = async {
let nexus = &apictx.nexus;
let opctx = crate::context::op_context_for_external_api(&rqctx).await?;
Expand Down
7 changes: 0 additions & 7 deletions openapi/nexus.json
Original file line number Diff line number Diff line change
Expand Up @@ -4042,13 +4042,6 @@
"nullable": true,
"type": "string"
}
},
{
"in": "query",
"name": "sort_by",
"schema": {
"$ref": "#/components/schemas/IdSortMode"
}
}
],
"responses": {
Expand Down

0 comments on commit 06a3851

Please sign in to comment.