Skip to content

Commit

Permalink
fix(chore): Removing debugging statements
Browse files Browse the repository at this point in the history
  • Loading branch information
monotasker committed Oct 30, 2024
1 parent 023107d commit 2dc438e
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
6 changes: 3 additions & 3 deletions invenio_remote_user_data_kcworks/components/groups.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def get_roles_for_remote_group(
def get_current_members_of_group(group_name: str) -> list[User]:
"""fetch a list of the users assigned the given group role"""
my_group_role = current_accounts.datastore.find_role(group_name)
app.logger.debug(f"got group role {my_group_role}")
# app.logger.debug(f"got group role {my_group_role}")
return [user for user in my_group_role.users]

def get_current_user_roles(self, user: Union[str, User]) -> list:
Expand Down Expand Up @@ -171,8 +171,8 @@ def remove_user_from_group(
group_name = (
group_name if isinstance(group_name, str) else group_name.id
)
app.logger.debug(f"removing from user {user.email}")
app.logger.debug(user.roles)
# app.logger.debug(f"removing from user {user.email}")
# app.logger.debug(user.roles)
removed_user = current_accounts.datastore.remove_role_from_user(
user, group_name
)
Expand Down
2 changes: 1 addition & 1 deletion invenio_remote_user_data_kcworks/ext.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def on_user_logged_in(_, user: User) -> None:
"signal received "
f"for user {user.id}"
)
current_app.logger.debug(f"current_user: {current_user}")
# current_app.logger.debug(f"current_user: {current_user}")
# if self._data_is_stale(identity.id) and not self.update_in_progress:
# my_user_identity = UserIdentity.query.filter_by(
# id_user=identity.id
Expand Down
2 changes: 1 addition & 1 deletion invenio_remote_user_data_kcworks/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -640,7 +640,7 @@ def compare_remote_with_local(
if r not in group_changes["dropped_groups"]
]
new_data["user_profile"] = initial_user_data["user_profile"]
self.logger.debug(f"users data: {pformat(users)}")
# self.logger.debug(f"users data: {pformat(users)}")
new_data["user_profile"].update(
{
"full_name": users["name"],
Expand Down
10 changes: 5 additions & 5 deletions invenio_remote_user_data_kcworks/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,10 +159,10 @@ def post(self):

for e in data["updates"].keys():
if e in entity_types.keys():
self.logger.debug(
f"In POST view: Received {e} update signal from "
f"{idp}: {data['updates'][e]}"
)
# self.logger.debug(
# f"In POST view: Received {e} update signal from "
# f"{idp}: {data['updates'][e]}"
# )
for u in data["updates"][e]:
if u["event"] in entity_types[e]["events"]:
if e == "users":
Expand Down Expand Up @@ -218,7 +218,7 @@ def post(self):
f"Published {len(events)} events to queue and emitted"
" remote_data_updated signal"
)
self.logger.debug(events)
# self.logger.debug(events)
else:
if not users and bad_users or not groups and bad_groups:
entity_string = ""
Expand Down

0 comments on commit 2dc438e

Please sign in to comment.