@@ -47,11 +47,11 @@ suite('UserDataSyncService', () => {
47
47
{ type : 'POST' , url : `${ target . url } /v1/resource/globalState` , headers : { 'If-Match' : '0' } } ,
48
48
// Extensions
49
49
{ type : 'GET' , url : `${ target . url } /v1/resource/extensions/latest` , headers : { } } ,
50
- // Profiles
51
- { type : 'GET' , url : `${ target . url } /v1/resource/profiles/latest` , headers : { } } ,
52
50
// Prompts
53
51
{ type : 'GET' , url : `${ target . url } /v1/resource/prompts/latest` , headers : { } } ,
54
52
{ type : 'POST' , url : `${ target . url } /v1/resource/prompts` , headers : { 'If-Match' : '0' } } ,
53
+ // Profiles
54
+ { type : 'GET' , url : `${ target . url } /v1/resource/profiles/latest` , headers : { } } ,
55
55
] ) ;
56
56
57
57
} ) ;
@@ -84,11 +84,11 @@ suite('UserDataSyncService', () => {
84
84
{ type : 'POST' , url : `${ target . url } /v1/resource/globalState` , headers : { 'If-Match' : '0' } } ,
85
85
// Extensions
86
86
{ type : 'GET' , url : `${ target . url } /v1/resource/extensions/latest` , headers : { } } ,
87
- // Profiles
88
- { type : 'GET' , url : `${ target . url } /v1/resource/profiles/latest` , headers : { } } ,
89
87
// Prompts
90
88
{ type : 'GET' , url : `${ target . url } /v1/resource/prompts/latest` , headers : { } } ,
91
89
{ type : 'POST' , url : `${ target . url } /v1/resource/prompts` , headers : { 'If-Match' : '0' } } ,
90
+ // Profiles
91
+ { type : 'GET' , url : `${ target . url } /v1/resource/profiles/latest` , headers : { } } ,
92
92
] ) ;
93
93
} ) ;
94
94
@@ -117,12 +117,11 @@ suite('UserDataSyncService', () => {
117
117
{ type : 'GET' , url : `${ target . url } /v1/resource/globalState/latest` , headers : { } } ,
118
118
// Extensions
119
119
{ type : 'GET' , url : `${ target . url } /v1/resource/extensions/latest` , headers : { } } ,
120
- // Profiles
121
- { type : 'GET' , url : `${ target . url } /v1/resource/profiles/latest` , headers : { } } ,
122
120
// Prompts
123
121
{ type : 'GET' , url : `${ target . url } /v1/resource/prompts/latest` , headers : { } } ,
122
+ // Profiles
123
+ { type : 'GET' , url : `${ target . url } /v1/resource/profiles/latest` , headers : { } } ,
124
124
] ) ;
125
-
126
125
} ) ;
127
126
128
127
test ( 'test first time sync from the client with no changes - merge' , async ( ) => {
@@ -150,10 +149,9 @@ suite('UserDataSyncService', () => {
150
149
{ type : 'GET' , url : `${ target . url } /v1/resource/tasks/latest` , headers : { } } ,
151
150
{ type : 'GET' , url : `${ target . url } /v1/resource/globalState/latest` , headers : { } } ,
152
151
{ type : 'GET' , url : `${ target . url } /v1/resource/extensions/latest` , headers : { } } ,
153
- { type : 'GET' , url : `${ target . url } /v1/resource/profiles/latest` , headers : { } } ,
154
152
{ type : 'GET' , url : `${ target . url } /v1/resource/prompts/latest` , headers : { } } ,
153
+ { type : 'GET' , url : `${ target . url } /v1/resource/profiles/latest` , headers : { } } ,
155
154
] ) ;
156
-
157
155
} ) ;
158
156
159
157
test ( 'test first time sync from the client with changes - merge' , async ( ) => {
@@ -193,9 +191,9 @@ suite('UserDataSyncService', () => {
193
191
{ type : 'GET' , url : `${ target . url } /v1/resource/tasks/latest` , headers : { } } ,
194
192
{ type : 'GET' , url : `${ target . url } /v1/resource/globalState/latest` , headers : { } } ,
195
193
{ type : 'GET' , url : `${ target . url } /v1/resource/extensions/latest` , headers : { } } ,
196
- { type : 'GET' , url : `${ target . url } /v1/resource/profiles/latest` , headers : { } } ,
197
194
{ type : 'GET' , url : `${ target . url } /v1/resource/prompts/latest` , headers : { } } ,
198
195
{ type : 'POST' , url : `${ target . url } /v1/resource/prompts` , headers : { 'If-Match' : '1' } } ,
196
+ { type : 'GET' , url : `${ target . url } /v1/resource/profiles/latest` , headers : { } } ,
199
197
] ) ;
200
198
201
199
} ) ;
@@ -238,11 +236,11 @@ suite('UserDataSyncService', () => {
238
236
{ type : 'GET' , url : `${ target . url } /v1/resource/tasks/latest` , headers : { } } ,
239
237
{ type : 'GET' , url : `${ target . url } /v1/resource/globalState/latest` , headers : { } } ,
240
238
{ type : 'GET' , url : `${ target . url } /v1/resource/extensions/latest` , headers : { } } ,
239
+ { type : 'GET' , url : `${ target . url } /v1/resource/prompts/latest` , headers : { } } ,
240
+ { type : 'POST' , url : `${ target . url } /v1/resource/prompts` , headers : { 'If-Match' : '1' } } ,
241
241
{ type : 'GET' , url : `${ target . url } /v1/resource/profiles/latest` , headers : { } } ,
242
242
{ type : 'POST' , url : `${ target . url } /v1/collection` , headers : { } } ,
243
243
{ type : 'POST' , url : `${ target . url } /v1/resource/profiles` , headers : { 'If-Match' : '0' } } ,
244
- { type : 'GET' , url : `${ target . url } /v1/resource/prompts/latest` , headers : { } } ,
245
- { type : 'POST' , url : `${ target . url } /v1/resource/prompts` , headers : { 'If-Match' : '1' } } ,
246
244
{ type : 'GET' , url : `${ target . url } /v1/collection/1/resource/settings/latest` , headers : { } } ,
247
245
{ type : 'GET' , url : `${ target . url } /v1/collection/1/resource/keybindings/latest` , headers : { } } ,
248
246
{ type : 'GET' , url : `${ target . url } /v1/collection/1/resource/snippets/latest` , headers : { } } ,
@@ -347,11 +345,11 @@ suite('UserDataSyncService', () => {
347
345
{ type : 'POST' , url : `${ target . url } /v1/resource/snippets` , headers : { 'If-Match' : '1' } } ,
348
346
// Global state
349
347
{ type : 'POST' , url : `${ target . url } /v1/resource/globalState` , headers : { 'If-Match' : '1' } } ,
348
+ // Prompts
349
+ { type : 'POST' , url : `${ target . url } /v1/resource/prompts` , headers : { 'If-Match' : '1' } } ,
350
350
// Profiles
351
351
{ type : 'POST' , url : `${ target . url } /v1/collection` , headers : { } } ,
352
352
{ type : 'POST' , url : `${ target . url } /v1/resource/profiles` , headers : { 'If-Match' : '0' } } ,
353
- // Prompts
354
- { type : 'POST' , url : `${ target . url } /v1/resource/prompts` , headers : { 'If-Match' : '1' } } ,
355
353
{ type : 'GET' , url : `${ target . url } /v1/collection/1/resource/settings/latest` , headers : { } } ,
356
354
{ type : 'GET' , url : `${ target . url } /v1/collection/1/resource/keybindings/latest` , headers : { } } ,
357
355
{ type : 'GET' , url : `${ target . url } /v1/collection/1/resource/snippets/latest` , headers : { } } ,
@@ -486,10 +484,10 @@ suite('UserDataSyncService', () => {
486
484
{ type : 'GET' , url : `${ target . url } /v1/resource/snippets/latest` , headers : { 'If-None-Match' : '1' } } ,
487
485
// Global state
488
486
{ type : 'GET' , url : `${ target . url } /v1/resource/globalState/latest` , headers : { 'If-None-Match' : '1' } } ,
489
- // Profiles
490
- { type : 'GET' , url : `${ target . url } /v1/resource/profiles/latest` , headers : { 'If-None-Match' : '0' } } ,
491
487
// Prompts
492
488
{ type : 'GET' , url : `${ target . url } /v1/resource/prompts/latest` , headers : { 'If-None-Match' : '1' } } ,
489
+ // Profiles
490
+ { type : 'GET' , url : `${ target . url } /v1/resource/profiles/latest` , headers : { 'If-None-Match' : '0' } } ,
493
491
{ type : 'GET' , url : `${ target . url } /v1/collection/1/resource/settings/latest` , headers : { } } ,
494
492
{ type : 'GET' , url : `${ target . url } /v1/collection/1/resource/keybindings/latest` , headers : { } } ,
495
493
{ type : 'GET' , url : `${ target . url } /v1/collection/1/resource/snippets/latest` , headers : { } } ,
@@ -558,11 +556,11 @@ suite('UserDataSyncService', () => {
558
556
{ type : 'POST' , url : `${ target . url } /v1/resource/globalState` , headers : { 'If-Match' : '0' } } ,
559
557
// Extensions
560
558
{ type : 'GET' , url : `${ target . url } /v1/resource/extensions/latest` , headers : { } } ,
561
- // Profiles
562
- { type : 'GET' , url : `${ target . url } /v1/resource/profiles/latest` , headers : { } } ,
563
559
// Prompts
564
560
{ type : 'GET' , url : `${ target . url } /v1/resource/prompts/latest` , headers : { } } ,
565
561
{ type : 'POST' , url : `${ target . url } /v1/resource/prompts` , headers : { 'If-Match' : '0' } } ,
562
+ // Profiles
563
+ { type : 'GET' , url : `${ target . url } /v1/resource/profiles/latest` , headers : { } } ,
566
564
] ) ;
567
565
568
566
} ) ;
@@ -749,11 +747,11 @@ suite('UserDataSyncService', () => {
749
747
{ type : 'POST' , url : `${ target . url } /v1/resource/snippets` , headers : { 'If-Match' : '1' } } ,
750
748
// Global state
751
749
{ type : 'POST' , url : `${ target . url } /v1/resource/globalState` , headers : { 'If-Match' : '1' } } ,
750
+ // Prompts
751
+ { type : 'POST' , url : `${ target . url } /v1/resource/prompts` , headers : { 'If-Match' : '1' } } ,
752
752
// Profiles
753
753
{ type : 'POST' , url : `${ target . url } /v1/collection` , headers : { } } ,
754
754
{ type : 'POST' , url : `${ target . url } /v1/resource/profiles` , headers : { 'If-Match' : '0' } } ,
755
- // Prompts
756
- { type : 'POST' , url : `${ target . url } /v1/resource/prompts` , headers : { 'If-Match' : '1' } } ,
757
755
{ type : 'GET' , url : `${ target . url } /v1/collection/1/resource/keybindings/latest` , headers : { } } ,
758
756
{ type : 'GET' , url : `${ target . url } /v1/collection/1/resource/snippets/latest` , headers : { } } ,
759
757
{ type : 'GET' , url : `${ target . url } /v1/collection/1/resource/tasks/latest` , headers : { } } ,
@@ -804,10 +802,10 @@ suite('UserDataSyncService', () => {
804
802
{ type : 'GET' , url : `${ target . url } /v1/resource/snippets/latest` , headers : { 'If-None-Match' : '1' } } ,
805
803
// Global state
806
804
{ type : 'GET' , url : `${ target . url } /v1/resource/globalState/latest` , headers : { 'If-None-Match' : '1' } } ,
807
- // Profiles
808
- { type : 'GET' , url : `${ target . url } /v1/resource/profiles/latest` , headers : { 'If-None-Match' : '0' } } ,
809
805
// Prompts
810
806
{ type : 'GET' , url : `${ target . url } /v1/resource/prompts/latest` , headers : { 'If-None-Match' : '1' } } ,
807
+ // Profiles
808
+ { type : 'GET' , url : `${ target . url } /v1/resource/profiles/latest` , headers : { 'If-None-Match' : '0' } } ,
811
809
{ type : 'GET' , url : `${ target . url } /v1/collection/1/resource/settings/latest` , headers : { } } ,
812
810
{ type : 'GET' , url : `${ target . url } /v1/collection/1/resource/snippets/latest` , headers : { } } ,
813
811
{ type : 'GET' , url : `${ target . url } /v1/collection/1/resource/tasks/latest` , headers : { } } ,
@@ -817,5 +815,4 @@ suite('UserDataSyncService', () => {
817
815
] ) ;
818
816
819
817
} ) ;
820
-
821
818
} ) ;
0 commit comments