Skip to content

Commit fb33f1a

Browse files
authored
Merge pull request #536 from dolthub/taylor/er-fix
graphql: Fix ER diagram error, bump multer
2 parents 260389e + af5f7f6 commit fb33f1a

File tree

4 files changed

+36
-6
lines changed

4 files changed

+36
-6
lines changed

graphql-server/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,6 @@
9191
},
9292
"resolutions": {
9393
"brace-expansion": "2.0.2",
94-
"multer": "2.0.1"
94+
"multer": "2.0.2"
9595
}
9696
}

graphql-server/src/indexes/index.model.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export function fromDoltRowsRes(rows: RawRow[]): Index[] {
3131
return {
3232
name: r.INDEX_NAME,
3333
type: getIndexType(cols, r.NON_UNIQUES === 1 || r.NON_UNIQUES === "1"),
34-
comment: r.COMMENTS,
34+
comment: r.COMMENTS ?? "",
3535
columns: cols.map(c => {
3636
return { name: c };
3737
}),

graphql-server/yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7687,9 +7687,9 @@ __metadata:
76877687
languageName: node
76887688
linkType: hard
76897689

7690-
"multer@npm:2.0.1":
7691-
version: 2.0.1
7692-
resolution: "multer@npm:2.0.1"
7690+
"multer@npm:2.0.2":
7691+
version: 2.0.2
7692+
resolution: "multer@npm:2.0.2"
76937693
dependencies:
76947694
append-field: "npm:^1.0.0"
76957695
busboy: "npm:^1.6.0"
@@ -7698,7 +7698,7 @@ __metadata:
76987698
object-assign: "npm:^4.1.1"
76997699
type-is: "npm:^1.6.18"
77007700
xtend: "npm:^4.0.2"
7701-
checksum: 10c0/2b5ab16a2bc6070690cff1f30589bb0d1218ed62051d65fdb1a8d9c65c63238c07af81ae8921de449f921ff10c849f3f6830fd07ef5640c46aaaca5c94044d25
7701+
checksum: 10c0/d3b99dd0512169bbabf15440e1bbb3ecdc000b761e5a3e4aaca40b5e5e213c6cdcc9b7dffebaa601b7691a84f6876aa87e0173ffcc47139253793cf5657819eb
77027702
languageName: node
77037703
linkType: hard
77047704

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
import { newExpectation } from "@utils/helpers";
2+
import { runTests } from "@utils/index";
3+
import { testDBHeader } from "@utils/sharedTests/dbHeaders";
4+
import {
5+
notExist,
6+
shouldBeVisible,
7+
shouldNotExist,
8+
} from "@utils/sharedTests/sharedFunctionsAndVariables";
9+
10+
const pageName = "ER Diagram";
11+
const connectionName = "CypressTestConnection";
12+
const dbName = "us-jails";
13+
const currentPage = `/database/${dbName}/schema/main`;
14+
const hasDocs = true;
15+
16+
describe(pageName, () => {
17+
const tests = [
18+
newExpectation(
19+
"should not find empty database",
20+
"[data-cy=db-data-table-empty]",
21+
notExist,
22+
),
23+
shouldNotExist("db-doc-markdown"),
24+
...testDBHeader(connectionName, dbName, hasDocs),
25+
shouldBeVisible("er-diagram-canvas"),
26+
shouldBeVisible("er-diagram-close-control-button"),
27+
shouldBeVisible("er-diagram-notation"),
28+
];
29+
runTests({ tests, currentPage, pageName });
30+
});

0 commit comments

Comments
 (0)