Skip to content

Commit 5d201b8

Browse files
Bump the minor-patch group across 1 directory with 6 updates (#1050)
* Bump the minor-patch group across 1 directory with 6 updates Bumps the minor-patch group with 6 updates in the / directory: | Package | From | To | | --- | --- | --- | | [fastapi](https://github.com/fastapi/fastapi) | `0.112.2` | `0.114.2` | | [pydantic](https://github.com/pydantic/pydantic) | `2.8.2` | `2.9.1` | | [sentry-sdk](https://github.com/getsentry/sentry-python) | `2.13.0` | `2.14.0` | | [pydantic-settings](https://github.com/pydantic/pydantic-settings) | `2.4.0` | `2.5.2` | | [pytest](https://github.com/pytest-dev/pytest) | `8.3.2` | `8.3.3` | | [ruff](https://github.com/astral-sh/ruff) | `0.6.3` | `0.6.5` | Updates `fastapi` from 0.112.2 to 0.114.2 - [Release notes](https://github.com/fastapi/fastapi/releases) - [Commits](fastapi/fastapi@0.112.2...0.114.2) Updates `pydantic` from 2.8.2 to 2.9.1 - [Release notes](https://github.com/pydantic/pydantic/releases) - [Changelog](https://github.com/pydantic/pydantic/blob/main/HISTORY.md) - [Commits](pydantic/pydantic@v2.8.2...v2.9.1) Updates `sentry-sdk` from 2.13.0 to 2.14.0 - [Release notes](https://github.com/getsentry/sentry-python/releases) - [Changelog](https://github.com/getsentry/sentry-python/blob/master/CHANGELOG.md) - [Commits](getsentry/sentry-python@2.13.0...2.14.0) Updates `pydantic-settings` from 2.4.0 to 2.5.2 - [Release notes](https://github.com/pydantic/pydantic-settings/releases) - [Commits](pydantic/pydantic-settings@v2.4.0...v2.5.2) Updates `pytest` from 8.3.2 to 8.3.3 - [Release notes](https://github.com/pytest-dev/pytest/releases) - [Changelog](https://github.com/pytest-dev/pytest/blob/main/CHANGELOG.rst) - [Commits](pytest-dev/pytest@8.3.2...8.3.3) Updates `ruff` from 0.6.3 to 0.6.5 - [Release notes](https://github.com/astral-sh/ruff/releases) - [Changelog](https://github.com/astral-sh/ruff/blob/main/CHANGELOG.md) - [Commits](astral-sh/ruff@0.6.3...0.6.5) --- updated-dependencies: - dependency-name: fastapi dependency-type: direct:production update-type: version-update:semver-minor dependency-group: minor-patch - dependency-name: pydantic dependency-type: direct:production update-type: version-update:semver-minor dependency-group: minor-patch - dependency-name: sentry-sdk dependency-type: direct:production update-type: version-update:semver-minor dependency-group: minor-patch - dependency-name: pydantic-settings dependency-type: direct:production update-type: version-update:semver-minor dependency-group: minor-patch - dependency-name: pytest dependency-type: direct:development update-type: version-update:semver-patch dependency-group: minor-patch - dependency-name: ruff dependency-type: direct:development update-type: version-update:semver-patch dependency-group: minor-patch ... Signed-off-by: dependabot[bot] <[email protected]> * Ignore type * Add type annotation for mypy --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Mathieu Leplatre <[email protected]>
1 parent cba22a7 commit 5d201b8

File tree

3 files changed

+145
-147
lines changed

3 files changed

+145
-147
lines changed

jbi/router.py

Lines changed: 11 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
import secrets
66
from pathlib import Path
7-
from typing import Annotated, Optional
7+
from typing import Annotated, Any, Optional
88

99
from fastapi import APIRouter, Body, Depends, HTTPException, Request, status
1010
from fastapi.encoders import jsonable_encoder
@@ -83,21 +83,18 @@ async def inspect_dl_queue(queue: Annotated[DeadLetterQueue, Depends(get_dl_queu
8383
"""API for viewing queue content"""
8484
bugs = await queue.retrieve()
8585
results = []
86+
fields: dict[str, Any] = {
87+
"identifier": True,
88+
"rid": True,
89+
"error": True,
90+
"payload": {
91+
"bug": {"id", "whiteboard", "product", "component"},
92+
"event": {"action", "time"},
93+
},
94+
}
8695
for items in bugs.values():
8796
async for item in items:
88-
results.append(
89-
item.model_dump(
90-
include={
91-
"identifier": True,
92-
"rid": True,
93-
"error": True,
94-
"payload": {
95-
"bug": {"id", "whiteboard", "product", "component"},
96-
"event": {"action", "time"},
97-
},
98-
}
99-
)
100-
)
97+
results.append(item.model_dump(include=fields))
10198
return results
10299

103100

0 commit comments

Comments
 (0)