fix: remove reason when password change is set to false#31363
fix: remove reason when password change is set to false#31363kodiakhq[bot] merged 16 commits intodevelopfrom
Conversation
🦋 Changeset detectedLatest commit: 2d1b2bb The changes in this PR will be included in the next version bump. This PR includes changesets to release 32 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #31363 +/- ##
===========================================
- Coverage 56.39% 55.91% -0.48%
===========================================
Files 2437 2386 -51
Lines 53773 52826 -947
Branches 11082 10843 -239
===========================================
- Hits 30325 29539 -786
+ Misses 20802 20672 -130
+ Partials 2646 2615 -31
Flags with carried forward coverage won't be shown. Click here to find out more. |
MarcosSpessatto
left a comment
There was a problem hiding this comment.
Can we add a test case to cover this?
Not for this case, since we cannot simulate the |
pierre-lehnen-rc
left a comment
There was a problem hiding this comment.
Please add a test that covers this part of the function - even if you can't validate this specific bug in an api test, we would at least have a test running the functionality
|
Looks like this PR is ready to merge! 🎉 |
@pierre-lehnen-rc, I didn't find a way to test it. |
E2E can cover this, just create an user with the reason set, then write a test that checks if the reason is removed when the flag is set to false. |
MarcosSpessatto
left a comment
There was a problem hiding this comment.
Can we add a changeset?
Proposed changes (including videos or screenshots)
Remove the
requirePasswordChangeReasonwhen the fieldrequirePasswordChangeis set to false.Issue(s)
Steps to test or reproduce
Further comments
SUP-444