@budibase/server 2.3.17-alpha.6 → 2.3.17-alpha.8
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/server",
|
|
3
3
|
"email": "hi@budibase.com",
|
|
4
|
-
"version": "2.3.17-alpha.
|
|
4
|
+
"version": "2.3.17-alpha.8",
|
|
5
5
|
"description": "Budibase Web Server",
|
|
6
6
|
"main": "src/index.ts",
|
|
7
7
|
"repository": {
|
|
@@ -43,11 +43,11 @@
|
|
|
43
43
|
"license": "GPL-3.0",
|
|
44
44
|
"dependencies": {
|
|
45
45
|
"@apidevtools/swagger-parser": "10.0.3",
|
|
46
|
-
"@budibase/backend-core": "2.3.17-alpha.
|
|
47
|
-
"@budibase/client": "2.3.17-alpha.
|
|
48
|
-
"@budibase/pro": "2.3.17-alpha.
|
|
49
|
-
"@budibase/string-templates": "2.3.17-alpha.
|
|
50
|
-
"@budibase/types": "2.3.17-alpha.
|
|
46
|
+
"@budibase/backend-core": "2.3.17-alpha.8",
|
|
47
|
+
"@budibase/client": "2.3.17-alpha.8",
|
|
48
|
+
"@budibase/pro": "2.3.17-alpha.7",
|
|
49
|
+
"@budibase/string-templates": "2.3.17-alpha.8",
|
|
50
|
+
"@budibase/types": "2.3.17-alpha.8",
|
|
51
51
|
"@bull-board/api": "3.7.0",
|
|
52
52
|
"@bull-board/koa": "3.9.4",
|
|
53
53
|
"@elastic/elasticsearch": "7.10.0",
|
|
@@ -173,5 +173,5 @@
|
|
|
173
173
|
"optionalDependencies": {
|
|
174
174
|
"oracledb": "5.3.0"
|
|
175
175
|
},
|
|
176
|
-
"gitHead": "
|
|
176
|
+
"gitHead": "c3e4bfe17d81b44b0b941abece28bd494bf7594e"
|
|
177
177
|
}
|
|
@@ -419,14 +419,16 @@ describe("row api - postgres", () => {
|
|
|
419
419
|
|
|
420
420
|
describe("given a row with relation data", () => {
|
|
421
421
|
let row: Row
|
|
422
|
+
let foreignRow: Row
|
|
422
423
|
beforeEach(async () => {
|
|
423
424
|
let [createdRow] = await populatePrimaryRows(1, {
|
|
424
425
|
createForeignRow: true,
|
|
425
426
|
})
|
|
426
427
|
row = createdRow.row
|
|
428
|
+
foreignRow = createdRow.foreignRow!
|
|
427
429
|
})
|
|
428
430
|
|
|
429
|
-
it("foreign
|
|
431
|
+
it("only foreign keys are retrieved", async () => {
|
|
430
432
|
const res = await getRow(primaryPostgresTable._id, row.id)
|
|
431
433
|
|
|
432
434
|
expect(res.status).toBe(200)
|
|
@@ -436,7 +438,15 @@ describe("row api - postgres", () => {
|
|
|
436
438
|
_id: expect.any(String),
|
|
437
439
|
_rev: expect.any(String),
|
|
438
440
|
})
|
|
441
|
+
|
|
439
442
|
expect(res.body.foreignField).toBeUndefined()
|
|
443
|
+
|
|
444
|
+
expect(
|
|
445
|
+
res.body[`fk_${auxPostgresTable.name}_foreignField`]
|
|
446
|
+
).toBeDefined()
|
|
447
|
+
expect(res.body[`fk_${auxPostgresTable.name}_foreignField`]).toBe(
|
|
448
|
+
foreignRow.id
|
|
449
|
+
)
|
|
440
450
|
})
|
|
441
451
|
})
|
|
442
452
|
})
|