Skip to content

Update cuenca-validations to version 2.1.31.dev0, increment internal …#440

Open
rcabrera-py wants to merge 5 commits into
mainfrom
feat/add-reset-password
Open

Update cuenca-validations to version 2.1.31.dev0, increment internal …#440
rcabrera-py wants to merge 5 commits into
mainfrom
feat/add-reset-password

Conversation

@rcabrera-py
Copy link
Copy Markdown
Contributor

@rcabrera-py rcabrera-py commented May 6, 2026

…version to 2.1.20.dev0, and add PasswordReset resource with tests.

Summary by CodeRabbit

  • New Features

    • Introduced PasswordReset functionality to the public API.
  • Tests

    • Added an integration test and recorded HTTP cassette for PasswordReset creation.
  • Chores

    • Bumped package version to 2.2.0.dev3.
    • Updated cuenca-validations dependency to 2.1.31.

Review Change Stack

…version to 2.1.20.dev0, and add PasswordReset resource with tests.
@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 6, 2026

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • 🔍 Trigger review

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 0e942416-e167-45d2-a90e-8b8b8748706b

📥 Commits

Reviewing files that changed from the base of the PR and between 1a49b90 and 99ef901.

📒 Files selected for processing (4)
  • cuenca/resources/password_resets.py
  • cuenca/version.py
  • requirements.txt
  • tests/resources/cassettes/test_password_resets_create.yaml
✅ Files skipped from review due to trivial changes (3)
  • tests/resources/cassettes/test_password_resets_create.yaml
  • cuenca/version.py
  • requirements.txt

Walkthrough

Adds a new PasswordReset Creatable resource (endpoint "password_resets") with fields for platform_id, flow_id, status, optional provider_url, and timestamps, plus a create(location, session) classmethod that posts a PasswordResetRequest. Registers and exports PasswordReset from cuenca.resources and re-exports it at package root. Adds a pytest VCR integration test and cassette for POST /password_resets. Bumps version to 2.2.0.dev3 and updates cuenca-validations to 2.1.31.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

Possibly related PRs

Suggested reviewers

  • alexviquez
  • rogelioLpz
  • felipao-mx
🚥 Pre-merge checks | ✅ 3 | ❌ 2

❌ Failed checks (2 warnings)

Check name Status Explanation Resolution
Title check ⚠️ Warning The PR title mentions updating cuenca-validations to version 2.1.31.dev0, but the actual changes show the version was updated to 2.1.31 (not .dev0). More importantly, the title is significantly incomplete—it's truncated with '…' and fails to capture the main change: adding a new PasswordReset resource with tests. The title is misleading about scope. Revise the title to accurately reflect the primary change: something like 'Add PasswordReset resource and tests' or 'Add PasswordReset resource for password reset flows' to better represent the substantive work.
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.
✅ 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 feat/add-reset-password

Tip

💬 Introducing Slack Agent: The best way for teams to turn conversations into code.

Slack Agent is built on CodeRabbit's deep understanding of your code, so your team can collaborate across the entire SDLC without losing context.

  • Generate code and open pull requests
  • Plan features and break down work
  • Investigate incidents and troubleshoot customer tickets together
  • Automate recurring tasks and respond to alerts with triggers
  • Summarize progress and report instantly

Built for teams:

  • Shared memory across your entire org—no repeating context
  • Per-thread sandboxes to safely plan and execute work
  • Governance built-in—scoped access, auditability, and budget controls

One agent for your entire SDLC. Right inside Slack.

👉 Get started


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

Copy link
Copy Markdown

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@cuenca/http/client.py`:
- Line 21: SANDBOX_HOST is incorrectly set to the same value as API_HOST so
configure(sandbox=True) doesn't switch environments; restore a distinct sandbox
hostname by changing the SANDBOX_HOST assignment (symbol SANDBOX_HOST in
cuenca/http/client.py) back to the sandbox-specific host used by the service and
ensure configure(sandbox=True) uses SANDBOX_HOST instead of API_HOST (refer to
the configure(sandbox=True) logic and any host-selection code that reads
API_HOST/SANDBOX_HOST).
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: f579c9db-d1a0-4fa8-a059-4ca9028b44df

📥 Commits

Reviewing files that changed from the base of the PR and between f33c0e5 and fcb5ae5.

📒 Files selected for processing (7)
  • cuenca/__init__.py
  • cuenca/http/client.py
  • cuenca/resources/__init__.py
  • cuenca/resources/password_resets.py
  • cuenca/version.py
  • requirements.txt
  • tests/resources/test_password_resets.py

Comment thread cuenca/http/client.py Outdated
…_id from PasswordReset resource, and adjust related tests.
@rcabrera-py rcabrera-py force-pushed the feat/add-reset-password branch from ea039ae to 8663f46 Compare May 8, 2026 00:16
…PasswordReset resource, and add test cassette for password reset creation.
Copy link
Copy Markdown

@coderabbitai coderabbitai Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@tests/resources/test_password_resets.py`:
- Around line 7-15: The VCR cassette for the test_password_resets_create test is
recorded against the old host and must be re-recorded to match the new sandbox
host; re-run the test that contains test_password_resets_create with VCR set to
record a new cassette (or temporarily set record mode to "all"/"new_episodes"),
accept the new interaction so the cassette captures POST
https://sandbox.cuenca.com/password_resets, then commit the updated cassette so
future runs (RecordMode.ONCE) use the new host; ensure the re-recorded cassette
contains the POST to the sandbox URL referenced by PasswordReset.create and
verify the test passes before pushing.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: c4930be3-5d1e-4883-b3c3-bd8956d47045

📥 Commits

Reviewing files that changed from the base of the PR and between 8663f46 and 7c71324.

📒 Files selected for processing (3)
  • cuenca/resources/password_resets.py
  • tests/resources/cassettes/test_password_resets_create.yaml
  • tests/resources/test_password_resets.py
✅ Files skipped from review due to trivial changes (1)
  • tests/resources/cassettes/test_password_resets_create.yaml

Comment thread tests/resources/test_password_resets.py
…sword reset creation to use sandbox environment.
@codecov
Copy link
Copy Markdown

codecov Bot commented May 8, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (f33c0e5) to head (99ef901).

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #440   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           54        55    +1     
  Lines         1199      1222   +23     
=========================================
+ Hits          1199      1222   +23     
Flag Coverage Δ
unittests 100.00% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
cuenca/__init__.py 100.00% <ø> (ø)
cuenca/resources/__init__.py 100.00% <100.00%> (ø)
cuenca/resources/password_resets.py 100.00% <100.00%> (ø)
cuenca/version.py 100.00% <100.00%> (ø)

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update f33c0e5...99ef901. Read the comment docs.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

….0.dev3, and remove mati_verification_id and identity_id from PasswordReset resource. Adjust test cassette for password reset creation accordingly.
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.

3 participants