fix: align pipeline cards with client 360 ids
Some checks failed
Velocity-OS Deployment Pipeline / lint (push) Has been cancelled
Velocity-OS Deployment Pipeline / build-and-push (agents) (push) Has been cancelled
Velocity-OS Deployment Pipeline / build-and-push (core) (push) Has been cancelled
Velocity-OS Deployment Pipeline / build-and-push (media-engine) (push) Has been cancelled
Velocity-OS Deployment Pipeline / build-and-push (webos) (push) Has been cancelled
Velocity-OS Deployment Pipeline / sign-images (agents) (push) Has been cancelled
Velocity-OS Deployment Pipeline / sign-images (core) (push) Has been cancelled
Velocity-OS Deployment Pipeline / sign-images (media-engine) (push) Has been cancelled
Velocity-OS Deployment Pipeline / sign-images (webos) (push) Has been cancelled
Velocity-OS Deployment Pipeline / notify-ingress (push) Has been cancelled
Some checks failed
Velocity-OS Deployment Pipeline / lint (push) Has been cancelled
Velocity-OS Deployment Pipeline / build-and-push (agents) (push) Has been cancelled
Velocity-OS Deployment Pipeline / build-and-push (core) (push) Has been cancelled
Velocity-OS Deployment Pipeline / build-and-push (media-engine) (push) Has been cancelled
Velocity-OS Deployment Pipeline / build-and-push (webos) (push) Has been cancelled
Velocity-OS Deployment Pipeline / sign-images (agents) (push) Has been cancelled
Velocity-OS Deployment Pipeline / sign-images (core) (push) Has been cancelled
Velocity-OS Deployment Pipeline / sign-images (media-engine) (push) Has been cancelled
Velocity-OS Deployment Pipeline / sign-images (webos) (push) Has been cancelled
Velocity-OS Deployment Pipeline / notify-ingress (push) Has been cancelled
This commit is contained in:
@@ -454,13 +454,18 @@ def _relative_time_label(value: Any) -> str:
|
|||||||
|
|
||||||
|
|
||||||
def _kanban_stage_payload(stage_id: str, label: str, emoji: str, leads: list[dict[str, Any]]) -> dict[str, Any]:
|
def _kanban_stage_payload(stage_id: str, label: str, emoji: str, leads: list[dict[str, Any]]) -> dict[str, Any]:
|
||||||
|
def lead_route_id(lead: dict[str, Any]) -> str:
|
||||||
|
metadata = lead.get("metadata") or {}
|
||||||
|
return str(metadata.get("canonical_person_id") or lead["id"])
|
||||||
|
|
||||||
return {
|
return {
|
||||||
"id": stage_id,
|
"id": stage_id,
|
||||||
"label": label,
|
"label": label,
|
||||||
"emoji": emoji,
|
"emoji": emoji,
|
||||||
"leads": [
|
"leads": [
|
||||||
{
|
{
|
||||||
"id": lead["id"],
|
"id": lead_route_id(lead),
|
||||||
|
"legacyId": lead["id"],
|
||||||
"name": lead["name"],
|
"name": lead["name"],
|
||||||
"location": lead.get("unit_interest") or lead.get("budget") or lead.get("source"),
|
"location": lead.get("unit_interest") or lead.get("budget") or lead.get("source"),
|
||||||
"qdScore": int(lead.get("score") or 0),
|
"qdScore": int(lead.get("score") or 0),
|
||||||
|
|||||||
Reference in New Issue
Block a user