Skip to content

Move effective_status to service layer, document env vars and test setup - #1005

Open
ambermartin681 wants to merge 1 commit into
kellymusk:masterfrom
ambermartin681:fix/effective-status-service-layer-and-env-docs
Open

Move effective_status to service layer, document env vars and test setup#1005
ambermartin681 wants to merge 1 commit into
kellymusk:masterfrom
ambermartin681:fix/effective-status-service-layer-and-env-docs

Conversation

@ambermartin681

@ambermartin681 ambermartin681 commented Aug 31, 2026

Copy link
Copy Markdown

Summary

Closes #978
closes #979
closes #980
closes #977

Also fixes the same pre-existing extractor.rs compile break flagged in PR #1004 on this repo (ApiError gained a field member; two call sites here weren't updated), needed for this branch to build.

Test plan

  • cargo check passes clean (only pre-existing warnings).
  • Test code intentionally left untouched per task scope.

Closes kellymusk#978, kellymusk#979, kellymusk#980.

- kellymusk#980: Move effective_status() out of src/api/payment_requests.rs and into
  src/services/payment_requests.rs as a public function, so any future
  caller (a webhook handler, a scheduled job) can determine expiry without
  importing from the API layer.
- kellymusk#979: .env.example now documents TEST_DATABASE_URL (previously undocumented
  despite being required for real integration test runs) and warns against
  committing real secrets. .env is already gitignored.
- kellymusk#978: Verified GET /me already returns `email` in MeView and in the Me
  schema in openapi.yaml — no code change needed, issue was already
  resolved by prior work.
- kellymusk#977: Added a doc comment block to tests/common/mod.rs explaining the
  migration-once model, the lack of per-test isolation/teardown, and why
  parallel test execution is currently safe. The per-test DB isolation
  implementation (sqlx::test macro, schema-per-test, etc.) is test-authoring
  work and intentionally left out of this pass.

Also fixes the same pre-existing extractor.rs compile break described in
PR kellymusk#1004 (ApiError gained a `field` member; two call sites weren't updated).
@drips-wave

drips-wave Bot commented Aug 31, 2026

Copy link
Copy Markdown

@ambermartin681 Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits.

You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀

Learn more about application limits

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment