Add support for multi-org sites

WL-926
This commit is contained in:
Douglas Hall
2017-02-04 15:12:35 -05:00
parent 6626725781
commit 58f0154ee2
12 changed files with 77 additions and 71 deletions

View File

@@ -295,11 +295,11 @@ def _record_feedback_in_zendesk(
# Tag all issues with LMS to distinguish channel in Zendesk; requested by student support team
zendesk_tags = list(tags.values()) + ["LMS"]
# Per edX support, we would like to be able to route white label feedback items
# via tagging
white_label_org = configuration_helpers.get_value('course_org_filter')
if white_label_org:
zendesk_tags = zendesk_tags + ["whitelabel_{org}".format(org=white_label_org)]
# Per edX support, we would like to be able to route feedback items by site via tagging
current_site_orgs = configuration_helpers.get_current_site_orgs()
if current_site_orgs:
for org in current_site_orgs:
zendesk_tags.append("whitelabel_{org}".format(org=org))
new_ticket = {
"ticket": {