Repository navigation
release: 2.2.0 - #7
Merged
Merged
Conversation
Tests-only gate (python-test.yml) on pull requests into main; nothing runs on any other branch or event. Publishing uses the shared python-publish.yml.
PyPI trusted publishing rejects the shared reusable publish workflow with invalid-publisher, so build and publish live in release.yml and run on a v* tag, as in mdp-outbox.
Keeps the trigger the last successful publish (2.1.1) used, so creating the release is the single step that ships it.
New optional feature app (DJANGO_WEBHOOKS_ENABLED). Accounts register https endpoints with subscribed event types and a per-endpoint secret. Deliveries are signed with HMAC-SHA256 over timestamp and body (X-Webhook-Signature), sent by the cron-run `manage.py webhooks_deliver` with exponential backoff, and every attempt is recorded. Private, loopback, link-local and reserved targets are refused at registration and again before every send; redirects are not followed. Published over REST, GraphQL and gRPC, and mirrored into the template.
New optional app apps.files (DJANGO_FILES_ENABLED): size limit checked before reading, content type sniffed from magic bytes and matched against the extension, random storage keys, owner-or-staff access (others get 404). Storage via Django's storage API; DJANGO_STORAGE_BACKEND=s3 uses django-storages (new [s3] extra). Shared naming/size/sniff helpers extracted from apps/support/uploads.py into infrastructure/common/uploads.py. Mirrored into the template.
Records actor, action, target model/id, JSON diff, timestamp and request IP. Entries refuse update/delete; staff list them filtered by actor, target and date range with pagination. Registered via api_registry.json, mirrored into the generator template.
Shop: placing, settling, cancelling, payment rejection and every status step. Wallet: adjust (not on replay), freeze/close, approve, reject, expire, reverse and status transitions. Mirrored into the template.
Global switch, per-user overrides and a stable hashed rollout; cached is_enabled(key, user) invalidated on save. Staff manage flags via admin, REST, GraphQL and gRPC; users read their own evaluated flags. Gated by DJANGO_FLAGS_ENABLED and mirrored into the generator template.
…ough New section 13 covers staff-only refusals, a 50% rollout, a per-account pin and its clearing, /flags/me, and deletion, then asserts every flags route was visited. Later sections renumbered; example-project test checks the coverage line.
protoc writes its own version into every stub and `protos --check` compares bytes, so CI's unpinned grpcio-tools (1.85.4) failed against stubs generated with 1.84.0. Pin 1.84.0 in both dev extras, and bring the template's 1.83.1 stubs in line with the root tree.
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.
Summary
apps.audit: append-only audit log; shop orders and wallet back-office changes write entries.apps.files: owned file uploads via Django storage (local or S3), sniffed content types.apps.webhooks: HMAC-signed outgoing webhooks with backoff retries and a send-time SSRF guard.apps.flags: feature flags with overrides and stable percentage rollout.release.yml(the shared reusable workflow fails PyPI withinvalid-publisher); still triggered by publishing a GitHub Release.Test plan
make check(ruff, mypy,makemigrations --check,protos --check)make test: 3293 passed, 2 skipped, 95.2% coveragev2.2.0GitHub Release uploads to PyPI