Skip to content

Release/2026 04 23#306

Merged
hassaanalansary merged 4 commits intostagingfrom
release/2026-04-23
Apr 22, 2026
Merged

Release/2026 04 23#306
hassaanalansary merged 4 commits intostagingfrom
release/2026-04-23

Conversation

@hassaanalansary
Copy link
Copy Markdown
Collaborator

@hassaanalansary hassaanalansary commented Apr 22, 2026

Summary by CodeRabbit

  • Refactor

    • Updated internal authentication handling for improved compatibility.
  • Tests

    • Updated test code formatting for consistency.

This release includes internal maintenance improvements with no user-facing changes.

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Apr 22, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: aad918e0-93ea-4b80-ac36-658bb899813f

📥 Commits

Reviewing files that changed from the base of the PR and between b75ab1e and 321e7a8.

📒 Files selected for processing (3)
  • apps/core/ninja_utils/auth.py
  • apps/usage_tracking/api/portal/usage.py
  • apps/usage_tracking/tests/test_middleware.py

📝 Walkthrough

Walkthrough

Three updates to the codebase: (1) migrated bearer-token extraction from Django's WSGI request.META to the newer request.headers API, (2) reformatted a route decorator to multi-line argument list format, and (3) simplified a test decorator from multi-line to single-line. No functional logic changes.

Changes

Cohort / File(s) Summary
Bearer Token Extraction
apps/core/ninja_utils/auth.py
Updated bearer-token extraction to use request.headers["authorization"] instead of request.META["HTTP_AUTHORIZATION"]; parsing logic remains unchanged.
API Endpoint Formatting
apps/usage_tracking/api/portal/usage.py
Reformatted @router.get decorator from single-line to multi-line argument list with trailing comma; no functional changes to get_usage_board_url logic.
Test Decorator Refactoring
apps/usage_tracking/tests/test_middleware.py
Simplified @patch decorator from multi-line wrapped to single-line invocation; no changes to mocked targets or test behavior.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~5 minutes

Poem

🐰 A Django refresh, so clean and so bright,
Headers now modern, auth shines its light,
Decorators unfolded, then folded once more,
Code hops along—no bugs at the door!
Formatting fine-tuned, no logic to fret,

🚥 Pre-merge checks | ✅ 3 | ❌ 2

❌ Failed checks (1 warning, 1 inconclusive)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
Title check ❓ Inconclusive The title 'Release/2026 04 23' is a generic release version label that does not clearly summarize the main technical changes in the pull request. Use a descriptive title that summarizes the primary change, such as 'Update bearer token extraction to use Django request.headers' or clarify the purpose of this release merge.
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch release/2026-04-23

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@hassaanalansary hassaanalansary merged commit cd80fcb into staging Apr 22, 2026
6 checks passed
@hassaanalansary hassaanalansary deleted the release/2026-04-23 branch April 22, 2026 23:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants