Services
hypha.apply.funds.services
¶
bulk_archive_submissions
¶
Archive submissions and generate action log.
Parameters:
-
submissions
(QuerySet
) –queryset of submissions to archive
-
user
–user who is archiving the submissions
-
request
(HttpRequest
) –django request object
Returns:
-
QuerySet
–QuerySet of submissions that have been archived
Source code in hypha/apply/funds/services.py
bulk_delete_submissions
¶
Permanently deletes submissions and generate action log.
Parameters:
-
submissions
(QuerySet
) –queryset of submissions to archive
-
user
–user who is archiving the submissions
-
request
(HttpRequest
) –django request object
Returns:
-
QuerySet
–QuerySet of submissions that have been archived
Source code in hypha/apply/funds/services.py
bulk_update_lead
¶
Update lead for submissions and generate action log.
Parameters:
-
submissions
(QuerySet
) –queryset of submissions to update
-
user
–user who is changing the lead
-
request
(HttpRequest
) –django request object
-
lead
–user who is the new lead
Returns:
-
QuerySet
–QuerySet of submissions that have been changed
Source code in hypha/apply/funds/services.py
bulk_update_reviewers
¶
Update reviewer for submissions and generate action log.
Parameters:
-
submissions
(QuerySet
) –queryset of submissions to update
-
user
–user who is changing the reviewer
-
request
(HttpRequest
) –django request object
-
assigned_roles
(dict
) –roles and reviewers to assign against them
-
reviewer
–user who is the new reviewer
Returns:
-
QuerySet
–QuerySet of submissions that have been changed
Source code in hypha/apply/funds/services.py
annotate_comments_count
¶
Source code in hypha/apply/funds/services.py
set_status_after_reviewers_assigned
¶
Source code in hypha/apply/funds/services.py
annotate_review_recommendation_and_count
¶
Source code in hypha/apply/funds/services.py
has_valid_str
¶
Checks that an Tag contains a valid text element and/or string.
Parameters:
-
tag
(Tag
) –a
bs4.element.Tag