Skip to content

Conversation

Vlad0n20
Copy link
Contributor

@Vlad0n20 Vlad0n20 commented Sep 5, 2025

Purpose

Changes

QA Notes

Please make verification statements inspired by your code and what your code touches.

  • Verify
  • Verify

What are the areas of risk?

Any concerns/considerations/questions that development raised?

Documentation

Side Effects

Ticket

https://openscience.atlassian.net/browse/ENG-8655?atlOrigin=eyJpIjoiNWEyY2Q5MjVkMDcwNDczYWJjZmZkMmY1NWIyNzVlMjEiLCJwIjoiaiJ9

Copy link
Contributor

@opaduchak opaduchak left a comment

Choose a reason for hiding this comment

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

Looks good, I have one minor question

from framework.auth import Auth
auth = Auth.from_kwargs(request.args.to_dict(), {})
if not preprint.can_view(auth):
if getattr(preprint, 'is_pending_moderation', True):
Copy link
Contributor

Choose a reason for hiding this comment

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

is this necessary? Can't it be simplified to

Suggested change
if getattr(preprint, 'is_pending_moderation', True):
if preprint.is_pending_moderation:

@Vlad0n20 Vlad0n20 changed the base branch from feature/pbs-25-16 to feature/pbs-25-19 September 18, 2025 14:14
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