restforce-db 2.5.0 → 2.6.0
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/README.md +16 -0
- data/lib/restforce/db/associator.rb +21 -9
- data/lib/restforce/db/initializer.rb +4 -4
- data/lib/restforce/db/model.rb +52 -0
- data/lib/restforce/db/synchronizer.rb +12 -12
- data/lib/restforce/db/timestamp_cache.rb +1 -1
- data/lib/restforce/db/version.rb +1 -1
- data/lib/restforce/db/worker.rb +21 -22
- 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 +188 -112
- 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 +175 -99
- data/test/cassettes/Restforce_DB_Model/given_a_database_model_which_includes_the_module/_force_sync_/given_a_previously-synchronized_record_for_a_mapped_model/force-updates_both_synchronized_records.yml +288 -0
- data/test/cassettes/Restforce_DB_Model/given_a_database_model_which_includes_the_module/_force_sync_/given_an_unsynchronized_record_for_a_mapped_model/creates_a_matching_record_in_Salesforce.yml +251 -0
- data/test/cassettes/Restforce_DB_Worker/a_race_condition_during_synchronization/does_not_change_the_user-entered_name_on_the_database_record.yml +512 -0
- data/test/cassettes/Restforce_DB_Worker/a_race_condition_during_synchronization/overrides_the_stale-but-more-recent_name_on_the_Salesforce.yml +551 -0
- data/test/lib/restforce/db/model_test.rb +86 -14
- data/test/lib/restforce/db/timestamp_cache_test.rb +5 -4
- data/test/lib/restforce/db/worker_test.rb +63 -0
- metadata +7 -2
@@ -21,10 +21,10 @@ http_interactions:
|
|
21
21
|
message: OK
|
22
22
|
headers:
|
23
23
|
Date:
|
24
|
-
-
|
24
|
+
- Thu, 18 Jun 2015 19:49:47 GMT
|
25
25
|
Set-Cookie:
|
26
|
-
- BrowserId=
|
27
|
-
|
26
|
+
- BrowserId=HJuFHAmmRaa2LH-MtnsJNw;Path=/;Domain=.salesforce.com;Expires=Mon,
|
27
|
+
17-Aug-2015 19:49:47 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":"
|
40
|
+
string: '{"id":"https://login.salesforce.com/id/00D1a000000H3O9EAK/0051a000000UGT8AAO","issued_at":"1434656987302","token_type":"Bearer","instance_url":"https://<host>","signature":"gHboPRAUdvCTT/Tj+JtcNpX9vre4kO2DN4Y8p+qXloA=","access_token":"00D1a000000H3O9!AQ4AQMIiowitx1OZ30nT1yLacEm4Ugw4j582Bro6xJOU7OOWfOJISGrWfdN.JIWTCleDrkoRt21t3bXGaSDTPfiqhjk5JS3n"}'
|
41
41
|
http_version:
|
42
|
-
recorded_at:
|
42
|
+
recorded_at: Thu, 18 Jun 2015 19:49:47 GMT
|
43
43
|
- request:
|
44
44
|
method: post
|
45
45
|
uri: https://<host>/services/data/<api_version>/sobjects/Contact
|
@@ -52,7 +52,7 @@ http_interactions:
|
|
52
52
|
Content-Type:
|
53
53
|
- application/json
|
54
54
|
Authorization:
|
55
|
-
- OAuth 00D1a000000H3O9!
|
55
|
+
- OAuth 00D1a000000H3O9!AQ4AQMIiowitx1OZ30nT1yLacEm4Ugw4j582Bro6xJOU7OOWfOJISGrWfdN.JIWTCleDrkoRt21t3bXGaSDTPfiqhjk5JS3n
|
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
|
+
- Thu, 18 Jun 2015 19:49:48 GMT
|
67
67
|
Set-Cookie:
|
68
|
-
- BrowserId=
|
69
|
-
|
68
|
+
- BrowserId=OQ2e_BjBQp2g4xO8hv1yWQ;Path=/;Domain=.salesforce.com;Expires=Mon,
|
69
|
+
17-Aug-2015 19:49:48 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=59/15000
|
74
74
|
Location:
|
75
|
-
- "/services/data/<api_version>/sobjects/Contact/
|
75
|
+
- "/services/data/<api_version>/sobjects/Contact/0031a000005Fb7UAAS"
|
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":"
|
82
|
+
string: '{"id":"0031a000005Fb7UAAS","success":true,"errors":[]}'
|
83
83
|
http_version:
|
84
|
-
recorded_at:
|
84
|
+
recorded_at: Thu, 18 Jun 2015 19:49:48 GMT
|
85
85
|
- request:
|
86
86
|
method: post
|
87
87
|
uri: https://<host>/services/data/<api_version>/sobjects/CustomObject__c
|
88
88
|
body:
|
89
89
|
encoding: UTF-8
|
90
|
-
string: '{"Friend__c":"
|
90
|
+
string: '{"Friend__c":"0031a000005Fb7UAAS"}'
|
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!AQ4AQMIiowitx1OZ30nT1yLacEm4Ugw4j582Bro6xJOU7OOWfOJISGrWfdN.JIWTCleDrkoRt21t3bXGaSDTPfiqhjk5JS3n
|
98
98
|
Accept-Encoding:
|
99
99
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
100
100
|
Accept:
|
@@ -105,25 +105,25 @@ http_interactions:
|
|
105
105
|
message: Created
|
106
106
|
headers:
|
107
107
|
Date:
|
108
|
-
-
|
108
|
+
- Thu, 18 Jun 2015 19:49:49 GMT
|
109
109
|
Set-Cookie:
|
110
|
-
- BrowserId
|
111
|
-
|
110
|
+
- BrowserId=-iyJRFTzS6ql_ieNkL8qLg;Path=/;Domain=.salesforce.com;Expires=Mon,
|
111
|
+
17-Aug-2015 19:49:49 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=59/15000
|
116
116
|
Location:
|
117
|
-
- "/services/data/<api_version>/sobjects/CustomObject__c/
|
117
|
+
- "/services/data/<api_version>/sobjects/CustomObject__c/a001a000002z7BbAAI"
|
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":"
|
124
|
+
string: '{"id":"a001a000002z7BbAAI","success":true,"errors":[]}'
|
125
125
|
http_version:
|
126
|
-
recorded_at:
|
126
|
+
recorded_at: Thu, 18 Jun 2015 19:49:49 GMT
|
127
127
|
- request:
|
128
128
|
method: post
|
129
129
|
uri: https://<host>/services/data/<api_version>/sobjects/Contact
|
@@ -136,7 +136,7 @@ http_interactions:
|
|
136
136
|
Content-Type:
|
137
137
|
- application/json
|
138
138
|
Authorization:
|
139
|
-
- OAuth 00D1a000000H3O9!
|
139
|
+
- OAuth 00D1a000000H3O9!AQ4AQMIiowitx1OZ30nT1yLacEm4Ugw4j582Bro6xJOU7OOWfOJISGrWfdN.JIWTCleDrkoRt21t3bXGaSDTPfiqhjk5JS3n
|
140
140
|
Accept-Encoding:
|
141
141
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
142
142
|
Accept:
|
@@ -147,28 +147,28 @@ http_interactions:
|
|
147
147
|
message: Created
|
148
148
|
headers:
|
149
149
|
Date:
|
150
|
-
-
|
150
|
+
- Thu, 18 Jun 2015 19:49:50 GMT
|
151
151
|
Set-Cookie:
|
152
|
-
- BrowserId=
|
153
|
-
|
152
|
+
- BrowserId=jGzI1s-AQzKtAV-m7t3jyg;Path=/;Domain=.salesforce.com;Expires=Mon,
|
153
|
+
17-Aug-2015 19:49:50 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=60/15000
|
158
158
|
Location:
|
159
|
-
- "/services/data/<api_version>/sobjects/Contact/
|
159
|
+
- "/services/data/<api_version>/sobjects/Contact/0031a000005Fb7ZAAS"
|
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":"
|
166
|
+
string: '{"id":"0031a000005Fb7ZAAS","success":true,"errors":[]}'
|
167
167
|
http_version:
|
168
|
-
recorded_at:
|
168
|
+
recorded_at: Thu, 18 Jun 2015 19:49:50 GMT
|
169
169
|
- request:
|
170
170
|
method: get
|
171
|
-
uri: https://<host>/services/data/<api_version>/query?q=select%20Id,%20SystemModstamp,%20LastModifiedById,%20Name,%20Example_Field__c,%20Friend__c%20from%20CustomObject__c%20where%20Id%20=%20%
|
171
|
+
uri: https://<host>/services/data/<api_version>/query?q=select%20Id,%20SystemModstamp,%20LastModifiedById,%20Name,%20Example_Field__c,%20Friend__c%20from%20CustomObject__c%20where%20Id%20=%20%27a001a000002z7BbAAI%27
|
172
172
|
body:
|
173
173
|
encoding: US-ASCII
|
174
174
|
string: ''
|
@@ -176,7 +176,7 @@ http_interactions:
|
|
176
176
|
User-Agent:
|
177
177
|
- Faraday v0.9.1
|
178
178
|
Authorization:
|
179
|
-
- OAuth 00D1a000000H3O9!
|
179
|
+
- OAuth 00D1a000000H3O9!AQ4AQMIiowitx1OZ30nT1yLacEm4Ugw4j582Bro6xJOU7OOWfOJISGrWfdN.JIWTCleDrkoRt21t3bXGaSDTPfiqhjk5JS3n
|
180
180
|
Accept-Encoding:
|
181
181
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
182
182
|
Accept:
|
@@ -187,23 +187,23 @@ http_interactions:
|
|
187
187
|
message: OK
|
188
188
|
headers:
|
189
189
|
Date:
|
190
|
-
-
|
190
|
+
- Thu, 18 Jun 2015 19:49:51 GMT
|
191
191
|
Set-Cookie:
|
192
|
-
- BrowserId=
|
193
|
-
|
192
|
+
- BrowserId=_ys3zdJRS0K5jzup2Dz5BA;Path=/;Domain=.salesforce.com;Expires=Mon,
|
193
|
+
17-Aug-2015 19:49:51 GMT
|
194
194
|
Expires:
|
195
195
|
- Thu, 01 Jan 1970 00:00:00 GMT
|
196
196
|
Sforce-Limit-Info:
|
197
|
-
- api-usage=
|
197
|
+
- api-usage=59/15000
|
198
198
|
Content-Type:
|
199
199
|
- application/json;charset=UTF-8
|
200
200
|
Transfer-Encoding:
|
201
201
|
- chunked
|
202
202
|
body:
|
203
203
|
encoding: ASCII-8BIT
|
204
|
-
string: '{"totalSize":1,"done":true,"records":[{"attributes":{"type":"CustomObject__c","url":"/services/data/<api_version>/sobjects/CustomObject__c/
|
204
|
+
string: '{"totalSize":1,"done":true,"records":[{"attributes":{"type":"CustomObject__c","url":"/services/data/<api_version>/sobjects/CustomObject__c/a001a000002z7BbAAI"},"Id":"a001a000002z7BbAAI","SystemModstamp":"2015-06-18T19:49:49.000+0000","LastModifiedById":"0051a000000UGT8AAO","Name":"a001a000002z7Bb","Example_Field__c":null,"Friend__c":"0031a000005Fb7UAAS"}]}'
|
205
205
|
http_version:
|
206
|
-
recorded_at:
|
206
|
+
recorded_at: Thu, 18 Jun 2015 19:49:52 GMT
|
207
207
|
- request:
|
208
208
|
method: get
|
209
209
|
uri: https://<host>/services/data/<api_version>/sobjects/CustomObject__c/describe
|
@@ -214,7 +214,7 @@ http_interactions:
|
|
214
214
|
User-Agent:
|
215
215
|
- Faraday v0.9.1
|
216
216
|
Authorization:
|
217
|
-
- OAuth 00D1a000000H3O9!
|
217
|
+
- OAuth 00D1a000000H3O9!AQ4AQMIiowitx1OZ30nT1yLacEm4Ugw4j582Bro6xJOU7OOWfOJISGrWfdN.JIWTCleDrkoRt21t3bXGaSDTPfiqhjk5JS3n
|
218
218
|
Accept-Encoding:
|
219
219
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
220
220
|
Accept:
|
@@ -225,22 +225,22 @@ http_interactions:
|
|
225
225
|
message: OK
|
226
226
|
headers:
|
227
227
|
Date:
|
228
|
-
-
|
228
|
+
- Thu, 18 Jun 2015 19:49:53 GMT
|
229
229
|
Set-Cookie:
|
230
|
-
- BrowserId=
|
231
|
-
|
230
|
+
- BrowserId=D4rwSHmITcCKmf0B2pACeQ;Path=/;Domain=.salesforce.com;Expires=Mon,
|
231
|
+
17-Aug-2015 19:49:53 GMT
|
232
232
|
Expires:
|
233
233
|
- Thu, 01 Jan 1970 00:00:00 GMT
|
234
234
|
Sforce-Limit-Info:
|
235
|
-
- api-usage=
|
235
|
+
- api-usage=59/15000
|
236
236
|
Org.eclipse.jetty.server.include.etag:
|
237
|
-
-
|
237
|
+
- cdc3a566
|
238
238
|
Last-Modified:
|
239
|
-
-
|
239
|
+
- Sat, 13 Jun 2015 07:59:59 GMT
|
240
240
|
Content-Type:
|
241
241
|
- application/json;charset=UTF-8
|
242
242
|
Etag:
|
243
|
-
-
|
243
|
+
- cdc3a56-gzip"
|
244
244
|
Transfer-Encoding:
|
245
245
|
- chunked
|
246
246
|
body:
|
@@ -256,20 +256,20 @@ http_interactions:
|
|
256
256
|
Modstamp","length":0,"name":"SystemModstamp","nameField":false,"namePointing":false,"nillable":false,"permissionable":false,"picklistValues":[],"precision":0,"referenceTo":[],"relationshipName":null,"relationshipOrder":null,"restrictedDelete":false,"restrictedPicklist":false,"scale":0,"soapType":"xsd:dateTime","sortable":true,"type":"datetime","unique":false,"updateable":false,"writeRequiresMasterRead":false},{"autoNumber":false,"byteLength":765,"calculated":false,"calculatedFormula":null,"cascadeDelete":false,"caseSensitive":false,"controllerName":null,"createable":true,"custom":true,"defaultValue":null,"defaultValueFormula":null,"defaultedOnCreate":false,"dependentPicklist":false,"deprecatedAndHidden":false,"digits":0,"displayLocationInDecimal":false,"externalId":false,"filterable":true,"groupable":true,"htmlFormatted":false,"idLookup":false,"inlineHelpText":null,"label":"Example
|
257
257
|
Field","length":255,"name":"Example_Field__c","nameField":false,"namePointing":false,"nillable":true,"permissionable":true,"picklistValues":[],"precision":0,"referenceTo":[],"relationshipName":null,"relationshipOrder":null,"restrictedDelete":false,"restrictedPicklist":false,"scale":0,"soapType":"xsd:string","sortable":true,"type":"string","unique":false,"updateable":true,"writeRequiresMasterRead":false},{"autoNumber":false,"byteLength":18,"calculated":false,"calculatedFormula":null,"cascadeDelete":false,"caseSensitive":false,"controllerName":null,"createable":true,"custom":true,"defaultValue":null,"defaultValueFormula":null,"defaultedOnCreate":false,"dependentPicklist":false,"deprecatedAndHidden":false,"digits":0,"displayLocationInDecimal":false,"externalId":false,"filterable":true,"groupable":true,"htmlFormatted":false,"idLookup":false,"inlineHelpText":null,"label":"Friend","length":18,"name":"Friend__c","nameField":false,"namePointing":false,"nillable":true,"permissionable":true,"picklistValues":[],"precision":0,"referenceTo":["Contact"],"relationshipName":"Friend__r","relationshipOrder":null,"restrictedDelete":false,"restrictedPicklist":false,"scale":0,"soapType":"tns:ID","sortable":true,"type":"reference","unique":false,"updateable":true,"writeRequiresMasterRead":false},{"autoNumber":false,"byteLength":0,"calculated":false,"calculatedFormula":null,"cascadeDelete":false,"caseSensitive":false,"controllerName":null,"createable":true,"custom":true,"defaultValue":null,"defaultValueFormula":null,"defaultedOnCreate":true,"dependentPicklist":false,"deprecatedAndHidden":false,"digits":0,"displayLocationInDecimal":false,"externalId":false,"filterable":true,"groupable":true,"htmlFormatted":false,"idLookup":false,"inlineHelpText":null,"label":"Visible","length":0,"name":"Visible__c","nameField":false,"namePointing":false,"nillable":false,"permissionable":true,"picklistValues":[],"precision":0,"referenceTo":[],"relationshipName":null,"relationshipOrder":null,"restrictedDelete":false,"restrictedPicklist":false,"scale":0,"soapType":"xsd:boolean","sortable":true,"type":"boolean","unique":false,"updateable":true,"writeRequiresMasterRead":false}],"keyPrefix":"a00","label":"CustomObject","labelPlural":"CustomObjects","layoutable":true,"listviewable":null,"lookupLayoutable":null,"mergeable":false,"name":"CustomObject__c","queryable":true,"recordTypeInfos":[{"available":true,"defaultRecordTypeMapping":true,"name":"Master","recordTypeId":"012000000000000AAA","urls":{"layout":"/services/data/<api_version>/sobjects/CustomObject__c/describe/layouts/012000000000000AAA"}}],"replicateable":true,"retrieveable":true,"searchLayoutable":true,"searchable":true,"triggerable":true,"undeletable":true,"updateable":true,"urls":{"uiEditTemplate":"https://<host>/{ID}/e","sobject":"/services/data/<api_version>/sobjects/CustomObject__c","quickActions":"/services/data/<api_version>/sobjects/CustomObject__c/quickActions","uiDetailTemplate":"https://<host>/{ID}","describe":"/services/data/<api_version>/sobjects/CustomObject__c/describe","rowTemplate":"/services/data/<api_version>/sobjects/CustomObject__c/{ID}","layouts":"/services/data/<api_version>/sobjects/CustomObject__c/describe/layouts","compactLayouts":"/services/data/<api_version>/sobjects/CustomObject__c/describe/compactLayouts","uiNewRecord":"https://<host>/a00/e"}}'
|
258
258
|
http_version:
|
259
|
-
recorded_at:
|
259
|
+
recorded_at: Thu, 18 Jun 2015 19:49:53 GMT
|
260
260
|
- request:
|
261
261
|
method: patch
|
262
|
-
uri: https://<host>/services/data/<api_version>/sobjects/CustomObject__c/
|
262
|
+
uri: https://<host>/services/data/<api_version>/sobjects/CustomObject__c/a001a000002z7BbAAI
|
263
263
|
body:
|
264
264
|
encoding: UTF-8
|
265
|
-
string: '{"Friend__c":"
|
265
|
+
string: '{"Friend__c":"0031a000005Fb7ZAAS"}'
|
266
266
|
headers:
|
267
267
|
User-Agent:
|
268
268
|
- Faraday v0.9.1
|
269
269
|
Content-Type:
|
270
270
|
- application/json
|
271
271
|
Authorization:
|
272
|
-
- OAuth 00D1a000000H3O9!
|
272
|
+
- OAuth 00D1a000000H3O9!AQ4AQMIiowitx1OZ30nT1yLacEm4Ugw4j582Bro6xJOU7OOWfOJISGrWfdN.JIWTCleDrkoRt21t3bXGaSDTPfiqhjk5JS3n
|
273
273
|
Accept-Encoding:
|
274
274
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
275
275
|
Accept:
|
@@ -280,19 +280,19 @@ http_interactions:
|
|
280
280
|
message: No Content
|
281
281
|
headers:
|
282
282
|
Date:
|
283
|
-
-
|
283
|
+
- Thu, 18 Jun 2015 19:49:54 GMT
|
284
284
|
Set-Cookie:
|
285
|
-
- BrowserId=
|
286
|
-
|
285
|
+
- BrowserId=teOhg5M5T1yhEE8KGOhg_Q;Path=/;Domain=.salesforce.com;Expires=Mon,
|
286
|
+
17-Aug-2015 19:49:54 GMT
|
287
287
|
Expires:
|
288
288
|
- Thu, 01 Jan 1970 00:00:00 GMT
|
289
289
|
Sforce-Limit-Info:
|
290
|
-
- api-usage=
|
290
|
+
- api-usage=60/15000
|
291
291
|
body:
|
292
292
|
encoding: UTF-8
|
293
293
|
string: ''
|
294
294
|
http_version:
|
295
|
-
recorded_at:
|
295
|
+
recorded_at: Thu, 18 Jun 2015 19:49:54 GMT
|
296
296
|
- request:
|
297
297
|
method: get
|
298
298
|
uri: https://<host>/services/data/<api_version>/query?q=select%20Id,%20SystemModstamp,%20LastModifiedById,%20Name,%20Example_Field__c,%20Friend__c%20from%20CustomObject__c
|
@@ -303,7 +303,7 @@ http_interactions:
|
|
303
303
|
User-Agent:
|
304
304
|
- Faraday v0.9.1
|
305
305
|
Authorization:
|
306
|
-
- OAuth 00D1a000000H3O9!
|
306
|
+
- OAuth 00D1a000000H3O9!AQ4AQMIiowitx1OZ30nT1yLacEm4Ugw4j582Bro6xJOU7OOWfOJISGrWfdN.JIWTCleDrkoRt21t3bXGaSDTPfiqhjk5JS3n
|
307
307
|
Accept-Encoding:
|
308
308
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
309
309
|
Accept:
|
@@ -314,26 +314,26 @@ http_interactions:
|
|
314
314
|
message: OK
|
315
315
|
headers:
|
316
316
|
Date:
|
317
|
-
-
|
317
|
+
- Thu, 18 Jun 2015 19:49:55 GMT
|
318
318
|
Set-Cookie:
|
319
|
-
- BrowserId=
|
320
|
-
|
319
|
+
- BrowserId=uh0fzGsnQSanwxRw6b0akQ;Path=/;Domain=.salesforce.com;Expires=Mon,
|
320
|
+
17-Aug-2015 19:49:55 GMT
|
321
321
|
Expires:
|
322
322
|
- Thu, 01 Jan 1970 00:00:00 GMT
|
323
323
|
Sforce-Limit-Info:
|
324
|
-
- api-usage=
|
324
|
+
- api-usage=59/15000
|
325
325
|
Content-Type:
|
326
326
|
- application/json;charset=UTF-8
|
327
327
|
Transfer-Encoding:
|
328
328
|
- chunked
|
329
329
|
body:
|
330
330
|
encoding: ASCII-8BIT
|
331
|
-
string: '{"totalSize":
|
331
|
+
string: '{"totalSize":1,"done":true,"records":[{"attributes":{"type":"CustomObject__c","url":"/services/data/<api_version>/sobjects/CustomObject__c/a001a000002z7BbAAI"},"Id":"a001a000002z7BbAAI","SystemModstamp":"2015-06-18T19:49:54.000+0000","LastModifiedById":"0051a000000UGT8AAO","Name":"a001a000002z7Bb","Example_Field__c":null,"Friend__c":"0031a000005Fb7ZAAS"}]}'
|
332
332
|
http_version:
|
333
|
-
recorded_at:
|
333
|
+
recorded_at: Thu, 18 Jun 2015 19:49:55 GMT
|
334
334
|
- request:
|
335
335
|
method: get
|
336
|
-
uri: https://<host>/services/data/<api_version>/
|
336
|
+
uri: https://<host>/services/data/<api_version>/
|
337
337
|
body:
|
338
338
|
encoding: US-ASCII
|
339
339
|
string: ''
|
@@ -341,7 +341,7 @@ http_interactions:
|
|
341
341
|
User-Agent:
|
342
342
|
- Faraday v0.9.1
|
343
343
|
Authorization:
|
344
|
-
- OAuth 00D1a000000H3O9!
|
344
|
+
- OAuth 00D1a000000H3O9!AQ4AQMIiowitx1OZ30nT1yLacEm4Ugw4j582Bro6xJOU7OOWfOJISGrWfdN.JIWTCleDrkoRt21t3bXGaSDTPfiqhjk5JS3n
|
345
345
|
Accept-Encoding:
|
346
346
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
347
347
|
Accept:
|
@@ -352,26 +352,26 @@ http_interactions:
|
|
352
352
|
message: OK
|
353
353
|
headers:
|
354
354
|
Date:
|
355
|
-
-
|
355
|
+
- Thu, 18 Jun 2015 19:49:56 GMT
|
356
356
|
Set-Cookie:
|
357
|
-
- BrowserId=
|
358
|
-
|
357
|
+
- BrowserId=eblqD0ZtSxKv8mQM1zhkUg;Path=/;Domain=.salesforce.com;Expires=Mon,
|
358
|
+
17-Aug-2015 19:49:56 GMT
|
359
359
|
Expires:
|
360
360
|
- Thu, 01 Jan 1970 00:00:00 GMT
|
361
361
|
Sforce-Limit-Info:
|
362
|
-
- api-usage=
|
362
|
+
- api-usage=59/15000
|
363
363
|
Content-Type:
|
364
364
|
- application/json;charset=UTF-8
|
365
365
|
Transfer-Encoding:
|
366
366
|
- chunked
|
367
367
|
body:
|
368
368
|
encoding: ASCII-8BIT
|
369
|
-
string: '{"
|
369
|
+
string: '{"limits":"/services/data/<api_version>/limits","sobjects":"/services/data/<api_version>/sobjects","connect":"/services/data/<api_version>/connect","query":"/services/data/<api_version>/query","theme":"/services/data/<api_version>/theme","queryAll":"/services/data/<api_version>/queryAll","tooling":"/services/data/<api_version>/tooling","chatter":"/services/data/<api_version>/chatter","analytics":"/services/data/<api_version>/analytics","recent":"/services/data/<api_version>/recent","commerce":"/services/data/<api_version>/commerce","licensing":"/services/data/<api_version>/licensing","identity":"https://login.salesforce.com/id/00D1a000000H3O9EAK/0051a000000UGT8AAO","flexiPage":"/services/data/<api_version>/flexiPage","search":"/services/data/<api_version>/search","quickActions":"/services/data/<api_version>/quickActions","wave":"/services/data/<api_version>/wave","appMenu":"/services/data/<api_version>/appMenu"}'
|
370
370
|
http_version:
|
371
|
-
recorded_at:
|
371
|
+
recorded_at: Thu, 18 Jun 2015 19:49:56 GMT
|
372
372
|
- request:
|
373
373
|
method: get
|
374
|
-
uri: https
|
374
|
+
uri: https://login.salesforce.com/id/00D1a000000H3O9EAK/0051a000000UGT8AAO
|
375
375
|
body:
|
376
376
|
encoding: US-ASCII
|
377
377
|
string: ''
|
@@ -379,7 +379,7 @@ http_interactions:
|
|
379
379
|
User-Agent:
|
380
380
|
- Faraday v0.9.1
|
381
381
|
Authorization:
|
382
|
-
- OAuth 00D1a000000H3O9!
|
382
|
+
- OAuth 00D1a000000H3O9!AQ4AQMIiowitx1OZ30nT1yLacEm4Ugw4j582Bro6xJOU7OOWfOJISGrWfdN.JIWTCleDrkoRt21t3bXGaSDTPfiqhjk5JS3n
|
383
383
|
Accept-Encoding:
|
384
384
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
385
385
|
Accept:
|
@@ -390,26 +390,102 @@ http_interactions:
|
|
390
390
|
message: OK
|
391
391
|
headers:
|
392
392
|
Date:
|
393
|
-
-
|
393
|
+
- Thu, 18 Jun 2015 19:49:56 GMT
|
394
|
+
- Thu, 18 Jun 2015 19:49:56 GMT
|
394
395
|
Set-Cookie:
|
395
|
-
- BrowserId=
|
396
|
-
|
396
|
+
- BrowserId=nlWP7okuSY2f4OKhfNXsFw;Path=/;Domain=.salesforce.com;Expires=Mon,
|
397
|
+
17-Aug-2015 19:49:56 GMT
|
398
|
+
Expires:
|
399
|
+
- Thu, 01 Jan 1970 00:00:00 GMT
|
400
|
+
Content-Type:
|
401
|
+
- application/json;charset=UTF-8
|
402
|
+
Transfer-Encoding:
|
403
|
+
- chunked
|
404
|
+
body:
|
405
|
+
encoding: ASCII-8BIT
|
406
|
+
string: '{"id":"https://login.salesforce.com/id/00D1a000000H3O9EAK/0051a000000UGT8AAO","asserted_user":true,"user_id":"0051a000000UGT8AAO","organization_id":"00D1a000000H3O9EAK","username":"andrew+salesforce@tablexi.com","nick_name":"andrew+salesforce1.42656567106328E12","display_name":"Andrew
|
407
|
+
Horner","email":"andrew@tablexi.com","email_verified":true,"first_name":"Andrew","last_name":"Horner","timezone":"America/Los_Angeles","photos":{"picture":"https://c.na24.content.force.com/profilephoto/005/F","thumbnail":"https://c.na24.content.force.com/profilephoto/005/T"},"addr_street":null,"addr_city":null,"addr_state":null,"addr_country":"US","addr_zip":"60661","mobile_phone":null,"mobile_phone_verified":false,"status":{"created_date":null,"body":null},"urls":{"enterprise":"https://<host>/services/Soap/c/{version}/00D1a000000H3O9","metadata":"https://<host>/services/Soap/m/{version}/00D1a000000H3O9","partner":"https://<host>/services/Soap/u/{version}/00D1a000000H3O9","rest":"https://<host>/services/data/v{version}/","sobjects":"https://<host>/services/data/v{version}/sobjects/","search":"https://<host>/services/data/v{version}/search/","query":"https://<host>/services/data/v{version}/query/","recent":"https://<host>/services/data/v{version}/recent/","profile":"https://<host>/0051a000000UGT8AAO","feeds":"https://<host>/services/data/v{version}/chatter/feeds","groups":"https://<host>/services/data/v{version}/chatter/groups","users":"https://<host>/services/data/v{version}/chatter/users","feed_items":"https://<host>/services/data/v{version}/chatter/feed-items"},"active":true,"user_type":"STANDARD","language":"en_US","locale":"en_US","utcOffset":-28800000,"last_modified_date":"2015-03-17T04:14:23.000+0000","is_app_installed":true}'
|
408
|
+
http_version:
|
409
|
+
recorded_at: Thu, 18 Jun 2015 19:49:56 GMT
|
410
|
+
- request:
|
411
|
+
method: get
|
412
|
+
uri: https://<host>/services/data/<api_version>/query?q=select%20Id,%20SystemModstamp,%20LastModifiedById,%20Name,%20Example_Field__c,%20Friend__c%20from%20CustomObject__c%20where%20Id%20=%20%27a001a000002z7BbAAI%27
|
413
|
+
body:
|
414
|
+
encoding: US-ASCII
|
415
|
+
string: ''
|
416
|
+
headers:
|
417
|
+
User-Agent:
|
418
|
+
- Faraday v0.9.1
|
419
|
+
Authorization:
|
420
|
+
- OAuth 00D1a000000H3O9!AQ4AQMIiowitx1OZ30nT1yLacEm4Ugw4j582Bro6xJOU7OOWfOJISGrWfdN.JIWTCleDrkoRt21t3bXGaSDTPfiqhjk5JS3n
|
421
|
+
Accept-Encoding:
|
422
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
423
|
+
Accept:
|
424
|
+
- "*/*"
|
425
|
+
response:
|
426
|
+
status:
|
427
|
+
code: 200
|
428
|
+
message: OK
|
429
|
+
headers:
|
430
|
+
Date:
|
431
|
+
- Thu, 18 Jun 2015 19:49:57 GMT
|
432
|
+
Set-Cookie:
|
433
|
+
- BrowserId=4TufV2ZGQ7Wewh_gfy8CFw;Path=/;Domain=.salesforce.com;Expires=Mon,
|
434
|
+
17-Aug-2015 19:49:57 GMT
|
435
|
+
Expires:
|
436
|
+
- Thu, 01 Jan 1970 00:00:00 GMT
|
437
|
+
Sforce-Limit-Info:
|
438
|
+
- api-usage=59/15000
|
439
|
+
Content-Type:
|
440
|
+
- application/json;charset=UTF-8
|
441
|
+
Transfer-Encoding:
|
442
|
+
- chunked
|
443
|
+
body:
|
444
|
+
encoding: ASCII-8BIT
|
445
|
+
string: '{"totalSize":1,"done":true,"records":[{"attributes":{"type":"CustomObject__c","url":"/services/data/<api_version>/sobjects/CustomObject__c/a001a000002z7BbAAI"},"Id":"a001a000002z7BbAAI","SystemModstamp":"2015-06-18T19:49:54.000+0000","LastModifiedById":"0051a000000UGT8AAO","Name":"a001a000002z7Bb","Example_Field__c":null,"Friend__c":"0031a000005Fb7ZAAS"}]}'
|
446
|
+
http_version:
|
447
|
+
recorded_at: Thu, 18 Jun 2015 19:49:58 GMT
|
448
|
+
- request:
|
449
|
+
method: get
|
450
|
+
uri: https://<host>/services/data/<api_version>/query?q=select%20Id,%20SystemModstamp,%20LastModifiedById,%20Email%20from%20Contact%20where%20Id%20=%20%270031a000005Fb7ZAAS%27
|
451
|
+
body:
|
452
|
+
encoding: US-ASCII
|
453
|
+
string: ''
|
454
|
+
headers:
|
455
|
+
User-Agent:
|
456
|
+
- Faraday v0.9.1
|
457
|
+
Authorization:
|
458
|
+
- OAuth 00D1a000000H3O9!AQ4AQMIiowitx1OZ30nT1yLacEm4Ugw4j582Bro6xJOU7OOWfOJISGrWfdN.JIWTCleDrkoRt21t3bXGaSDTPfiqhjk5JS3n
|
459
|
+
Accept-Encoding:
|
460
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
461
|
+
Accept:
|
462
|
+
- "*/*"
|
463
|
+
response:
|
464
|
+
status:
|
465
|
+
code: 200
|
466
|
+
message: OK
|
467
|
+
headers:
|
468
|
+
Date:
|
469
|
+
- Thu, 18 Jun 2015 19:49:59 GMT
|
470
|
+
Set-Cookie:
|
471
|
+
- BrowserId=YsKqUPgdT2aJCi3hVOJb7g;Path=/;Domain=.salesforce.com;Expires=Mon,
|
472
|
+
17-Aug-2015 19:49:59 GMT
|
397
473
|
Expires:
|
398
474
|
- Thu, 01 Jan 1970 00:00:00 GMT
|
399
475
|
Sforce-Limit-Info:
|
400
|
-
- api-usage=
|
476
|
+
- api-usage=59/15000
|
401
477
|
Content-Type:
|
402
478
|
- application/json;charset=UTF-8
|
403
479
|
Transfer-Encoding:
|
404
480
|
- chunked
|
405
481
|
body:
|
406
482
|
encoding: ASCII-8BIT
|
407
|
-
string: '{"totalSize":1,"done":true,"records":[{"attributes":{"type":"
|
483
|
+
string: '{"totalSize":1,"done":true,"records":[{"attributes":{"type":"Contact","url":"/services/data/<api_version>/sobjects/Contact/0031a000005Fb7ZAAS"},"Id":"0031a000005Fb7ZAAS","SystemModstamp":"2015-06-18T19:49:50.000+0000","LastModifiedById":"0051a000000UGT8AAO","Email":"somebody+else@example.com"}]}'
|
408
484
|
http_version:
|
409
|
-
recorded_at:
|
485
|
+
recorded_at: Thu, 18 Jun 2015 19:49:59 GMT
|
410
486
|
- request:
|
411
487
|
method: delete
|
412
|
-
uri: https://<host>/services/data/<api_version>/sobjects/Contact/
|
488
|
+
uri: https://<host>/services/data/<api_version>/sobjects/Contact/0031a000005Fb7UAAS
|
413
489
|
body:
|
414
490
|
encoding: US-ASCII
|
415
491
|
string: ''
|
@@ -417,7 +493,7 @@ http_interactions:
|
|
417
493
|
User-Agent:
|
418
494
|
- Faraday v0.9.1
|
419
495
|
Authorization:
|
420
|
-
- OAuth 00D1a000000H3O9!
|
496
|
+
- OAuth 00D1a000000H3O9!AQ4AQMIiowitx1OZ30nT1yLacEm4Ugw4j582Bro6xJOU7OOWfOJISGrWfdN.JIWTCleDrkoRt21t3bXGaSDTPfiqhjk5JS3n
|
421
497
|
Accept-Encoding:
|
422
498
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
423
499
|
Accept:
|
@@ -428,22 +504,22 @@ http_interactions:
|
|
428
504
|
message: No Content
|
429
505
|
headers:
|
430
506
|
Date:
|
431
|
-
-
|
507
|
+
- Thu, 18 Jun 2015 19:50:00 GMT
|
432
508
|
Set-Cookie:
|
433
|
-
- BrowserId=
|
434
|
-
|
509
|
+
- BrowserId=AZcUCcTNRkm0dGJNSW4PbQ;Path=/;Domain=.salesforce.com;Expires=Mon,
|
510
|
+
17-Aug-2015 19:50:00 GMT
|
435
511
|
Expires:
|
436
512
|
- Thu, 01 Jan 1970 00:00:00 GMT
|
437
513
|
Sforce-Limit-Info:
|
438
|
-
- api-usage=
|
514
|
+
- api-usage=59/15000
|
439
515
|
body:
|
440
516
|
encoding: UTF-8
|
441
517
|
string: ''
|
442
518
|
http_version:
|
443
|
-
recorded_at:
|
519
|
+
recorded_at: Thu, 18 Jun 2015 19:50:00 GMT
|
444
520
|
- request:
|
445
521
|
method: delete
|
446
|
-
uri: https://<host>/services/data/<api_version>/sobjects/CustomObject__c/
|
522
|
+
uri: https://<host>/services/data/<api_version>/sobjects/CustomObject__c/a001a000002z7BbAAI
|
447
523
|
body:
|
448
524
|
encoding: US-ASCII
|
449
525
|
string: ''
|
@@ -451,7 +527,7 @@ http_interactions:
|
|
451
527
|
User-Agent:
|
452
528
|
- Faraday v0.9.1
|
453
529
|
Authorization:
|
454
|
-
- OAuth 00D1a000000H3O9!
|
530
|
+
- OAuth 00D1a000000H3O9!AQ4AQMIiowitx1OZ30nT1yLacEm4Ugw4j582Bro6xJOU7OOWfOJISGrWfdN.JIWTCleDrkoRt21t3bXGaSDTPfiqhjk5JS3n
|
455
531
|
Accept-Encoding:
|
456
532
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
457
533
|
Accept:
|
@@ -462,22 +538,22 @@ http_interactions:
|
|
462
538
|
message: No Content
|
463
539
|
headers:
|
464
540
|
Date:
|
465
|
-
-
|
541
|
+
- Thu, 18 Jun 2015 19:50:01 GMT
|
466
542
|
Set-Cookie:
|
467
|
-
- BrowserId=
|
468
|
-
|
543
|
+
- BrowserId=PvluIvjXTBOViDn9ZehCfQ;Path=/;Domain=.salesforce.com;Expires=Mon,
|
544
|
+
17-Aug-2015 19:50:01 GMT
|
469
545
|
Expires:
|
470
546
|
- Thu, 01 Jan 1970 00:00:00 GMT
|
471
547
|
Sforce-Limit-Info:
|
472
|
-
- api-usage=
|
548
|
+
- api-usage=59/15000
|
473
549
|
body:
|
474
550
|
encoding: UTF-8
|
475
551
|
string: ''
|
476
552
|
http_version:
|
477
|
-
recorded_at:
|
553
|
+
recorded_at: Thu, 18 Jun 2015 19:50:01 GMT
|
478
554
|
- request:
|
479
555
|
method: delete
|
480
|
-
uri: https://<host>/services/data/<api_version>/sobjects/Contact/
|
556
|
+
uri: https://<host>/services/data/<api_version>/sobjects/Contact/0031a000005Fb7ZAAS
|
481
557
|
body:
|
482
558
|
encoding: US-ASCII
|
483
559
|
string: ''
|
@@ -485,7 +561,7 @@ http_interactions:
|
|
485
561
|
User-Agent:
|
486
562
|
- Faraday v0.9.1
|
487
563
|
Authorization:
|
488
|
-
- OAuth 00D1a000000H3O9!
|
564
|
+
- OAuth 00D1a000000H3O9!AQ4AQMIiowitx1OZ30nT1yLacEm4Ugw4j582Bro6xJOU7OOWfOJISGrWfdN.JIWTCleDrkoRt21t3bXGaSDTPfiqhjk5JS3n
|
489
565
|
Accept-Encoding:
|
490
566
|
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
491
567
|
Accept:
|
@@ -496,17 +572,17 @@ http_interactions:
|
|
496
572
|
message: No Content
|
497
573
|
headers:
|
498
574
|
Date:
|
499
|
-
-
|
575
|
+
- Thu, 18 Jun 2015 19:50:02 GMT
|
500
576
|
Set-Cookie:
|
501
|
-
- BrowserId=
|
502
|
-
|
577
|
+
- BrowserId=0v8aKTUCRlWmqRO1jWlZig;Path=/;Domain=.salesforce.com;Expires=Mon,
|
578
|
+
17-Aug-2015 19:50:02 GMT
|
503
579
|
Expires:
|
504
580
|
- Thu, 01 Jan 1970 00:00:00 GMT
|
505
581
|
Sforce-Limit-Info:
|
506
|
-
- api-usage=
|
582
|
+
- api-usage=59/15000
|
507
583
|
body:
|
508
584
|
encoding: UTF-8
|
509
585
|
string: ''
|
510
586
|
http_version:
|
511
|
-
recorded_at:
|
587
|
+
recorded_at: Thu, 18 Jun 2015 19:50:02 GMT
|
512
588
|
recorded_with: VCR 2.9.3
|