Skip to content

Commit

Permalink
Merge pull request #59 from marcomarasca/PLFM-8218
Browse files Browse the repository at this point in the history
PLFM-8218: Expose 2fa info in user profile
  • Loading branch information
SandhraSokhal authored Feb 1, 2024
2 parents f350c40 + 509c219 commit 09d83df
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/scripts/glue_jobs/user_profile_snapshots.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def __init__(self, mapping_list, partition_key):
def execute(self, dynamic_frame):
transformed_frame = dynamic_frame.map(f=UserProfileSnapshots.transform)
if transformed_frame.stageErrorsCount() > 0:
self.log_errors(dynamic_frame)
self.log_errors(transformed_frame)
# Filed emails is list , which we need to get first email from list if it's not empty, so drop emails field
droppedColumn_frame = transformed_frame.drop_fields(paths=[EMAILS], transformation_ctx="droppedColumn_frame")
return droppedColumn_frame
Expand Down Expand Up @@ -57,6 +57,7 @@ def get_email(emails):
("snapshot.location", "string", "location", "string"),
("snapshot.company", "string", "company", "string"),
("snapshot.position", "string", "position", "string"),
("snapshot.createdOn", "bigint", "created_on", "timestamp")
("snapshot.createdOn", "bigint", "created_on", "timestamp"),
("snapshot.twoFactorAuthEnabled", "boolean", "is_two_factor_auth_enabled", "boolean")
]
user_profile_snapshots = UserProfileSnapshots(mapping_list, PARTITION_KEY)

0 comments on commit 09d83df

Please sign in to comment.