Skip to content

Commit

Permalink
Added fix for freshdesk ticket for name and logos
Browse files Browse the repository at this point in the history
  • Loading branch information
jzbahrai committed May 8, 2024
1 parent 3262a4a commit 6389ce4
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions app/clients/freshdesk.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,19 @@ def _generate_description(self):
f"- Organisation id: {self.contact.organisation_id}",
f"- Organisation name: {self.contact.department_org_name}",
f"- Logo filename: {self.contact.branding_url}",
f"- Logo name: {self.contact.branding_logo_name}",
f"- Alt text english: {self.contact.alt_text_en}",
f"- Alt text french: {self.contact.alt_text_fr}",
"<hr>",
f"Un nouveau logo a été téléchargé par {self.contact.name} ({self.contact.email_address}) pour le service suivant :",
f"- Identifiant du service : {self.contact.service_id}",
f"- Nom du service : {self.contact.service_name}",
f"- Identifiant de l'organisation: {self.contact.organisation_id}",
f"- Nom de l'organisation: {self.contact.department_org_name}",
f"- Nom du fichier du logo : {self.contact.branding_url}",
f"- Nom du logo : {self.contact.branding_logo_name}",
f"- Texte alternatif anglais : {self.contact.alt_text_en}",
f"- Texte alternatif français : {self.contact.alt_text_fr}",
]
)

Expand Down
1 change: 1 addition & 0 deletions app/user/contact_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ class ContactRequest:
notification_types: str = field(default="")
expected_volume: str = field(default="")
branding_url: str = field(default="")
branding_logo_name: str = field(default="")
alt_text_en: str = field(default="")
alt_text_fr: str = field(default="")

Expand Down
1 change: 1 addition & 0 deletions app/user/rest.py
Original file line number Diff line number Diff line change
Expand Up @@ -500,6 +500,7 @@ def send_branding_request(user_id):
organisation_id=data["organisation_id"],
department_org_name=data["organisation_name"],
branding_url=get_logo_url(data["filename"]),
branding_logo_name=data["branding_logo_name"] if "branding_logo_name" in data else "",
alt_text_en=data["alt_text_en"],
alt_text_fr=data["alt_text_fr"],
)
Expand Down

0 comments on commit 6389ce4

Please sign in to comment.