1
0
mirror of synced 2024-11-29 14:26:02 +03:00

Add responsible external_id field

This commit is contained in:
Pavel 2024-08-14 17:10:14 +03:00 committed by GitHub
commit 2640e661cf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 30 additions and 2 deletions

View File

@ -49,6 +49,15 @@ class Responsible implements ModelInterface
*/ */
private $type; private $type;
/**
* @var string $externalId
*
* @Type("string")
* @Accessor(getter="getExternalId",setter="setExternalId")
* @SkipWhenEmpty()
*/
private $externalId;
/** /**
* @return string|null * @return string|null
*/ */
@ -96,4 +105,20 @@ class Responsible implements ModelInterface
{ {
$this->type = $type; $this->type = $type;
} }
/**
* @return string|null
*/
public function getExternalId(): ?string
{
return $this->externalId;
}
/**
* @param string $externalId
*/
public function setExternalId(string $externalId): void
{
$this->externalId = $externalId;
}
} }

View File

@ -1 +1 @@
{"responsible":{"type":"user","id":4,"assigned_at":"2019-06-21T08:01:09Z"},"is_reassign":true,"previous_responsible":{"type":"user","id":12,"assigned_at":"2019-06-11T12:49:34Z"},"left_user_id":12} {"responsible":{"type":"user","id":4,"external_id": "4","assigned_at":"2019-06-21T08:01:09Z"},"is_reassign":true,"previous_responsible":{"type":"user","id":12,"external_id": "12","assigned_at":"2019-06-11T12:49:34Z"},"left_user_id":12}

View File

@ -1 +1 @@
{"previous_responsible":{"type":"user","id":12,"assigned_at":"2019-06-11T12:49:34Z"}} {"previous_responsible":{"type":"user","id":12,"external_id": "12","assigned_at":"2019-06-11T12:49:34Z"}}

View File

@ -11,6 +11,7 @@
"responsible": { "responsible": {
"type": "user", "type": "user",
"id": 12, "id": 12,
"external_id": "12",
"assigned_at": "2019-06-11T12:49:34.716716Z" "assigned_at": "2019-06-11T12:49:34.716716Z"
}, },
"is_active": true "is_active": true
@ -27,6 +28,7 @@
"responsible": { "responsible": {
"type": "user", "type": "user",
"id": 12, "id": 12,
"external_id": "12",
"assigned_at": "2019-06-11T08:40:14.136916Z" "assigned_at": "2019-06-11T08:40:14.136916Z"
}, },
"is_active": true "is_active": true
@ -43,6 +45,7 @@
"responsible": { "responsible": {
"type": "user", "type": "user",
"id": 12, "id": 12,
"external_id": "12",
"assigned_at": "2019-06-11T08:40:14Z" "assigned_at": "2019-06-11T08:40:14Z"
}, },
"is_active": true "is_active": true