Repository navigation
Conversation
This was referenced Nov 12, 2026
The conversations API response must carry an id. Index the response so a malformed payload raises instead of returning None and building an activity URL containing "None".
A blank origin was coerced to None after field validation, so callers saw a different value than the one submitted. Keep the empty string and let downstream empty-value filtering decide what to store.
Missing health stats serialized as null and per-project newGroups could serialize as null when the database value was null. Return an empty stats object and a zero count so API clients always get the documented shape. The stats mapping is rebuilt with str keys so the response no longer aliases the release-health input mapping.
A None query reached the Jira clients and failed as an AttributeError or TypeError. Fail at the integration boundary instead; both search endpoints already reject empty queries before calling this method.
The release archive manifest and artifact index are user-uploaded JSON. Validate that the decoded value is an object before treating it as one, so malformed input fails at the boundary instead of raising AttributeError deeper in the archive reader.
The change proposed in #129433 is already present on master. Preserve current behavior and keep this draft open for the campaign integration inventory.
Thresholds are a JSONField, but unit and max_values were cast to their response types without validation. Reject non-object thresholds, unknown or non-integer maximum keys, and non-string units at write time so the serializer's casts are backed by a validated invariant.
Keep the parametrized case table typed so the backend mypy run accepts the new test module.
Manifest headers come from uploaded archives. Treat any non-string debug-id value as absent instead of passing it into symbolic, and drop the casts that assumed the header value was always a string.
Artifact headers come from uploaded manifests. Treat a non-string sourcemap or x-sourcemap value as absent instead of passing it into force_bytes, and cover the accessor directly.
The helper returns the raw string header; convert it to bytes in a separate variable so the variable keeps one type through the archive lookup paths.
EmptyListField returned a bare empty string, which violates the DRF ListField contract. Return an empty list instead; allowed-domain validation already rejects an empty value, so the endpoint behavior is unchanged.
The change proposed in #129615 is already present on master. Preserve current behavior and keep this draft open for the campaign integration inventory.
DashboardWidget.widget_type is nullable. Before #129614 a widget with no type fell through the config lookup and was skipped like any other unsupported type. #129614 added `assert widget.widget_type is not None` to satisfy the dict[int, ...] lookup, so a null-type widget now raises AssertionError and aborts the whole unfurl batch for that message. Narrow with an explicit skip instead, and in build_widget_timeseries_params raise the existing "Unsupported widget type" ValueError for a null type rather than an AssertionError.
The response-contract draft permits null stats and group counts, while the release-default drafts eliminate those values. Keep the combined response types non-null to match the integrated serializers.
Inventory all 37 related open PRs, explain which restacked fixes take precedence and which changes master already covers, and record the verification results and unresolved combined-run sourcemap documentation failure.
Removes tests that restate the one-line change or pass before and after it (empty-list field restatement and DRF list-field behavior, the happy-path conversation id, the none-and-empty health data payload), and trims the debug-id and sourcemap-header tests to the cases their guards add.
joshuarli
added a commit
that referenced
this pull request
Nov 26, 2026
Consolidates the previously separate drafts #129617, #129624 and #129621 into one review unit; the code is unchanged from those individually validated drafts. - OriginField preserves blank strings instead of coercing them to None - EmptyListField returns an empty list for blank input instead of a bare empty string - dashboard widgets validate threshold JSON shape: object thresholds, object max_values, integer or decimal maxima, and a string unit Integrated in #130956.
joshuarli
added a commit
that referenced
this pull request
Nov 26, 2026
Consolidates the previously separate drafts #127797 and #127812 into one review unit; the code is unchanged from those individually validated drafts. - social auth copies the request-token and auth extra-argument settings before mutating them with request data - oauth2 decodes form-encoded token response bodies before parsing form values Integrated in #130956.
joshuarli
added a commit
that referenced
this pull request
Nov 26, 2026
…type Consolidates the previously separate drafts #129616, #129619 and #129704 into one review unit; the code is unchanged from those individually validated drafts. - msteams requires the conversation id in the API response - jira and jira_server require a query before calling the client - slack unfurl skips dashboard widgets with no widget type instead of asserting Integrated in #130956.
joshuarli
added a commit
that referenced
this pull request
Nov 26, 2026
Consolidates the previously separate drafts #127793 and #127813 into one review unit; the code is unchanged from those individually validated drafts. - monitor index no longer silently mis-filters when the OK status maps onto ACTIVE, and filters status through environment-scoped EXISTS instead of a joined membership check - monitor deletion passes the scheduled deletion GUID as the audit log transaction id instead of the rule id Integrated in #130956.
joshuarli
added a commit
that referenced
this pull request
Nov 26, 2026
Consolidates the previously separate drafts #127798, #127848, #129618 and #129620 into one review unit; the code is unchanged from those individually validated drafts. - accept an empty owner in the release serializer - merge first and last seen timestamps across projects using the release id - default healthData.stats to {} and per-project newGroups to 0 so the response always matches the documented shape - require artifact index manifests and their files mapping to be JSON objects before use Integrated in #130956.
joshuarli
added a commit
that referenced
this pull request
Nov 26, 2026
Consolidates the previously separate drafts #129622 and #129623 into one review unit; the code is unchanged from those individually validated drafts. - treat a non-string sourcemap or x-sourcemap artifact header as absent instead of passing it into force_bytes - treat a non-string debug-id manifest header as absent before it reaches symbolic Integrated in #130956.
joshuarli
force-pushed
the
ref/typing-campaign-integration
branch
from
November 26, 2026 00:03
6212f66 to
6842f54
Compare
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Combines all open PRs from the typing campaigns into one draft, including the 16 earlier fixes. The source drafts were consolidated into six thematic review units plus seven singles (see below); this combined draft retains all of the code either way.
The corrected restacked versions take precedence: dashboard thresholds accept decimal maximums, and allowed-domains fields reject nonempty scalar strings. Five older fixes are already covered by
masterand contribute no code changes. The inventory and ongoing campaign scope are recorded in tighten-typing.md.Behavior change: includes the source PRs' fixes for malformed artifact metadata, blank field values, missing release defaults, nullable Slack widget types, integration responses, monitor filtering, release aggregation, and earlier utility bugs. Runtime behavior changes and remaining work are detailed in the linked drafts and campaign document.
API contracts: corrects event attachment shapes, nullable transaction timestamps, issue-view sorts, the required ownership
schema, and session query time unions in generated OpenAPI schemas. Release stats and group counts retain non-null contracts after applying the release-default fixes. The replay tag query now accepts the environment-name list its caller supplies.The source PRs are listed below. Bundle PRs combine formerly separate drafts; the nine original
#1294xxdrafts were closed as superseded by their restacked twins, which in turn were closed into the bundles. Five already-covered PRs (#127788, #127796, #127847, #129433, #129615) were closed contributing no code changes.The broader contract-repair campaign remains unfinished. This draft retains escape hatches from the source followups, including the artifact-index cast after outer-object validation; collecting the PRs does not establish the nested artifact schema.
Validation: full-tree mypy passes across 8,733 files on the final aggregate. All 37 source branches passed across 8,730 files before the final refresh, reusing results for identical source trees; the refresh preserves the campaign's code and test patches exactly. API schema generation, example validation, and repository hooks pass with formatters skipped. The regression and API documentation run has 621 passing tests and one sourcemap documentation case returning 404. That case passes in isolation on both this branch and
master; the combined-run failure remains unresolved. Another 83 focused checks pass. Vacuous tests were subsequently removed (seetighten-typing.md); the focused checks were re-verified after removal, and the 621 count predates that removal.