review.application_layer.services package

Submodules

review.application_layer.services.finalize_frs module

review.application_layer.services.finalize_isrs module

review.application_layer.services.generate_feasibility_group_reviews module

review.application_layer.services.launch_srp_consensus_phase_service module

review.application_layer.services.notify_tta_members_if_insufficient_reviewers module

review.application_layer.services.notify_tta_members_srp_isrs_finalized module

review.application_layer.services.notify_tta_members_srp_ppr_proposal_reviews_finalized module

review.application_layer.services.update_review_rules_service module

class review.application_layer.services.update_review_rules_service.PPRUpdatePermission(can_update: bool, can_update_score: bool, message: str)

Bases: NamedTuple

Represents the kinds of update that are permitted for a PPR update request.

can_update: True if the update can be performed can_update_score: True if the score can also be updated message: a message describing the reason why the update cannot be performed

can_update: bool

Alias for field number 0

can_update_score: bool

Alias for field number 1

message: str

Alias for field number 2

review.application_layer.services.update_review_rules_service.check_ppr_update_permitted(is_tta_member: bool, is_chair: bool, is_conflicted: bool, review_type: str, review_state: str) → PPRUpdatePermission

Ascertain whether or not this user is allowed to update a PPR Proposal Review, based on their access level, whether or not they are conflicted, the chair, a TTA member, what sort of review they have done and what state that review is in.

Parameters:
  • is_tta_member – True if this is on behalf of a TTA member

  • is_chair – True if this is on behalf of the chair of the relevant SRP

  • is_conflicted – True if this is on behalf of a conflicted reviewer

  • review_type – ReviewType, probably “Primary,” “Secondary,” or “Tertiary”

  • review_state – “Completed” or some other state from ReviewStates (“Blank,” “Saved,” “Closed,” “Finalized”)

Returns:

an UpdateResponse indicating whether the update is permitted, whether the score can also be updated,

and if the update is not permitted, a reason why.

review.application_layer.services.update_review_rules_service.generate_all_ppr_update_scenarios_csv(filename: str)

Module contents