Jul 16 - Update issue handler Janitorial staff - add input staff contact

This commit is contained in:
2026-07-16 15:48:15 -04:00
parent 66dbf31c34
commit 56bcf9ed63
8 changed files with 89 additions and 17 deletions
+4 -2
View File
@@ -110,6 +110,7 @@ def _issue_payload(issue):
'vendor_contact': issue.vendor_contact or None,
'vendor_notes': issue.vendor_notes or None,
'internal_handler_name': issue.internal_handler_name or None,
'internal_handler_contact': issue.internal_handler_contact or None,
}
@@ -425,7 +426,8 @@ def update_issue_handler(issue_id):
"vendor_name": "...", // optional (vendor handler)
"vendor_contact": "...", // optional
"vendor_notes": "...", // optional
"internal_handler_name": "..." // optional (janitorial staff name)
"internal_handler_name": "...", // optional (janitorial staff name)
"internal_handler_contact": "..." // optional (janitorial staff contact)
}
Only keys present in the body are updated; empty strings clear a field.
@@ -465,7 +467,7 @@ def update_issue_handler(issue_id):
_text_fields = (
'facility_handler_name', 'facility_handler_contact', 'facility_handler_notes',
'vendor_name', 'vendor_contact', 'vendor_notes',
'internal_handler_name',
'internal_handler_name', 'internal_handler_contact',
)
for field in _text_fields:
if field in data: