-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update destination attributes if internal id has changed (#626)
* Update if internal id has changed * resolving unique constraint issue * changing variable name * comment resolved * Test for update_destination_attributes function
- Loading branch information
1 parent
f76ce78
commit 13abf5a
Showing
3 changed files
with
159 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1696,6 +1696,75 @@ | |
'externalId': 'report 1256 - [email protected]' | ||
} | ||
], | ||
|
||
'custom_records': [ | ||
{ | ||
'recType': {'name': 'custom_type'}, | ||
'name': 'Type A', | ||
'internalId': '1', | ||
'isInactive': False | ||
}, | ||
{ | ||
'recType': {'name': 'custom_type'}, | ||
'name': 'Type B', | ||
'internalId': '22', # Changed from '2' to '22' | ||
'isInactive': False | ||
}, | ||
{ | ||
'recType': {'name': 'custom_type'}, | ||
'name': 'Type C', | ||
'internalId': '33', # Changed from '3' to '33' | ||
'isInactive': True | ||
}, | ||
{ | ||
'recType': {'name': 'custom_type'}, | ||
'name': 'Type D', | ||
'internalId': '4', | ||
'isInactive': False | ||
} | ||
], | ||
'custom_segment_destination_attributes':[ | ||
{ | ||
'attribute_type': 'CUSTOM_TYPE', | ||
'display_name': 'custom_type', | ||
'value': 'Type A', | ||
'destination_id': '1', | ||
'auto_created': False, | ||
'active': True, | ||
'detail': {}, | ||
'workspace_id': 1, | ||
}, | ||
{ | ||
'attribute_type': 'CUSTOM_TYPE', | ||
'display_name': 'custom_type', | ||
'value': 'Type B', | ||
'destination_id': '2', | ||
'auto_created': False, | ||
'active': True, | ||
'detail': {}, | ||
'workspace_id': 1, | ||
}, | ||
{ | ||
'attribute_type': 'CUSTOM_TYPE', | ||
'display_name': 'custom_type', | ||
'value': 'Type C', | ||
'destination_id': '3', | ||
'auto_created': False, | ||
'active': True, | ||
'detail': {}, | ||
'workspace_id': 1, | ||
}, | ||
{ | ||
'attribute_type': 'CUSTOM_TYPE', | ||
'display_name': 'custom_type', | ||
'value': 'Type D', | ||
'destination_id': '4', | ||
'auto_created': False, | ||
'active': True, | ||
'detail': {}, | ||
'workspace_id': 1, | ||
}, | ||
], | ||
"destination_attributes": [ | ||
{ | ||
'id': 6, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters