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

This commit is contained in:
2026-07-16 15:39:26 -04:00
parent 5a42b21a04
commit 66dbf31c34
8 changed files with 112 additions and 7 deletions
+4 -1
View File
@@ -109,6 +109,7 @@ def _issue_payload(issue):
'vendor_name': issue.vendor_name or None,
'vendor_contact': issue.vendor_contact or None,
'vendor_notes': issue.vendor_notes or None,
'internal_handler_name': issue.internal_handler_name or None,
}
@@ -423,7 +424,8 @@ def update_issue_handler(issue_id):
"facility_handler_notes": "...", // optional
"vendor_name": "...", // optional (vendor handler)
"vendor_contact": "...", // optional
"vendor_notes": "..." // optional
"vendor_notes": "...", // optional
"internal_handler_name": "..." // optional (janitorial staff name)
}
Only keys present in the body are updated; empty strings clear a field.
@@ -463,6 +465,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',
)
for field in _text_fields:
if field in data: