Refactor contact handling across backend and frontend
Replaced usage of "ContactPerson" with "Contact" for consistency across the codebase. Updated related component props, state variables, API calls, and database queries to align with the new model. Also enhanced backend functionality with stricter validations and added support for handling active pgroups in contact management.
This commit is contained in:
@ -6,7 +6,7 @@
|
||||
"number_of_dewars": 2,
|
||||
"shipment_status": "In Transit",
|
||||
"shipment_date": "2024-01-15",
|
||||
"contact_person": [
|
||||
"contact": [
|
||||
{ "name": "Alice Johnson", "id": "alice" }
|
||||
],
|
||||
"dewars": [
|
||||
@ -19,7 +19,7 @@
|
||||
"return_address": [
|
||||
{ "address": "123 Main St, Anytown, USA", "id": "address1" }
|
||||
],
|
||||
"contact_person": [
|
||||
"contact": [
|
||||
{ "name": "Alice Johnson", "id": "alice" }
|
||||
],
|
||||
"status": "in preparation",
|
||||
@ -40,7 +40,7 @@
|
||||
"return_address": [
|
||||
{ "address": "123 Main St, Anytown, USA", "id": "address1" }
|
||||
],
|
||||
"contact_person": [
|
||||
"contact": [
|
||||
{ "name": "Alice Johnson", "id": "alice" }
|
||||
],
|
||||
"status": "in preparation",
|
||||
@ -60,7 +60,7 @@
|
||||
"number_of_dewars": 3,
|
||||
"shipment_status": "In Transit",
|
||||
"shipment_date": "2024-02-20",
|
||||
"contact_person": [
|
||||
"contact": [
|
||||
{ "name": "Bob Smith", "id": "bob" }
|
||||
],
|
||||
"dewars": [
|
||||
@ -70,7 +70,7 @@
|
||||
"tracking_number": "TRACK987654",
|
||||
"number_of_pucks": 5,
|
||||
"number_of_samples": 30,
|
||||
"contact_person": [
|
||||
"contact": [
|
||||
{ "name": "Bob Smith", "id": "bob" }
|
||||
],
|
||||
"return_address": [
|
||||
@ -91,7 +91,7 @@
|
||||
"tracking_number": "TRACK876543",
|
||||
"number_of_pucks": 6,
|
||||
"number_of_samples": 36,
|
||||
"contact_person": [
|
||||
"contact": [
|
||||
{ "name": "Bob Smith", "id": "bob" }
|
||||
],
|
||||
"return_address": [
|
||||
@ -112,7 +112,7 @@
|
||||
"tracking_number": "TRACK765432",
|
||||
"number_of_pucks": 4,
|
||||
"number_of_samples": 24,
|
||||
"contact_person": [
|
||||
"contact": [
|
||||
{ "name": "Bob Smith", "id": "bob" }
|
||||
],
|
||||
"return_address": [
|
||||
@ -135,7 +135,7 @@
|
||||
"number_of_dewars": 5,
|
||||
"shipment_status": "Pending",
|
||||
"shipment_date": "2024-03-10",
|
||||
"contact_person": [
|
||||
"contact": [
|
||||
{ "name": "Charlie Brown", "id": "charlie" }
|
||||
],
|
||||
"dewars": [
|
||||
@ -145,7 +145,7 @@
|
||||
"tracking_number": "TRACK112233",
|
||||
"number_of_pucks": 7,
|
||||
"number_of_samples": 42,
|
||||
"contact_person": [
|
||||
"contact": [
|
||||
{ "name": "Charlie Brown", "id": "charlie" }
|
||||
],
|
||||
"return_address": [
|
||||
@ -166,7 +166,7 @@
|
||||
"tracking_number": "TRACK223344",
|
||||
"number_of_pucks": 5,
|
||||
"number_of_samples": 30,
|
||||
"contact_person": [
|
||||
"contact": [
|
||||
{ "name": "Charlie Brown", "id": "charlie" }
|
||||
],
|
||||
"return_address": [
|
||||
@ -187,7 +187,7 @@
|
||||
"tracking_number": "TRACK334455",
|
||||
"number_of_pucks": 8,
|
||||
"number_of_samples": 48,
|
||||
"contact_person": [
|
||||
"contact": [
|
||||
{ "name": "Charlie Brown", "id": "charlie" }
|
||||
],
|
||||
"return_address": [
|
||||
@ -208,7 +208,7 @@
|
||||
"tracking_number": "TRACK445566",
|
||||
"number_of_pucks": 6,
|
||||
"number_of_samples": 36,
|
||||
"contact_person": [
|
||||
"contact": [
|
||||
{ "name": "Charlie Brown", "id": "charlie" }
|
||||
],
|
||||
"return_address": [
|
||||
@ -229,7 +229,7 @@
|
||||
"tracking_number": "TRACK556677",
|
||||
"number_of_pucks": 4,
|
||||
"number_of_samples": 24,
|
||||
"contact_person": [
|
||||
"contact": [
|
||||
{ "name": "Charlie Brown", "id": "charlie" }
|
||||
],
|
||||
"return_address": [
|
||||
|
Reference in New Issue
Block a user