Skip to content

Commit

Permalink
fix project membership step rt queue
Browse files Browse the repository at this point in the history
  • Loading branch information
rstijerina committed Nov 1, 2024
1 parent 0df78a2 commit 58cd0c3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
7 changes: 6 additions & 1 deletion designsafe/apps/onboarding/steps/project_membership.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,14 +84,19 @@ def send_project_request(self, request):
try:
if tracker.login():
result = tracker.create_ticket(
Queue=self.settings.get("rt_queue") or "Accounting",
Queue=self.settings.get("rt_queue") or "Accounts",
Subject=f"{self.project['title']} Project Membership Request for {self.user.username}",
Text=ticket_text,
Requestors=self.user.email,
CF_resource=self.settings.get("rt_tag") or "",
)
tracker.logout()

if not result:
raise Exception( # pylint: disable=broad-exception-raised
"Could not create ticket"
)

self.state = SetupState.STAFFWAIT
self.log(
"Thank you for your request. It will be reviewed by TACC staff.",
Expand Down
5 changes: 4 additions & 1 deletion designsafe/settings/common_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -709,7 +709,10 @@
PORTAL_USER_ACCOUNT_SETUP_STEPS = [
{
"step": "designsafe.apps.onboarding.steps.project_membership.ProjectMembershipStep",
"settings": {"project_sql_id": 34076}, # project id for DesignSafe-Corral
"settings": {
"project_sql_id": 34076, # project id for DesignSafe-Corral
"rt_queue": "DesignSafe-ci",
},
},
{
"step": "designsafe.apps.onboarding.steps.allocation.AllocationStep",
Expand Down

0 comments on commit 58cd0c3

Please sign in to comment.