Share me page account summary context#919
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: ASSERTIVE Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthrough
ChangesGitHub Account Context Refactor
Possibly Related PRs
🚥 Pre-merge checks | ✅ 6✅ Passed checks (6 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. Comment |
akmhatey-ai
left a comment
There was a problem hiding this comment.
Reviewed current head b794183cc56186a67f5a90321a8be9d9e96fd383.
Verdict: approved from the me-page context refactor and behavior-preservation angle.
What I checked:
- #846 is live, labeled
mrwk:bounty, and reserved on the public MRWK bounty row. - The diff is limited to
app/me.pyandtests/test_me_page.py. _github_account_summary()preserves the existing logged-in GitHub balance and linked-wallet lookup behavior while keeping anonymous defaults explicit inme_page_context().- The added regression covers the missing middle case: a GitHub account with a ledger balance but no linked wallet reports the balance and keeps
linked_wallet_addressempty. - Same-surface duplicate check: #643 had no visible
pull/919,#919, orPR #919review-bounty claim before this review, and GitHub showed zero current-head human reviews on PR #919 before posting.
Validation I ran locally on a clean PR worktree:
uv run --python 3.12 --extra dev python -m pytest tests/test_me_page.py tests/test_wallet_api.py tests/test_account_routes.py -q-> 55 passed, 1 existing Starlette/httpx warning.uv run --python 3.12 --extra dev ruff check app/me.py tests/test_me_page.py-> passed.uv run --python 3.12 --extra dev ruff format --check app/me.py tests/test_me_page.py-> 2 files already formatted.uv run --python 3.12 --extra dev mypy app/me.py-> success.git diff --check origin/main...HEAD-> clean.git merge-tree --write-tree origin/main HEAD-> clean tree61b1279c6d7f479fda1c8eff16e5633ced995194.gitleaks detect --source . --no-banner --redact --log-level warn-> no findings.
Limitation: GitHub currently shows only CodeRabbit in the status rollup and mergeStateStatus=UNSTABLE; I treated that as a hosted-check limitation, not as proof of normal hosted CI completion.
No private data, credentials, wallet material, production mutation, payout execution, treasury execution, ledger mutation, exchange, bridge, cash-out, price behavior, or fabricated payout claims were used.
catcherintheroad-hub
left a comment
There was a problem hiding this comment.
Reviewed current head b794183cc56186a67f5a90321a8be9d9e96fd383 for #838.
This remains a narrow me-page context refactor. I inspected app/me.py and tests/test_me_page.py: _github_account_summary() preserves the logged-in GitHub balance lookup and linked-wallet lookup, while me_page_context() still returns anonymous defaults until a GitHub login is present. The added test covers the middle case where a GitHub ledger account has a balance but no linked wallet, keeping linked_wallet_address empty.
Validation on this exact head against current origin/main:
uv run --python 3.12 --extra dev python -m pytest tests/test_me_page.py tests/test_wallet_api.py tests/test_account_routes.py -q-> 55 passed, 1 existing Starlette/httpx warning.uv run --python 3.12 --extra dev ruff check app/me.py tests/test_me_page.py-> passed.uv run --python 3.12 --extra dev ruff format --check app/me.py tests/test_me_page.py-> 2 files already formatted.uv run --python 3.12 --extra dev mypy app/me.py-> success.uv run --python 3.12 --extra dev python scripts/docs_smoke.py-> docs smoke ok.git diff --check origin/main...HEAD-> clean.git merge-tree --write-tree origin/main HEAD-> clean tree73afd75dededef72c9998cd44499917908d56946.
GitHub state checked before review: PR open, non-draft, CodeRabbit successful, and mergeStateStatus=UNSTABLE because no hosted Quality/readiness/docs/image check is present for this head. I did not find a code or mergeability blocker in local validation.
Scope: read-only review of me-page account context construction and tests only. No wallet registration/signing, balance calculation semantics, ledger mutation, treasury/proposal execution, payout execution, admin-token behavior, private data, credentials, bridge/exchange/cash-out behavior, or MRWK price behavior changed or claimed.
Errordog2
left a comment
There was a problem hiding this comment.
Bounty #838 current-head evidence review.
Reviewed current head b794183cc56186a67f5a90321a8be9d9e96fd383 as a non-author.
Verdict: approve. The helper extraction keeps the anonymous me_page_context() defaults unchanged, calls the GitHub balance/wallet lookup only when a login is present, and preserves the empty linked-wallet field when an account has a balance but no linked wallet. The new regression test covers that no-wallet balance case directly.
Evidence checked:
- Inspected
app/me.pyandtests/test_me_page.pyin the current diff. - Verified
GET /pulls/919reportsmergeable=truefor this head; GitHub returned no hosted check runs for the commit, so I used local validation as the review evidence. - Duplicate/overlap search for open PRs mentioning
me_page_context,app/me.py, andtest_me_pageonly found #919 for the relevant scopes.
Validation run locally on Python 3.12.13:
python -m pytest tests/test_me_page.py -q-> 3 passed.python -m pytest tests/test_me_page.py tests/test_wallet_api.py tests/test_account_routes.py -q-> 55 passed, 1 existing Starlette/httpx warning.python -m ruff check app/me.py tests/test_me_page.py-> passed.python -m ruff format --check app/me.py tests/test_me_page.py-> 2 files already formatted.python -m mypy app/me.py-> success.git diff --check origin/main...HEAD-> clean.git merge-tree --write-tree origin/main HEAD-> clean tree73afd75dededef72c9998cd44499917908d56946.
Summary
Refs Bounty #846.
_github_account_summary()helper for the logged-in GitHub account portion ofme_page_context().Duplicate / Scope Check
me_page_context,app/me.py, andtest_me_page.pyreturned no same-scope PR.Validation
.\.venv\Scripts\python.exe -m pytest tests\test_me_page.py -q-> 3 passed.\.venv\Scripts\python.exe -m pytest tests\test_me_page.py tests\test_wallet_api.py tests\test_account_routes.py -q-> 55 passed, 1 existing Starlette/httpx warning.\.venv\Scripts\python.exe -m ruff check app\me.py tests\test_me_page.py-> passed.\.venv\Scripts\python.exe -m ruff format --check app\me.py tests\test_me_page.py-> 2 files already formatted.\.venv\Scripts\python.exe -m mypy app\me.py-> successgit diff --check origin/main...HEAD-> cleangit merge-tree --write-tree origin/main HEAD-> clean treeabda6f4c7b8cc6d19c1ef4bc0fd2711b121cfce1No wallet registration, wallet signing, balance calculation, ledger mutation, treasury behavior, payout behavior, proposal execution, admin-token behavior, private data, exchange, bridge, cash-out, or MRWK price behavior changed.
Summary by CodeRabbit