review.domain_layer.services package
Submodules
review.domain_layer.services.anonymize_isr_service module
review.domain_layer.services.anonymize_ppr_proposal_review_service module
review.domain_layer.services.anonymize_science_review_panel_service module
review.domain_layer.services.cd_and_isr_for_srp_generator_service module
review.domain_layer.services.complete_panel_configuration_service module
review.domain_layer.services.deserialize_csv_to_ifrs_service module
review.domain_layer.services.deserialize_csv_to_isrs_service module
review.domain_layer.services.deserialize_csv_to_ppr_proposal_reviews_service module
review.domain_layer.services.emit_proposal_review_json_service module
review.domain_layer.services.finalize_prop_reviews_service module
review.domain_layer.services.is_srp_in_consensus_phase_service module
review.domain_layer.services.serialize_ifrs_to_csv_service module
review.domain_layer.services.serialize_isrs_to_csv_service module
review.domain_layer.services.serialize_ppr_proposal_reviews_to_csv_service module
review.domain_layer.services.set_auto_conflicts_service module
review.domain_layer.services.validate_cd_state_change_service module
- review.domain_layer.services.validate_cd_state_change_service.validate_conflict_declaration_state_change(current_state: str, desired_state: str, is_reason_empty: bool, has_reason_changed: bool, is_tta_member: bool = False) str
Validate the given ConflictDeclaration state transition
- Parameters:
current_state – State to transition from
desired_state – State to transition to
is_reason_empty – Whether or not the ConflictDeclaration’s reason field is empty
has_reason_changed – whether or not the reason has changed
is_tta_member – Whether or not the requesting user is a TTA Member
- Returns:
“” if the specified state transition is supported, otherwise a helpful message
review.domain_layer.services.validate_fr_state_change_service module
- review.domain_layer.services.validate_fr_state_change_service.validate_fr_state_change(current_state: str, desired_state: str, is_tta_member: bool) str
Validate the given FeasibilityReview state transition
- Parameters:
current_state – State to transition from
desired_state – State to transition to
is_tta_member – Whether or not the user requesting the given state change is a TTA member
- Returns:
“” if the specified state transition is supported, else a helpful message
review.domain_layer.services.validate_isr_score_service module
- review.domain_layer.services.validate_isr_score_service.validate_isr_score(score: float) bool
Validate an IndividualScienceReview’s score, ensuring that it’s between 0.1 and 9.9 in increments of a tenth
- Parameters:
score – Score to validate
- Returns:
Whether or not the score is valid
review.domain_layer.services.validate_isr_state_change_service module
- review.domain_layer.services.validate_isr_state_change_service.validate_isr_state_change(current_state: str, desired_state: str, is_tta_member: bool, is_finalize_call: bool) str
Validate the given IndividualScienceReview state transition
- Parameters:
current_state – State to transition from
desired_state – State to transition to
is_tta_member – Whether or not the user requesting the given state change is a TTA member
is_finalize_call – Whether the caller is using this state transition to finalize an ISR or save progress on it
- Returns:
“” if the specified state transition is supported, else a helpful message
review.domain_layer.services.validate_panel_config_service module
review.domain_layer.services.validate_ppr_prop_rev_score_service module
- review.domain_layer.services.validate_ppr_prop_rev_score_service.validate_ppr_prop_review_score(score: float) bool
Validate a PPRProposalReview’s score, ensuring that it’s greater than 0 in increments of a hundredth
- Parameters:
score – Score to validate
- Returns:
Whether the score is valid or not
review.domain_layer.services.validate_pprpr_state_change_service module
- review.domain_layer.services.validate_pprpr_state_change_service.validate_pprpr_state_change(current_state: str, desired_state: str, is_unconflicted_chair: bool = False, is_tta_member: bool = False) str
Validate the given PPRProposalReview state transition
- Parameters:
current_state – State to transition from
desired_state – State to transition to
is_unconflicted_chair – Whether or not the user requesting this state change is an unconflicted chair Note: if True, it means that the user is a chair and happens to not be conflicted. It is the responsibility of the caller to determine if they are unconflicted.
is_tta_member – Whether or not the user requesting this state change is a TTA Member
- Returns:
“” if the specified state transition is supported, else a helpful message