Skip to content

Cognito: update UserLastModifiedDate when changing user attributes#7464

Merged
bblommers merged 1 commit intogetmoto:masterfrom
schmittjoaopedro:fix-cognito-user-dates
Mar 14, 2024
Merged

Cognito: update UserLastModifiedDate when changing user attributes#7464
bblommers merged 1 commit intogetmoto:masterfrom
schmittjoaopedro:fix-cognito-user-dates

Conversation

@schmittjoaopedro
Copy link
Copy Markdown
Contributor

The current implementation is not updating the Cognito IDP User field UserLastModifiedDate when updating or removing attributes. So this change proposes to fix this.

@codecov
Copy link
Copy Markdown

codecov Bot commented Mar 12, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 95.80%. Comparing base (9aef694) to head (b33b091).
Report is 101 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #7464      +/-   ##
==========================================
- Coverage   95.88%   95.80%   -0.08%     
==========================================
  Files         843      854      +11     
  Lines       82578    83990    +1412     
==========================================
+ Hits        79178    80470    +1292     
- Misses       3400     3520     +120     
Flag Coverage Δ
servertests 32.22% <50.00%> (-0.31%) ⬇️
unittests 95.77% <100.00%> (-0.08%) ⬇️

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

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@bblommers bblommers added this to the 5.0.4 milestone Mar 14, 2024
Copy link
Copy Markdown
Collaborator

@bblommers bblommers left a comment

Choose a reason for hiding this comment

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

LGTM - thanks for the fix @schmittjoaopedro!

@bblommers bblommers merged commit 18a392b into getmoto:master Mar 14, 2024
@github-actions
Copy link
Copy Markdown
Contributor

This is now part of moto >= 5.0.4.dev12

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.

2 participants