close
Skip to content

fix: remove set active from set password#806

Merged
dorsha merged 2 commits into
mainfrom
fix/remove-set-active-from-set-password
Apr 5, 2026
Merged

fix: remove set active from set password#806
dorsha merged 2 commits into
mainfrom
fix/remove-set-active-from-set-password

Conversation

@ruvenzx
Copy link
Copy Markdown
Contributor

@ruvenzx ruvenzx commented Apr 5, 2026

Related Issues

related to https://github.com/descope/etc/issues/14914

Description

Removes the set_active parameter from mgmt.user.set_password() as it is not used by the backend and had no effect.

Must

  • Tests
  • Documentation (if applicable)

@ruvenzx ruvenzx requested a review from dorsha April 5, 2026 07:14
@ruvenzx ruvenzx self-assigned this Apr 5, 2026
Copilot AI review requested due to automatic review settings April 5, 2026 07:14
@shuni-bot-dev
Copy link
Copy Markdown

shuni-bot-dev Bot commented Apr 5, 2026

🐕 Review complete — View session on Shuni Portal 🐾

@ruvenzx ruvenzx changed the title Fix/remove set active from set password fix: remove set active from set password Apr 5, 2026
Copy link
Copy Markdown

@shuni-bot-dev shuni-bot-dev Bot left a comment

Choose a reason for hiding this comment

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

🐕 Shuni's Review

Removes the unused set_active parameter from the deprecated set_password() method, since the backend ignores it. The newer set_temporary_password and set_active_password methods already handle this correctly via dedicated endpoints.

No issues found — good bones! Clean removal with test updated to match. Woof!

@dorsha dorsha enabled auto-merge (squash) April 5, 2026 07:15
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Removes the unused set_active/setActive flag from the deprecated management API mgmt.user.set_password() to align the client with backend behavior (related to issue #14914).

Changes:

  • Remove the set_active parameter from User.set_password() and stop sending setActive in the request body.
  • Update the set_password() docstring to reflect that the password is always set as expired.
  • Update the corresponding unit test to match the new request payload.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
descope/management/user.py Removes set_active from the public method signature, request body, and updates the docstring.
tests/management/test_user.py Updates test_user_set_password to no longer expect setActive in the JSON payload.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread descope/management/user.py
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 5, 2026

Coverage report

The coverage rate went from 98.35% to 98.35% ➡️

None of the new lines are part of the tested code. Therefore, there is no coverage data about them.

@dorsha dorsha merged commit 4cd8caf into main Apr 5, 2026
34 checks passed
@dorsha dorsha deleted the fix/remove-set-active-from-set-password branch April 5, 2026 07:25
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