Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DRAFT: allocation fullness email alerts #315

Open
wants to merge 20 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
update change_request_url
claire-peters committed Aug 14, 2024
commit ae835ab0d0a38ba036566413eff1d5c5e397213f
4 changes: 2 additions & 2 deletions coldfront/core/utils/fasrc.py
Original file line number Diff line number Diff line change
@@ -17,7 +17,7 @@
from coldfront.core.utils.common import import_from_settings
from coldfront.core.project.models import Project
from coldfront.core.resource.models import Resource
from coldfront.core.utils.mail import send_allocation_manager_email
from coldfront.core.utils.mail import send_allocation_manager_email, build_link

logger = logging.getLogger(__name__)

@@ -155,7 +155,7 @@ def allocation_reaching_capacity_operations(allocation_obj, new_byte_usage):
'project_title': allocation_obj.project.title,
'allocation_quota': f'{allocation_obj.size} {allocation_obj.get_parent_resource.quantity_label}',
'resource': resource.name,
'change_request_url': reverse('allocation-change', kwargs=allocation_pk_dict),
'change_request_url': build_link(reverse('allocation-change', kwargs=allocation_pk_dict)),
}
if (
'coldfront.plugins.sftocf' in settings.INSTALLED_APPS