More email SKU shenanigans, now with more TEST labels!

This commit is contained in:
2026-09-14 11:41:27 -05:00
parent a6f60408ff
commit b5570d39f0
12 changed files with 815 additions and 139 deletions
+9 -1
View File
@@ -22,7 +22,15 @@ def jira_ticket_url(ticket_number: str | None) -> str | None:
jira_url = config.get("JIRA_URL", "").strip()
if not jira_url:
return None
return f"{jira_url.rstrip('/')}/browse/{ticket_number}"
base = jira_url.rstrip("/")
# JIRA_URL is meant to be the bare site domain - app/services/jira_service.py
# appends /rest/api/... itself for API calls, so that suffix should never
# be part of the setting value. Strip it defensively anyway, so a link
# here is always a normal web page rather than an API endpoint even if
# the setting was ever saved with that path already attached.
if "/rest/" in base:
base = base.split("/rest/")[0]
return f"{base}/browse/{ticket_number}"
def google_maps_search_url(shipping_info: dict | None) -> str | None: