Skip to content

Commit

Permalink
feat(api): retrieve anonymisedById from user repository
Browse files Browse the repository at this point in the history
  • Loading branch information
EmmanuelleBonnemay committed Dec 17, 2024
1 parent 988ac87 commit cf31944
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ class UserDetailsForAdmin {
emailConfirmedAt,
userLogin,
hasBeenAnonymised,
hasBeenAnonymisedBy,
anonymisedByFirstName,
anonymisedByLastName,
isPixAgent,
Expand Down Expand Up @@ -54,6 +55,7 @@ class UserDetailsForAdmin {
this.emailConfirmedAt = emailConfirmedAt;
this.userLogin = userLogin;
this.hasBeenAnonymised = hasBeenAnonymised;
this.hasBeenAnonymisedBy = hasBeenAnonymisedBy;
this.updatedAt = updatedAt;
this.anonymisedByFirstName = anonymisedByFirstName;
this.anonymisedByLastName = anonymisedByLastName;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -557,6 +557,7 @@ function _fromKnexDTOToUserDetailsForAdmin({
authenticationMethods,
userLogin,
hasBeenAnonymised: userDTO.hasBeenAnonymised,
hasBeenAnonymisedBy: userDTO.hasBeenAnonymisedBy,
updatedAt: userDTO.updatedAt,
createdAt: userDTO.createdAt,
anonymisedByFirstName: userDTO.anonymisedByFirstName,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ const serialize = function (usersDetailsForAdmin) {
'lastLoggedAt',
'emailConfirmedAt',
'hasBeenAnonymised',
'hasBeenAnonymisedBy',
'anonymisedByFullName',
'organizationLearners',
'authenticationMethods',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,7 @@ describe('Acceptance | Identity Access Management | Application | Route | Admin
'pix-orga-terms-of-service-accepted': false,
username: user.username,
'has-been-anonymised': false,
'has-been-anonymised-by': false,
'anonymised-by-full-name': null,
'is-pix-agent': false,
});
Expand Down

0 comments on commit cf31944

Please sign in to comment.