Skip to content

Bump the minor-patch group across 1 directory with 6 updates #1050

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Sep 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 11 additions & 14 deletions jbi/router.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

import secrets
from pathlib import Path
from typing import Annotated, Optional
from typing import Annotated, Any, Optional

from fastapi import APIRouter, Body, Depends, HTTPException, Request, status
from fastapi.encoders import jsonable_encoder
Expand Down Expand Up @@ -83,21 +83,18 @@ async def inspect_dl_queue(queue: Annotated[DeadLetterQueue, Depends(get_dl_queu
"""API for viewing queue content"""
bugs = await queue.retrieve()
results = []
fields: dict[str, Any] = {
"identifier": True,
"rid": True,
"error": True,
"payload": {
"bug": {"id", "whiteboard", "product", "component"},
"event": {"action", "time"},
},
}
for items in bugs.values():
async for item in items:
results.append(
item.model_dump(
include={
"identifier": True,
"rid": True,
"error": True,
"payload": {
"bug": {"id", "whiteboard", "product", "component"},
"event": {"action", "time"},
},
}
)
)
results.append(item.model_dump(include=fields))
return results


Expand Down
Loading
Loading