@budibase/worker 3.21.0 → 3.21.2
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.
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@budibase/worker",
|
|
3
3
|
"email": "hi@budibase.com",
|
|
4
|
-
"version": "3.21.
|
|
4
|
+
"version": "3.21.2",
|
|
5
5
|
"description": "Budibase background service",
|
|
6
6
|
"main": "src/index.ts",
|
|
7
7
|
"repository": {
|
|
@@ -110,5 +110,5 @@
|
|
|
110
110
|
}
|
|
111
111
|
}
|
|
112
112
|
},
|
|
113
|
-
"gitHead": "
|
|
113
|
+
"gitHead": "c040bbfadf1faab16b7e07a56037204de3e0a311"
|
|
114
114
|
}
|
|
@@ -1210,6 +1210,61 @@ describe("scim", () => {
|
|
|
1210
1210
|
const persistedGroup = await config.api.scimGroupsAPI.find(group.id)
|
|
1211
1211
|
expect(persistedGroup).toEqual(expectedScimGroup)
|
|
1212
1212
|
})
|
|
1213
|
+
|
|
1214
|
+
it("succeeds when removing a member that no longer exists", async () => {
|
|
1215
|
+
const userToRemove = users[6]
|
|
1216
|
+
|
|
1217
|
+
// ensure the user is a member first
|
|
1218
|
+
await patchScimGroup({
|
|
1219
|
+
id: group.id,
|
|
1220
|
+
body: {
|
|
1221
|
+
schemas: ["urn:ietf:params:scim:api:messages:2.0:PatchOp"],
|
|
1222
|
+
Operations: [
|
|
1223
|
+
{
|
|
1224
|
+
op: "Add",
|
|
1225
|
+
path: "members",
|
|
1226
|
+
value: [
|
|
1227
|
+
{
|
|
1228
|
+
$ref: null,
|
|
1229
|
+
value: userToRemove.id,
|
|
1230
|
+
},
|
|
1231
|
+
],
|
|
1232
|
+
},
|
|
1233
|
+
],
|
|
1234
|
+
},
|
|
1235
|
+
})
|
|
1236
|
+
|
|
1237
|
+
// deleting the user simulates Azure holding on to a stale reference
|
|
1238
|
+
await config.api.users.deleteUser(userToRemove.id)
|
|
1239
|
+
|
|
1240
|
+
const groupBeforeRemoval = await config.api.scimGroupsAPI.find(
|
|
1241
|
+
group.id
|
|
1242
|
+
)
|
|
1243
|
+
|
|
1244
|
+
const response = await patchScimGroup({
|
|
1245
|
+
id: group.id,
|
|
1246
|
+
body: {
|
|
1247
|
+
schemas: ["urn:ietf:params:scim:api:messages:2.0:PatchOp"],
|
|
1248
|
+
Operations: [
|
|
1249
|
+
{
|
|
1250
|
+
op: "Remove",
|
|
1251
|
+
path: "members",
|
|
1252
|
+
value: [
|
|
1253
|
+
{
|
|
1254
|
+
$ref: null,
|
|
1255
|
+
value: userToRemove.id,
|
|
1256
|
+
},
|
|
1257
|
+
],
|
|
1258
|
+
},
|
|
1259
|
+
],
|
|
1260
|
+
},
|
|
1261
|
+
})
|
|
1262
|
+
|
|
1263
|
+
expect(response).toEqual(groupBeforeRemoval)
|
|
1264
|
+
|
|
1265
|
+
const persistedGroup = await config.api.scimGroupsAPI.find(group.id)
|
|
1266
|
+
expect(persistedGroup).toEqual(groupBeforeRemoval)
|
|
1267
|
+
})
|
|
1213
1268
|
})
|
|
1214
1269
|
})
|
|
1215
1270
|
})
|
|
@@ -443,23 +443,27 @@
|
|
|
443
443
|
<tr>
|
|
444
444
|
<td align="center">
|
|
445
445
|
<table class="email-content" width="100%" cellpadding="0" cellspacing="0" role="presentation">
|
|
446
|
-
|
|
447
|
-
<
|
|
448
|
-
<
|
|
449
|
-
{{
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
446
|
+
{{#if enableEmailBranding}}
|
|
447
|
+
<tr>
|
|
448
|
+
<td class="email-masthead">
|
|
449
|
+
<a href="{{ platformUrl }}" class="f-fallback email-masthead_name">
|
|
450
|
+
{{ company }}
|
|
451
|
+
</a>
|
|
452
|
+
</td>
|
|
453
|
+
</tr>
|
|
454
|
+
{{/if}}
|
|
453
455
|
{{ body }}
|
|
454
|
-
|
|
455
|
-
<
|
|
456
|
-
<
|
|
457
|
-
<
|
|
458
|
-
<
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
456
|
+
{{#if enableEmailBranding}}
|
|
457
|
+
<tr>
|
|
458
|
+
<table class="email-footer" align="center" width="570" cellpadding="0" cellspacing="0" role="presentation">
|
|
459
|
+
<tr>
|
|
460
|
+
<td class="content-cell" align="center">
|
|
461
|
+
<p class="f-fallback sub align-center">© {{ currentYear }} {{ company }}. All rights reserved.</p>
|
|
462
|
+
</td>
|
|
463
|
+
</tr>
|
|
464
|
+
</table>
|
|
465
|
+
</tr>
|
|
466
|
+
{{/if}}
|
|
463
467
|
</table>
|
|
464
468
|
</td>
|
|
465
469
|
</tr>
|
|
@@ -447,23 +447,27 @@ templates:
|
|
|
447
447
|
<tr>
|
|
448
448
|
<td align="center">
|
|
449
449
|
<table class="email-content" width="100%" cellpadding="0" cellspacing="0" role="presentation">
|
|
450
|
-
|
|
451
|
-
<
|
|
452
|
-
<
|
|
453
|
-
{{
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
450
|
+
{{#if enableEmailBranding}}
|
|
451
|
+
<tr>
|
|
452
|
+
<td class="email-masthead">
|
|
453
|
+
<a href="{{ platformUrl }}" class="f-fallback email-masthead_name">
|
|
454
|
+
{{ company }}
|
|
455
|
+
</a>
|
|
456
|
+
</td>
|
|
457
|
+
</tr>
|
|
458
|
+
{{/if}}
|
|
457
459
|
{{ body }}
|
|
458
|
-
|
|
459
|
-
<
|
|
460
|
-
<
|
|
461
|
-
<
|
|
462
|
-
<
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
460
|
+
{{#if enableEmailBranding}}
|
|
461
|
+
<tr>
|
|
462
|
+
<table class="email-footer" align="center" width="570" cellpadding="0" cellspacing="0" role="presentation">
|
|
463
|
+
<tr>
|
|
464
|
+
<td class="content-cell" align="center">
|
|
465
|
+
<p class="f-fallback sub align-center">© {{ currentYear }} {{ company }}. All rights reserved.</p>
|
|
466
|
+
</td>
|
|
467
|
+
</tr>
|
|
468
|
+
</table>
|
|
469
|
+
</tr>
|
|
470
|
+
{{/if}}
|
|
467
471
|
</table>
|
|
468
472
|
</td>
|
|
469
473
|
</tr>
|