Skip to content

Conversation

ihorsokhanexoft
Copy link
Contributor

Purpose

Embargo termination logging doesn't provide useful info regarding of what error was raised

Changes

Improved logging, removed if statement duplicate

Ticket

https://openscience.atlassian.net/browse/ENG-7927?atlOrigin=eyJpIjoiZDJkYTQ3MjdmN2UxNDBjYmIzMDg1YzVhNmI4ZjMzMWQiLCJwIjoiaiJ9

f'Unexpected error raised when completing embargo for '
f'registration {parent_registration._id}. Continuing...'
f'Registration {parent_registration._id} could not be made public because {str(err)}',
exc_info=err
Copy link
Collaborator

Choose a reason for hiding this comment

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

Based on other places I've seen it used, exc_info should be a boolean.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Before this change I checked the source code of the lib and it supports childs of BaseException class
image

@brianjgeiger brianjgeiger changed the base branch from feature/pbs-25-09 to feature/pbs-25-10 May 16, 2025 13:10
@brianjgeiger brianjgeiger merged commit bcd86db into CenterForOpenScience:feature/pbs-25-10 May 16, 2025
6 checks passed
Johnetordoff added a commit to Johnetordoff/osf.io that referenced this pull request Jun 3, 2025
…cience/osf.io into refactor-notifications

* 'feature/pbs-25-10' of https://github.com/CenterForOpenScience/osf.io:
  fix issue where trying another already confirmed email threw an uncaught exception (CenterForOpenScience#11161)
  [ENG-8148] Add ArtifactOutcome in annotations to linked nodes  (CenterForOpenScience#11158)
  [ENG-7966] Add "collected-in" relationship for Nodes (CenterForOpenScience#11140)
  fix issue where not having any external identities caused a 500
  [ENG-7965] Add v2 email token confirmation endpoints (CenterForOpenScience#11139)
  [ENG-8052] Fixed FilterMixin issue with multiple values of notification subscription field (CenterForOpenScience#11150)
  support related_counts for view_only links (CenterForOpenScience#11148)
  allow admins change registration providers (CenterForOpenScience#11145)
  [ENG-7927] Improved logging for embargo termination (CenterForOpenScience#11137)
  [ENG-7873] CLONE - SPAM - When Hamming a Spammed user, preprints and registrations remain private (CenterForOpenScience#11125)
  Update changelog and package.json
  fix TypeError when check stucked registration
  revert async email sending (CenterForOpenScience#11134)
  [ENG-7921] Add scopes for applications to full_read and full_write scopes (CenterForOpenScience#11126)

# Conflicts:
#	api_tests/nodes/views/test_node_detail.py
#	api_tests/nodes/views/test_node_linked_registrations.py
#	framework/auth/oauth_scopes.py
#	tests/test_registrations/test_retractions.py
ihorsokhanexoft added a commit to ihorsokhanexoft/osf.io that referenced this pull request Jun 4, 2025
…ence#11137)

## Purpose
Embargo termination logging doesn't provide useful info regarding of what error was raised

## Changes
Improved logging, removed if statement duplicate

## Ticket
https://openscience.atlassian.net/browse/ENG-7927
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