pkgcore.bugzilla.wire module¶
Literal mirrors of the bugs.gentoo.org REST JSON payloads.
Nothing here has behaviour; it exists so the rest of pkgcore.bugzilla can be checked against the actual wire format. Note that RawBugUpdate has no cc_add key and RawNewBug has no ids key, so the shapes that Bugzilla silently ignores can’t be constructed.
- type pkgcore.bugzilla.wire.JSONValue = None | bool | int | float | str | list[JSONValue] | dict[str, JSONValue]¶
- class pkgcore.bugzilla.wire.RawBug[source]¶
Bases:
TypedDictA bug as returned by Bugzilla.
Every key is optional because Bugzilla omits whatever isn’t named in include_fields; presence is guaranteed by bug.INCLUDE_FIELDS instead.
- id: BugId¶
- class pkgcore.bugzilla.wire.RawBugUpdate[source]¶
Bases:
TypedDict- blocks: RawListChange¶
- cc: RawListChange¶
- comment: RawNewComment¶
- depends_on: RawListChange¶
- dupe_of: BugId¶
- flags: list[RawFlagChange]¶
- groups: RawListChange¶
- keywords: RawListChange¶
- see_also: RawListChange¶
- class pkgcore.bugzilla.wire.RawChanges[source]¶
Bases:
TypedDict- changes: dict[str, RawFieldChange]¶
- id: BugId¶
- class pkgcore.bugzilla.wire.RawComment[source]¶
Bases:
TypedDict- attachment_id: NotRequired[int | None]¶
- bug_id: BugId¶
- id: CommentId¶
- raw_text: NotRequired[str]¶
- class pkgcore.bugzilla.wire.RawCommentsResponse[source]¶
Bases:
TypedDictNote that the keys of bugs are stringified bug ids
- bugs: dict[str, RawComments]¶
- comments: dict[str, RawComment]¶
- class pkgcore.bugzilla.wire.RawFieldChange[source]¶
Bases:
TypedDictA single field’s delta; both values are comma-and-space joined strings
- class pkgcore.bugzilla.wire.RawFlag[source]¶
Bases:
TypedDict- id: FlagId¶
- requestee: NotRequired[str]¶
- type_id: FlagTypeId¶
- class pkgcore.bugzilla.wire.RawFlagChange[source]¶
Bases:
TypedDict- id: FlagId¶
- type_id: FlagTypeId¶
- class pkgcore.bugzilla.wire.RawGetResponse[source]¶
Bases:
TypedDictGET /rest/bug/{id}, which unlike a search also carries faults