diff --git a/designsafe/apps/onboarding/steps/project_membership.py b/designsafe/apps/onboarding/steps/project_membership.py index 7724330c8c..050316a804 100644 --- a/designsafe/apps/onboarding/steps/project_membership.py +++ b/designsafe/apps/onboarding/steps/project_membership.py @@ -84,7 +84,7 @@ 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, @@ -92,6 +92,11 @@ def send_project_request(self, request): ) 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.", diff --git a/designsafe/settings/common_settings.py b/designsafe/settings/common_settings.py index 3e9a445fa8..237e365674 100644 --- a/designsafe/settings/common_settings.py +++ b/designsafe/settings/common_settings.py @@ -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",