restforce-db 2.2.2 → 2.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/restforce/db/associator.rb +1 -1
- data/lib/restforce/db/initializer.rb +2 -2
- data/lib/restforce/db/instances/active_record.rb +18 -8
- data/lib/restforce/db/instances/salesforce.rb +9 -0
- data/lib/restforce/db/synchronization_error.rb +40 -0
- data/lib/restforce/db/synchronizer.rb +15 -9
- data/lib/restforce/db/version.rb +1 -1
- data/lib/restforce/db.rb +9 -0
- data/test/cassettes/Restforce_DB_Associations_BelongsTo/with_an_inverse_mapping/_build/returns_an_associated_record_populated_with_the_Salesforce_attributes.yml +55 -55
- data/test/cassettes/Restforce_DB_Associations_BelongsTo/with_an_inverse_mapping/_build/when_no_salesforce_record_is_found_for_the_association/proceeds_without_constructing_any_records.yml +40 -40
- data/test/cassettes/Restforce_DB_Associations_BelongsTo/with_an_inverse_mapping/_build/when_the_associated_record_has_already_been_persisted/assigns_the_existing_record.yml +59 -59
- data/test/cassettes/Restforce_DB_Associations_BelongsTo/with_an_inverse_mapping/_build/when_the_associated_record_has_been_cached/uses_the_cached_record.yml +59 -59
- data/test/cassettes/Restforce_DB_Associations_BelongsTo/with_an_inverse_mapping/_build/when_the_association_is_non-building/proceeds_without_constructing_any_records.yml +50 -50
- data/test/cassettes/Restforce_DB_Associations_BelongsTo/with_an_inverse_mapping/_build/with_an_unrelated_association_mapping/proceeds_without_raising_an_error.yml +59 -59
- data/test/cassettes/Restforce_DB_Associations_BelongsTo/with_an_inverse_mapping/_lookups/returns_a_hash_of_the_associated_records_lookup_IDs.yml +41 -41
- data/test/cassettes/Restforce_DB_Associations_BelongsTo/with_an_inverse_mapping/_lookups/when_there_is_currently_no_associated_record/and_the_underlying_association_is_one-to-many/still_returns_a_nil_lookup_value_in_the_hash.yml +20 -20
- data/test/cassettes/Restforce_DB_Associations_BelongsTo/with_an_inverse_mapping/_lookups/when_there_is_currently_no_associated_record/returns_a_nil_lookup_value_in_the_hash.yml +23 -23
- data/test/cassettes/Restforce_DB_Associations_BelongsTo/with_an_inverse_mapping/_synced_for_/when_a_matching_associated_record_has_been_synchronized/returns_true.yml +58 -58
- data/test/cassettes/Restforce_DB_Associations_BelongsTo/with_an_inverse_mapping/_synced_for_/when_no_matching_associated_record_has_been_synchronized/returns_false.yml +58 -58
- data/test/cassettes/Restforce_DB_Associations_HasMany/with_an_inverse_mapping/_build/builds_a_number_of_associated_records_from_the_data_in_Salesforce.yml +98 -98
- data/test/cassettes/Restforce_DB_Associations_HasMany/with_an_inverse_mapping/_build/when_no_salesforce_record_is_found_for_the_association/proceeds_without_constructing_any_records.yml +40 -40
- data/test/cassettes/Restforce_DB_Associations_HasMany/with_an_inverse_mapping/_build/when_the_associated_records_have_alrady_been_persisted/constructs_the_association_from_the_existing_records.yml +98 -98
- data/test/cassettes/Restforce_DB_Associations_HasMany/with_an_inverse_mapping/_build/when_the_associated_records_have_been_cached/uses_the_cached_records.yml +98 -98
- data/test/cassettes/Restforce_DB_Associations_HasMany/with_an_inverse_mapping/_build/when_the_association_is_non-building/proceeds_without_constructing_any_records.yml +32 -32
- data/test/cassettes/Restforce_DB_Associations_HasMany/with_an_inverse_mapping/_synced_for_/when_a_matching_associated_record_has_been_synchronized/returns_true.yml +98 -98
- data/test/cassettes/Restforce_DB_Associations_HasMany/with_an_inverse_mapping/_synced_for_/when_no_matching_associated_record_has_been_synchronized/returns_false.yml +40 -40
- data/test/cassettes/Restforce_DB_Associations_HasOne/with_an_inverse_mapping/_build/and_a_nested_association_on_the_associated_mapping/recursively_builds_all_associations.yml +86 -86
- data/test/cassettes/Restforce_DB_Associations_HasOne/with_an_inverse_mapping/_build/returns_an_associated_record_populated_with_the_Salesforce_attributes.yml +59 -59
- data/test/cassettes/Restforce_DB_Associations_HasOne/with_an_inverse_mapping/_build/when_no_salesforce_record_is_found_for_the_association/proceeds_without_constructing_any_records.yml +40 -40
- data/test/cassettes/Restforce_DB_Associations_HasOne/with_an_inverse_mapping/_build/when_the_associated_record_has_already_been_persisted/assigns_the_existing_record.yml +59 -59
- data/test/cassettes/Restforce_DB_Associations_HasOne/with_an_inverse_mapping/_build/when_the_associated_record_has_been_cached/uses_the_cached_record.yml +59 -59
- data/test/cassettes/Restforce_DB_Associations_HasOne/with_an_inverse_mapping/_build/when_the_association_is_non-building/proceeds_without_constructing_any_records.yml +50 -50
- data/test/cassettes/Restforce_DB_Associations_HasOne/with_an_inverse_mapping/_synced_for_/when_a_matching_associated_record_has_been_synchronized/returns_true.yml +59 -59
- data/test/cassettes/Restforce_DB_Associations_HasOne/with_an_inverse_mapping/_synced_for_/when_no_matching_associated_record_has_been_synchronized/returns_false.yml +59 -59
- data/test/cassettes/Restforce_DB_Associator/_run/given_a_BelongsTo_association/given_another_record_for_association/when_the_Salesforce_association_is_out_of_date/updates_the_association_ID_in_Salesforce.yml +103 -103
- data/test/cassettes/Restforce_DB_Associator/_run/given_a_BelongsTo_association/given_another_record_for_association/when_the_database_association_is_out_of_date/updates_the_associated_record_in_the_database.yml +112 -112
- data/test/cassettes/Restforce_DB_Cleaner/_run/given_a_synchronized_Salesforce_record/when_the_mapping_has_no_conditions/does_not_drop_the_synchronized_database_record.yml +23 -23
- data/test/cassettes/Restforce_DB_Cleaner/_run/given_a_synchronized_Salesforce_record/when_the_record_does_not_meet_the_mapping_conditions/but_meets_conditions_for_a_parallel_mapping/does_not_drop_the_synchronized_database_record.yml +43 -45
- data/test/cassettes/Restforce_DB_Cleaner/_run/given_a_synchronized_Salesforce_record/when_the_record_does_not_meet_the_mapping_conditions/drops_the_synchronized_database_record.yml +41 -41
- data/test/cassettes/Restforce_DB_Cleaner/_run/given_a_synchronized_Salesforce_record/when_the_record_has_been_deleted_in_Salesforce/drops_the_synchronized_database_record.yml +20 -20
- data/test/cassettes/Restforce_DB_Cleaner/_run/given_a_synchronized_Salesforce_record/when_the_record_meets_the_mapping_conditions/does_not_drop_the_synchronized_database_record.yml +41 -41
- data/test/cassettes/Restforce_DB_Collector/_run/given_a_Salesforce_record_with_an_associated_database_record/returns_the_attributes_from_both_records.yml +41 -41
- data/test/cassettes/Restforce_DB_Collector/_run/given_an_existing_Salesforce_record/returns_the_attributes_from_the_Salesforce_record.yml +41 -41
- data/test/cassettes/Restforce_DB_Collector/_run/given_an_existing_database_record/returns_the_attributes_from_the_database_record.yml +15 -15
- data/test/cassettes/Restforce_DB_Initializer/_run/given_an_existing_Salesforce_record/for_a_Passive_strategy/does_not_create_a_database_record.yml +23 -23
- data/test/cassettes/Restforce_DB_Initializer/_run/given_an_existing_Salesforce_record/for_an_Always_strategy/creates_a_matching_database_record.yml +32 -33
- data/test/cassettes/Restforce_DB_Initializer/_run/given_an_existing_database_record/for_an_Always_strategy/populates_Salesforce_with_the_new_record.yml +59 -59
- data/test/cassettes/Restforce_DB_Instances_Salesforce/_synced_/when_a_matching_database_record_exists/returns_true.yml +32 -32
- data/test/cassettes/Restforce_DB_Instances_Salesforce/_synced_/when_no_matching_database_record_exists/returns_false.yml +32 -32
- data/test/cassettes/Restforce_DB_Instances_Salesforce/_update_/updates_the_local_record_with_the_passed_attributes.yml +49 -49
- data/test/cassettes/Restforce_DB_Instances_Salesforce/_update_/updates_the_record_in_Salesforce_with_the_passed_attributes.yml +58 -58
- data/test/cassettes/Restforce_DB_Instances_Salesforce/_updated_internally_/when_another_user_made_the_last_change/returns_false.yml +119 -0
- data/test/cassettes/Restforce_DB_Instances_Salesforce/_updated_internally_/when_our_client_made_the_last_change/returns_true.yml +158 -0
- data/test/cassettes/Restforce_DB_RecordTypes_Salesforce/_all/returns_a_list_of_the_existing_records_in_Salesforce.yml +32 -32
- data/test/cassettes/Restforce_DB_RecordTypes_Salesforce/_create_/creates_a_record_in_Salesforce_from_the_passed_database_record_s_attributes.yml +41 -41
- data/test/cassettes/Restforce_DB_RecordTypes_Salesforce/_create_/updates_the_database_record_with_the_Salesforce_record_s_ID.yml +41 -41
- data/test/cassettes/Restforce_DB_RecordTypes_Salesforce/_find/finds_existing_records_in_Salesforce.yml +32 -32
- data/test/cassettes/Restforce_DB_RecordTypes_Salesforce/_find/given_a_set_of_mapping_conditions/when_a_record_does_not_meet_the_conditions/does_not_find_the_record.yml +31 -31
- data/test/cassettes/Restforce_DB_RecordTypes_Salesforce/_find/given_a_set_of_mapping_conditions/when_a_record_meets_the_conditions/finds_the_record.yml +32 -32
- data/test/cassettes/Restforce_DB_RecordTypes_Salesforce/_find/returns_nil_when_no_matching_record_exists.yml +14 -14
- data/test/cassettes/Restforce_DB_Strategies_Always/_build_/given_a_Salesforce_record/wants_to_build_a_new_matching_record.yml +32 -32
- data/test/cassettes/Restforce_DB_Strategies_Always/_build_/given_a_Salesforce_record/with_a_corresponding_database_record/does_not_want_to_build_a_new_record.yml +32 -32
- data/test/cassettes/Restforce_DB_Strategies_Associated/_build_/given_an_inverse_mapping/with_a_synchronized_association_record/wants_to_build_a_new_record.yml +59 -59
- data/test/cassettes/Restforce_DB_Strategies_Associated/_build_/given_an_inverse_mapping/with_an_existing_database_record/does_not_want_to_build_a_new_record.yml +50 -50
- data/test/cassettes/Restforce_DB_Strategies_Associated/_build_/given_an_inverse_mapping/with_no_synchronized_association_record/does_not_want_to_build_a_new_record.yml +59 -59
- data/test/cassettes/Restforce_DB_Synchronizer/_run/given_a_Salesforce_record_with_an_associated_database_record/updates_the_database_record.yml +125 -49
- data/test/cassettes/Restforce_DB_Synchronizer/_run/given_a_Salesforce_record_with_an_associated_database_record/updates_the_salesforce_record.yml +58 -58
- data/test/cassettes/Restforce_DB_Synchronizer/_run/given_a_Salesforce_record_with_an_associated_database_record/when_the_change_timestamp_is_stale/does_not_update_the_database_record.yml +125 -36
- data/test/cassettes/Restforce_DB_Synchronizer/_run/given_a_Salesforce_record_with_an_associated_database_record/when_the_change_timestamp_is_stale/does_not_update_the_salesforce_record.yml +44 -44
- data/test/cassettes/Restforce_DB_Synchronizer/_run/given_a_Salesforce_record_with_an_associated_database_record/when_the_changes_are_current/updates_the_database_record.yml +323 -0
- data/test/cassettes/Restforce_DB_Synchronizer/_run/given_a_Salesforce_record_with_an_associated_database_record/when_the_changes_are_current/updates_the_salesforce_record.yml +286 -0
- data/test/cassettes/Restforce_DB_Synchronizer/_run/given_a_Salesforce_record_with_no_associated_database_record/does_nothing_for_this_specific_mapping.yml +41 -41
- data/test/lib/restforce/db/instances/active_record_test.rb +44 -0
- data/test/lib/restforce/db/instances/salesforce_test.rb +20 -0
- data/test/lib/restforce/db/synchronizer_test.rb +25 -13
- metadata +7 -2
@@ -21,10 +21,10 @@ http_interactions:
|
|
21
21
|
message: OK
|
22
22
|
headers:
|
23
23
|
Date:
|
24
|
-
-
|
24
|
+
- Mon, 08 Jun 2015 22:13:18 GMT
|
25
25
|
Set-Cookie:
|
26
|
-
- BrowserId=
|
27
|
-
|
26
|
+
- BrowserId=WSbuxYHKQISF8AxVDprbbw;Path=/;Domain=.salesforce.com;Expires=Fri,
|
27
|
+
07-Aug-2015 22:13:18 GMT
|
28
28
|
Expires:
|
29
29
|
- Thu, 01 Jan 1970 00:00:00 GMT
|
30
30
|
Pragma:
|
@@ -37,9 +37,9 @@ http_interactions:
|
|
37
37
|
- chunked
|
38
38
|
body:
|
39
39
|
encoding: ASCII-8BIT
|
40
|
-
string: '{"id":"https://login.salesforce.com/id/00D1a000000H3O9EAK/0051a000000UGT8AAO","issued_at":"
|
41
|
-
http_version:
|
42
|
-
recorded_at:
|
40
|
+
string: '{"id":"https://login.salesforce.com/id/00D1a000000H3O9EAK/0051a000000UGT8AAO","issued_at":"1433801599030","token_type":"Bearer","instance_url":"https://<host>","signature":"FHHPdxPRRW7n4qK7lpAwlKjjdYYuGl0PaPTlYxKmBI4=","access_token":"00D1a000000H3O9!AQ4AQH0rZGqBVji7vO4sB8J1_YW.g5S2vIbe9IaUgwHpwLPEdpfIcj9Ngpc2CndFvJZMwVIIp15.yQQOil19Qc2MuedbnlQz"}'
|
41
|
+
http_version:
|
42
|
+
recorded_at: Mon, 08 Jun 2015 22:13:20 GMT
|
43
43
|
- request:
|
44
44
|
method: post
|
45
45
|
uri: https://<host>/services/data/<api_version>/sobjects/CustomObject__c
|
@@ -52,7 +52,7 @@ http_interactions:
|
|
52
52
|
Content-Type:
|
53
53
|
- application/json
|
54
54
|
Authorization:
|
55
|
-
- OAuth 00D1a000000H3O9!
|
55
|
+
- OAuth 00D1a000000H3O9!AQ4AQH0rZGqBVji7vO4sB8J1_YW.g5S2vIbe9IaUgwHpwLPEdpfIcj9Ngpc2CndFvJZMwVIIp15.yQQOil19Qc2MuedbnlQz
|
56
56
|
Accept-Encoding:
|
57
57
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
58
58
|
Accept:
|
@@ -63,38 +63,38 @@ http_interactions:
|
|
63
63
|
message: Created
|
64
64
|
headers:
|
65
65
|
Date:
|
66
|
-
-
|
66
|
+
- Mon, 08 Jun 2015 22:13:19 GMT
|
67
67
|
Set-Cookie:
|
68
|
-
- BrowserId=
|
69
|
-
|
68
|
+
- BrowserId=9zOo7scDSFu2SsxNNDPdtw;Path=/;Domain=.salesforce.com;Expires=Fri,
|
69
|
+
07-Aug-2015 22:13:19 GMT
|
70
70
|
Expires:
|
71
71
|
- Thu, 01 Jan 1970 00:00:00 GMT
|
72
72
|
Sforce-Limit-Info:
|
73
|
-
- api-usage=
|
73
|
+
- api-usage=95/15000
|
74
74
|
Location:
|
75
|
-
- "/services/data/<api_version>/sobjects/CustomObject__c/
|
75
|
+
- "/services/data/<api_version>/sobjects/CustomObject__c/a001a000001cF7aAAE"
|
76
76
|
Content-Type:
|
77
77
|
- application/json;charset=UTF-8
|
78
78
|
Transfer-Encoding:
|
79
79
|
- chunked
|
80
80
|
body:
|
81
81
|
encoding: ASCII-8BIT
|
82
|
-
string: '{"id":"
|
83
|
-
http_version:
|
84
|
-
recorded_at:
|
82
|
+
string: '{"id":"a001a000001cF7aAAE","success":true,"errors":[]}'
|
83
|
+
http_version:
|
84
|
+
recorded_at: Mon, 08 Jun 2015 22:13:20 GMT
|
85
85
|
- request:
|
86
86
|
method: post
|
87
87
|
uri: https://<host>/services/data/<api_version>/sobjects/CustomObjectDetail__c
|
88
88
|
body:
|
89
89
|
encoding: UTF-8
|
90
|
-
string: '{"Name":"First Detail","CustomObject__c":"
|
90
|
+
string: '{"Name":"First Detail","CustomObject__c":"a001a000001cF7aAAE"}'
|
91
91
|
headers:
|
92
92
|
User-Agent:
|
93
93
|
- Faraday v0.9.1
|
94
94
|
Content-Type:
|
95
95
|
- application/json
|
96
96
|
Authorization:
|
97
|
-
- OAuth 00D1a000000H3O9!
|
97
|
+
- OAuth 00D1a000000H3O9!AQ4AQH0rZGqBVji7vO4sB8J1_YW.g5S2vIbe9IaUgwHpwLPEdpfIcj9Ngpc2CndFvJZMwVIIp15.yQQOil19Qc2MuedbnlQz
|
98
98
|
Accept-Encoding:
|
99
99
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
100
100
|
Accept:
|
@@ -105,38 +105,38 @@ http_interactions:
|
|
105
105
|
message: Created
|
106
106
|
headers:
|
107
107
|
Date:
|
108
|
-
-
|
108
|
+
- Mon, 08 Jun 2015 22:13:19 GMT
|
109
109
|
Set-Cookie:
|
110
|
-
- BrowserId=
|
111
|
-
|
110
|
+
- BrowserId=TObvZISiSI2Fx5APzTxZHw;Path=/;Domain=.salesforce.com;Expires=Fri,
|
111
|
+
07-Aug-2015 22:13:19 GMT
|
112
112
|
Expires:
|
113
113
|
- Thu, 01 Jan 1970 00:00:00 GMT
|
114
114
|
Sforce-Limit-Info:
|
115
|
-
- api-usage=
|
115
|
+
- api-usage=94/15000
|
116
116
|
Location:
|
117
|
-
- "/services/data/<api_version>/sobjects/CustomObjectDetail__c/
|
117
|
+
- "/services/data/<api_version>/sobjects/CustomObjectDetail__c/a011a000001FiQHAA0"
|
118
118
|
Content-Type:
|
119
119
|
- application/json;charset=UTF-8
|
120
120
|
Transfer-Encoding:
|
121
121
|
- chunked
|
122
122
|
body:
|
123
123
|
encoding: ASCII-8BIT
|
124
|
-
string: '{"id":"
|
125
|
-
http_version:
|
126
|
-
recorded_at:
|
124
|
+
string: '{"id":"a011a000001FiQHAA0","success":true,"errors":[]}'
|
125
|
+
http_version:
|
126
|
+
recorded_at: Mon, 08 Jun 2015 22:13:21 GMT
|
127
127
|
- request:
|
128
128
|
method: post
|
129
129
|
uri: https://<host>/services/data/<api_version>/sobjects/CustomObjectDetail__c
|
130
130
|
body:
|
131
131
|
encoding: UTF-8
|
132
|
-
string: '{"Name":"Second Detail","CustomObject__c":"
|
132
|
+
string: '{"Name":"Second Detail","CustomObject__c":"a001a000001cF7aAAE"}'
|
133
133
|
headers:
|
134
134
|
User-Agent:
|
135
135
|
- Faraday v0.9.1
|
136
136
|
Content-Type:
|
137
137
|
- application/json
|
138
138
|
Authorization:
|
139
|
-
- OAuth 00D1a000000H3O9!
|
139
|
+
- OAuth 00D1a000000H3O9!AQ4AQH0rZGqBVji7vO4sB8J1_YW.g5S2vIbe9IaUgwHpwLPEdpfIcj9Ngpc2CndFvJZMwVIIp15.yQQOil19Qc2MuedbnlQz
|
140
140
|
Accept-Encoding:
|
141
141
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
142
142
|
Accept:
|
@@ -147,38 +147,38 @@ http_interactions:
|
|
147
147
|
message: Created
|
148
148
|
headers:
|
149
149
|
Date:
|
150
|
-
-
|
150
|
+
- Mon, 08 Jun 2015 22:13:19 GMT
|
151
151
|
Set-Cookie:
|
152
|
-
- BrowserId=
|
153
|
-
|
152
|
+
- BrowserId=SyQYhUk4SeKFl8nzlmeLWw;Path=/;Domain=.salesforce.com;Expires=Fri,
|
153
|
+
07-Aug-2015 22:13:19 GMT
|
154
154
|
Expires:
|
155
155
|
- Thu, 01 Jan 1970 00:00:00 GMT
|
156
156
|
Sforce-Limit-Info:
|
157
|
-
- api-usage=
|
157
|
+
- api-usage=97/15000
|
158
158
|
Location:
|
159
|
-
- "/services/data/<api_version>/sobjects/CustomObjectDetail__c/
|
159
|
+
- "/services/data/<api_version>/sobjects/CustomObjectDetail__c/a011a000001FiQMAA0"
|
160
160
|
Content-Type:
|
161
161
|
- application/json;charset=UTF-8
|
162
162
|
Transfer-Encoding:
|
163
163
|
- chunked
|
164
164
|
body:
|
165
165
|
encoding: ASCII-8BIT
|
166
|
-
string: '{"id":"
|
167
|
-
http_version:
|
168
|
-
recorded_at:
|
166
|
+
string: '{"id":"a011a000001FiQMAA0","success":true,"errors":[]}'
|
167
|
+
http_version:
|
168
|
+
recorded_at: Mon, 08 Jun 2015 22:13:21 GMT
|
169
169
|
- request:
|
170
170
|
method: post
|
171
171
|
uri: https://<host>/services/data/<api_version>/sobjects/CustomObjectDetail__c
|
172
172
|
body:
|
173
173
|
encoding: UTF-8
|
174
|
-
string: '{"Name":"Third Detail","CustomObject__c":"
|
174
|
+
string: '{"Name":"Third Detail","CustomObject__c":"a001a000001cF7aAAE"}'
|
175
175
|
headers:
|
176
176
|
User-Agent:
|
177
177
|
- Faraday v0.9.1
|
178
178
|
Content-Type:
|
179
179
|
- application/json
|
180
180
|
Authorization:
|
181
|
-
- OAuth 00D1a000000H3O9!
|
181
|
+
- OAuth 00D1a000000H3O9!AQ4AQH0rZGqBVji7vO4sB8J1_YW.g5S2vIbe9IaUgwHpwLPEdpfIcj9Ngpc2CndFvJZMwVIIp15.yQQOil19Qc2MuedbnlQz
|
182
182
|
Accept-Encoding:
|
183
183
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
184
184
|
Accept:
|
@@ -189,28 +189,28 @@ http_interactions:
|
|
189
189
|
message: Created
|
190
190
|
headers:
|
191
191
|
Date:
|
192
|
-
-
|
192
|
+
- Mon, 08 Jun 2015 22:13:19 GMT
|
193
193
|
Set-Cookie:
|
194
|
-
- BrowserId=
|
195
|
-
|
194
|
+
- BrowserId=kh0Y0mM4SXSZP1tHKXxOKA;Path=/;Domain=.salesforce.com;Expires=Fri,
|
195
|
+
07-Aug-2015 22:13:19 GMT
|
196
196
|
Expires:
|
197
197
|
- Thu, 01 Jan 1970 00:00:00 GMT
|
198
198
|
Sforce-Limit-Info:
|
199
|
-
- api-usage=
|
199
|
+
- api-usage=100/15000
|
200
200
|
Location:
|
201
|
-
- "/services/data/<api_version>/sobjects/CustomObjectDetail__c/
|
201
|
+
- "/services/data/<api_version>/sobjects/CustomObjectDetail__c/a011a000001FiQRAA0"
|
202
202
|
Content-Type:
|
203
203
|
- application/json;charset=UTF-8
|
204
204
|
Transfer-Encoding:
|
205
205
|
- chunked
|
206
206
|
body:
|
207
207
|
encoding: ASCII-8BIT
|
208
|
-
string: '{"id":"
|
209
|
-
http_version:
|
210
|
-
recorded_at:
|
208
|
+
string: '{"id":"a011a000001FiQRAA0","success":true,"errors":[]}'
|
209
|
+
http_version:
|
210
|
+
recorded_at: Mon, 08 Jun 2015 22:13:21 GMT
|
211
211
|
- request:
|
212
212
|
method: get
|
213
|
-
uri: https://<host>/services/data/<api_version>/query?q=select%20Id,%20SystemModstamp,%20Name,%20Example_Field__c%20from%20CustomObject__c%20where%20Id%20=%20%
|
213
|
+
uri: https://<host>/services/data/<api_version>/query?q=select%20Id,%20SystemModstamp,%20LastModifiedById,%20Name,%20Example_Field__c%20from%20CustomObject__c%20where%20Id%20=%20%27a001a000001cF7aAAE%27
|
214
214
|
body:
|
215
215
|
encoding: US-ASCII
|
216
216
|
string: ''
|
@@ -218,7 +218,7 @@ http_interactions:
|
|
218
218
|
User-Agent:
|
219
219
|
- Faraday v0.9.1
|
220
220
|
Authorization:
|
221
|
-
- OAuth 00D1a000000H3O9!
|
221
|
+
- OAuth 00D1a000000H3O9!AQ4AQH0rZGqBVji7vO4sB8J1_YW.g5S2vIbe9IaUgwHpwLPEdpfIcj9Ngpc2CndFvJZMwVIIp15.yQQOil19Qc2MuedbnlQz
|
222
222
|
Accept-Encoding:
|
223
223
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
224
224
|
Accept:
|
@@ -229,27 +229,27 @@ http_interactions:
|
|
229
229
|
message: OK
|
230
230
|
headers:
|
231
231
|
Date:
|
232
|
-
-
|
232
|
+
- Mon, 08 Jun 2015 22:13:20 GMT
|
233
233
|
Set-Cookie:
|
234
|
-
- BrowserId=
|
235
|
-
|
234
|
+
- BrowserId=xo0ToImJR9Gq8Ee8pSWPWg;Path=/;Domain=.salesforce.com;Expires=Fri,
|
235
|
+
07-Aug-2015 22:13:20 GMT
|
236
236
|
Expires:
|
237
237
|
- Thu, 01 Jan 1970 00:00:00 GMT
|
238
238
|
Sforce-Limit-Info:
|
239
|
-
- api-usage=
|
239
|
+
- api-usage=99/15000
|
240
240
|
Content-Type:
|
241
241
|
- application/json;charset=UTF-8
|
242
242
|
Transfer-Encoding:
|
243
243
|
- chunked
|
244
244
|
body:
|
245
245
|
encoding: ASCII-8BIT
|
246
|
-
string: '{"totalSize":1,"done":true,"records":[{"attributes":{"type":"CustomObject__c","url":"/services/data/<api_version>/sobjects/CustomObject__c/
|
246
|
+
string: '{"totalSize":1,"done":true,"records":[{"attributes":{"type":"CustomObject__c","url":"/services/data/<api_version>/sobjects/CustomObject__c/a001a000001cF7aAAE"},"Id":"a001a000001cF7aAAE","SystemModstamp":"2015-06-08T22:13:19.000+0000","LastModifiedById":"0051a000000UGT8AAO","Name":"Sample
|
247
247
|
object","Example_Field__c":null}]}'
|
248
|
-
http_version:
|
249
|
-
recorded_at:
|
248
|
+
http_version:
|
249
|
+
recorded_at: Mon, 08 Jun 2015 22:13:21 GMT
|
250
250
|
- request:
|
251
251
|
method: get
|
252
|
-
uri: https://<host>/services/data/<api_version>/query?q=select%20Id,%20SystemModstamp,%20Name,%20CustomObject__c%20from%20CustomObjectDetail__c%20where%20CustomObject__c%20=%20%
|
252
|
+
uri: https://<host>/services/data/<api_version>/query?q=select%20Id,%20SystemModstamp,%20LastModifiedById,%20Name,%20CustomObject__c%20from%20CustomObjectDetail__c%20where%20CustomObject__c%20=%20%27a001a000001cF7aAAE%27
|
253
253
|
body:
|
254
254
|
encoding: US-ASCII
|
255
255
|
string: ''
|
@@ -257,7 +257,7 @@ http_interactions:
|
|
257
257
|
User-Agent:
|
258
258
|
- Faraday v0.9.1
|
259
259
|
Authorization:
|
260
|
-
- OAuth 00D1a000000H3O9!
|
260
|
+
- OAuth 00D1a000000H3O9!AQ4AQH0rZGqBVji7vO4sB8J1_YW.g5S2vIbe9IaUgwHpwLPEdpfIcj9Ngpc2CndFvJZMwVIIp15.yQQOil19Qc2MuedbnlQz
|
261
261
|
Accept-Encoding:
|
262
262
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
263
263
|
Accept:
|
@@ -268,29 +268,29 @@ http_interactions:
|
|
268
268
|
message: OK
|
269
269
|
headers:
|
270
270
|
Date:
|
271
|
-
-
|
271
|
+
- Mon, 08 Jun 2015 22:13:20 GMT
|
272
272
|
Set-Cookie:
|
273
|
-
- BrowserId=
|
274
|
-
|
273
|
+
- BrowserId=sZr0iPH5Q6aDWF-7DPa55g;Path=/;Domain=.salesforce.com;Expires=Fri,
|
274
|
+
07-Aug-2015 22:13:20 GMT
|
275
275
|
Expires:
|
276
276
|
- Thu, 01 Jan 1970 00:00:00 GMT
|
277
277
|
Sforce-Limit-Info:
|
278
|
-
- api-usage=
|
278
|
+
- api-usage=102/15000
|
279
279
|
Content-Type:
|
280
280
|
- application/json;charset=UTF-8
|
281
281
|
Transfer-Encoding:
|
282
282
|
- chunked
|
283
283
|
body:
|
284
284
|
encoding: ASCII-8BIT
|
285
|
-
string: '{"totalSize":3,"done":true,"records":[{"attributes":{"type":"CustomObjectDetail__c","url":"/services/data/<api_version>/sobjects/CustomObjectDetail__c/
|
286
|
-
Detail","CustomObject__c":"
|
287
|
-
Detail","CustomObject__c":"
|
288
|
-
Detail","CustomObject__c":"
|
289
|
-
http_version:
|
290
|
-
recorded_at:
|
285
|
+
string: '{"totalSize":3,"done":true,"records":[{"attributes":{"type":"CustomObjectDetail__c","url":"/services/data/<api_version>/sobjects/CustomObjectDetail__c/a011a000001FiQRAA0"},"Id":"a011a000001FiQRAA0","SystemModstamp":"2015-06-08T22:13:19.000+0000","LastModifiedById":"0051a000000UGT8AAO","Name":"Third
|
286
|
+
Detail","CustomObject__c":"a001a000001cF7aAAE"},{"attributes":{"type":"CustomObjectDetail__c","url":"/services/data/<api_version>/sobjects/CustomObjectDetail__c/a011a000001FiQMAA0"},"Id":"a011a000001FiQMAA0","SystemModstamp":"2015-06-08T22:13:19.000+0000","LastModifiedById":"0051a000000UGT8AAO","Name":"Second
|
287
|
+
Detail","CustomObject__c":"a001a000001cF7aAAE"},{"attributes":{"type":"CustomObjectDetail__c","url":"/services/data/<api_version>/sobjects/CustomObjectDetail__c/a011a000001FiQHAA0"},"Id":"a011a000001FiQHAA0","SystemModstamp":"2015-06-08T22:13:19.000+0000","LastModifiedById":"0051a000000UGT8AAO","Name":"First
|
288
|
+
Detail","CustomObject__c":"a001a000001cF7aAAE"}]}'
|
289
|
+
http_version:
|
290
|
+
recorded_at: Mon, 08 Jun 2015 22:13:21 GMT
|
291
291
|
- request:
|
292
292
|
method: delete
|
293
|
-
uri: https://<host>/services/data/<api_version>/sobjects/CustomObject__c/
|
293
|
+
uri: https://<host>/services/data/<api_version>/sobjects/CustomObject__c/a001a000001cF7aAAE
|
294
294
|
body:
|
295
295
|
encoding: US-ASCII
|
296
296
|
string: ''
|
@@ -298,7 +298,7 @@ http_interactions:
|
|
298
298
|
User-Agent:
|
299
299
|
- Faraday v0.9.1
|
300
300
|
Authorization:
|
301
|
-
- OAuth 00D1a000000H3O9!
|
301
|
+
- OAuth 00D1a000000H3O9!AQ4AQH0rZGqBVji7vO4sB8J1_YW.g5S2vIbe9IaUgwHpwLPEdpfIcj9Ngpc2CndFvJZMwVIIp15.yQQOil19Qc2MuedbnlQz
|
302
302
|
Accept-Encoding:
|
303
303
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
304
304
|
Accept:
|
@@ -309,22 +309,22 @@ http_interactions:
|
|
309
309
|
message: No Content
|
310
310
|
headers:
|
311
311
|
Date:
|
312
|
-
-
|
312
|
+
- Mon, 08 Jun 2015 22:13:20 GMT
|
313
313
|
Set-Cookie:
|
314
|
-
- BrowserId=
|
315
|
-
|
314
|
+
- BrowserId=AQ9GAhEOS0OBejScOcNyKg;Path=/;Domain=.salesforce.com;Expires=Fri,
|
315
|
+
07-Aug-2015 22:13:20 GMT
|
316
316
|
Expires:
|
317
317
|
- Thu, 01 Jan 1970 00:00:00 GMT
|
318
318
|
Sforce-Limit-Info:
|
319
|
-
- api-usage=
|
319
|
+
- api-usage=100/15000
|
320
320
|
body:
|
321
321
|
encoding: UTF-8
|
322
322
|
string: ''
|
323
|
-
http_version:
|
324
|
-
recorded_at:
|
323
|
+
http_version:
|
324
|
+
recorded_at: Mon, 08 Jun 2015 22:13:22 GMT
|
325
325
|
- request:
|
326
326
|
method: delete
|
327
|
-
uri: https://<host>/services/data/<api_version>/sobjects/CustomObjectDetail__c/
|
327
|
+
uri: https://<host>/services/data/<api_version>/sobjects/CustomObjectDetail__c/a011a000001FiQHAA0
|
328
328
|
body:
|
329
329
|
encoding: US-ASCII
|
330
330
|
string: ''
|
@@ -332,7 +332,7 @@ http_interactions:
|
|
332
332
|
User-Agent:
|
333
333
|
- Faraday v0.9.1
|
334
334
|
Authorization:
|
335
|
-
- OAuth 00D1a000000H3O9!
|
335
|
+
- OAuth 00D1a000000H3O9!AQ4AQH0rZGqBVji7vO4sB8J1_YW.g5S2vIbe9IaUgwHpwLPEdpfIcj9Ngpc2CndFvJZMwVIIp15.yQQOil19Qc2MuedbnlQz
|
336
336
|
Accept-Encoding:
|
337
337
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
338
338
|
Accept:
|
@@ -343,14 +343,14 @@ http_interactions:
|
|
343
343
|
message: Not Found
|
344
344
|
headers:
|
345
345
|
Date:
|
346
|
-
-
|
346
|
+
- Mon, 08 Jun 2015 22:13:20 GMT
|
347
347
|
Set-Cookie:
|
348
|
-
- BrowserId=
|
349
|
-
|
348
|
+
- BrowserId=8m4bP-JTSa2-ZFd09j4IMg;Path=/;Domain=.salesforce.com;Expires=Fri,
|
349
|
+
07-Aug-2015 22:13:20 GMT
|
350
350
|
Expires:
|
351
351
|
- Thu, 01 Jan 1970 00:00:00 GMT
|
352
352
|
Sforce-Limit-Info:
|
353
|
-
- api-usage=
|
353
|
+
- api-usage=101/15000
|
354
354
|
Content-Type:
|
355
355
|
- application/json;charset=UTF-8
|
356
356
|
Transfer-Encoding:
|
@@ -358,11 +358,11 @@ http_interactions:
|
|
358
358
|
body:
|
359
359
|
encoding: UTF-8
|
360
360
|
string: '[{"message":"entity is deleted","errorCode":"ENTITY_IS_DELETED","fields":[]}]'
|
361
|
-
http_version:
|
362
|
-
recorded_at:
|
361
|
+
http_version:
|
362
|
+
recorded_at: Mon, 08 Jun 2015 22:13:22 GMT
|
363
363
|
- request:
|
364
364
|
method: delete
|
365
|
-
uri: https://<host>/services/data/<api_version>/sobjects/CustomObjectDetail__c/
|
365
|
+
uri: https://<host>/services/data/<api_version>/sobjects/CustomObjectDetail__c/a011a000001FiQMAA0
|
366
366
|
body:
|
367
367
|
encoding: US-ASCII
|
368
368
|
string: ''
|
@@ -370,7 +370,7 @@ http_interactions:
|
|
370
370
|
User-Agent:
|
371
371
|
- Faraday v0.9.1
|
372
372
|
Authorization:
|
373
|
-
- OAuth 00D1a000000H3O9!
|
373
|
+
- OAuth 00D1a000000H3O9!AQ4AQH0rZGqBVji7vO4sB8J1_YW.g5S2vIbe9IaUgwHpwLPEdpfIcj9Ngpc2CndFvJZMwVIIp15.yQQOil19Qc2MuedbnlQz
|
374
374
|
Accept-Encoding:
|
375
375
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
376
376
|
Accept:
|
@@ -381,14 +381,14 @@ http_interactions:
|
|
381
381
|
message: Not Found
|
382
382
|
headers:
|
383
383
|
Date:
|
384
|
-
-
|
384
|
+
- Mon, 08 Jun 2015 22:13:21 GMT
|
385
385
|
Set-Cookie:
|
386
|
-
- BrowserId=
|
387
|
-
|
386
|
+
- BrowserId=AZUGwXylSZS9N6-7k_h5yA;Path=/;Domain=.salesforce.com;Expires=Fri,
|
387
|
+
07-Aug-2015 22:13:21 GMT
|
388
388
|
Expires:
|
389
389
|
- Thu, 01 Jan 1970 00:00:00 GMT
|
390
390
|
Sforce-Limit-Info:
|
391
|
-
- api-usage=
|
391
|
+
- api-usage=108/15000
|
392
392
|
Content-Type:
|
393
393
|
- application/json;charset=UTF-8
|
394
394
|
Transfer-Encoding:
|
@@ -396,11 +396,11 @@ http_interactions:
|
|
396
396
|
body:
|
397
397
|
encoding: UTF-8
|
398
398
|
string: '[{"message":"entity is deleted","errorCode":"ENTITY_IS_DELETED","fields":[]}]'
|
399
|
-
http_version:
|
400
|
-
recorded_at:
|
399
|
+
http_version:
|
400
|
+
recorded_at: Mon, 08 Jun 2015 22:13:22 GMT
|
401
401
|
- request:
|
402
402
|
method: delete
|
403
|
-
uri: https://<host>/services/data/<api_version>/sobjects/CustomObjectDetail__c/
|
403
|
+
uri: https://<host>/services/data/<api_version>/sobjects/CustomObjectDetail__c/a011a000001FiQRAA0
|
404
404
|
body:
|
405
405
|
encoding: US-ASCII
|
406
406
|
string: ''
|
@@ -408,7 +408,7 @@ http_interactions:
|
|
408
408
|
User-Agent:
|
409
409
|
- Faraday v0.9.1
|
410
410
|
Authorization:
|
411
|
-
- OAuth 00D1a000000H3O9!
|
411
|
+
- OAuth 00D1a000000H3O9!AQ4AQH0rZGqBVji7vO4sB8J1_YW.g5S2vIbe9IaUgwHpwLPEdpfIcj9Ngpc2CndFvJZMwVIIp15.yQQOil19Qc2MuedbnlQz
|
412
412
|
Accept-Encoding:
|
413
413
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
414
414
|
Accept:
|
@@ -419,14 +419,14 @@ http_interactions:
|
|
419
419
|
message: Not Found
|
420
420
|
headers:
|
421
421
|
Date:
|
422
|
-
-
|
422
|
+
- Mon, 08 Jun 2015 22:13:21 GMT
|
423
423
|
Set-Cookie:
|
424
|
-
- BrowserId=
|
425
|
-
|
424
|
+
- BrowserId=N6XCxGnsTsaiBc9bOvRzaA;Path=/;Domain=.salesforce.com;Expires=Fri,
|
425
|
+
07-Aug-2015 22:13:21 GMT
|
426
426
|
Expires:
|
427
427
|
- Thu, 01 Jan 1970 00:00:00 GMT
|
428
428
|
Sforce-Limit-Info:
|
429
|
-
- api-usage=
|
429
|
+
- api-usage=103/15000
|
430
430
|
Content-Type:
|
431
431
|
- application/json;charset=UTF-8
|
432
432
|
Transfer-Encoding:
|
@@ -434,6 +434,6 @@ http_interactions:
|
|
434
434
|
body:
|
435
435
|
encoding: UTF-8
|
436
436
|
string: '[{"message":"entity is deleted","errorCode":"ENTITY_IS_DELETED","fields":[]}]'
|
437
|
-
http_version:
|
438
|
-
recorded_at:
|
437
|
+
http_version:
|
438
|
+
recorded_at: Mon, 08 Jun 2015 22:13:22 GMT
|
439
439
|
recorded_with: VCR 2.9.3
|