Skip to content

Commit ecd279c

Browse files
authored
fix: broken link in error (missing-composite-attributes) (#409)
1 parent 4aa1409 commit ecd279c

10 files changed

+101
-101
lines changed

src/errors.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ const ErrorCodes = {
165165
},
166166
IncompleteCompositeAttributes: {
167167
code: 2002,
168-
section: "incomplete-composite-attributes",
168+
section: "missing-composite-attributes",
169169
name: "IncompleteCompositeAttributes",
170170
sym: ErrorCode,
171171
},

test/connected.batch.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -546,7 +546,7 @@ describe("BatchGet", () => {
546546
expect(() =>
547547
MallStores.get([record1, record2, record3, {}]).params(),
548548
).to.throw(
549-
'Incomplete or invalid key composite attributes supplied. Missing properties: "sector" - For more detail on this error reference: https://electrodb.dev/en/reference/errors/#incomplete-composite-attributes',
549+
'Incomplete or invalid key composite attributes supplied. Missing properties: "sector" - For more detail on this error reference: https://electrodb.dev/en/reference/errors/#missing-composite-attributes',
550550
);
551551
});
552552
it("Should create params", () => {

test/connected.crud.spec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4309,7 +4309,7 @@ for (const [clientVersion, client] of [
43094309
} catch (err) {
43104310
expect(err).to.not.be.null;
43114311
expect(err.message).to.equal(
4312-
`Incomplete composite attributes: Without the composite attributes "prop7", "prop8" the following access patterns cannot be updated: "index3". If a composite attribute is readOnly and cannot be set, use the 'composite' chain method on update to supply the value for key formatting purposes. - For more detail on this error reference: https://electrodb.dev/en/reference/errors/#incomplete-composite-attributes`,
4312+
`Incomplete composite attributes: Without the composite attributes "prop7", "prop8" the following access patterns cannot be updated: "index3". If a composite attribute is readOnly and cannot be set, use the 'composite' chain method on update to supply the value for key formatting purposes. - For more detail on this error reference: https://electrodb.dev/en/reference/errors/#missing-composite-attributes`,
43134313
);
43144314
}
43154315
});
@@ -4323,7 +4323,7 @@ for (const [clientVersion, client] of [
43234323
} catch (err) {
43244324
expect(err).to.not.be.null;
43254325
expect(err.message).to.equal(
4326-
`Incomplete composite attributes: Without the composite attributes "prop7", "prop8" the following access patterns cannot be updated: "index3". If a composite attribute is readOnly and cannot be set, use the 'composite' chain method on update to supply the value for key formatting purposes. - For more detail on this error reference: https://electrodb.dev/en/reference/errors/#incomplete-composite-attributes`,
4326+
`Incomplete composite attributes: Without the composite attributes "prop7", "prop8" the following access patterns cannot be updated: "index3". If a composite attribute is readOnly and cannot be set, use the 'composite' chain method on update to supply the value for key formatting purposes. - For more detail on this error reference: https://electrodb.dev/en/reference/errors/#missing-composite-attributes`,
43274327
);
43284328
}
43294329
});

test/connected.page.spec.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -674,7 +674,7 @@ describe("Query Pagination", () => {
674674
// page: {task: "1234", project: undefined}
675675
// },
676676
// output: {
677-
// error: 'Incomplete or invalid key composite attributes supplied. Missing properties: "project" - For more detail on this error reference: https://electrodb.dev/en/reference/errors/#incomplete-composite-attributes'
677+
// error: 'Incomplete or invalid key composite attributes supplied. Missing properties: "project" - For more detail on this error reference: https://electrodb.dev/en/reference/errors/#missing-composite-attributes'
678678
// },
679679
// }, {
680680
// type: "query",
@@ -684,15 +684,15 @@ describe("Query Pagination", () => {
684684
// page: {task: "1234", project: "anc"}
685685
// },
686686
// output: {
687-
// error: 'Incomplete or invalid key composite attributes supplied. Missing properties: "employee" - For more detail on this error reference: https://electrodb.dev/en/reference/errors/#incomplete-composite-attributes'
687+
// error: 'Incomplete or invalid key composite attributes supplied. Missing properties: "employee" - For more detail on this error reference: https://electrodb.dev/en/reference/errors/#missing-composite-attributes'
688688
// },
689689
// }, {
690690
// type: "scan",
691691
// input: {
692692
// page: {task: "1234", project: undefined}
693693
// },
694694
// output: {
695-
// error: 'Incomplete or invalid key composite attributes supplied. Missing properties: "project", "employee" - For more detail on this error reference: https://electrodb.dev/en/reference/errors/#incomplete-composite-attributes'
695+
// error: 'Incomplete or invalid key composite attributes supplied. Missing properties: "project", "employee" - For more detail on this error reference: https://electrodb.dev/en/reference/errors/#missing-composite-attributes'
696696
// },
697697
// }
698698
// ];

test/connected.update.spec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2032,7 +2032,7 @@ describe("Update Item", () => {
20322032
users.update({ username }).remove(["device"]).params();
20332033

20342034
expect(error).to.throw(
2035-
`Incomplete composite attributes: Without the composite attributes "location" the following access patterns cannot be updated: "approved". If a composite attribute is readOnly and cannot be set, use the 'composite' chain method on update to supply the value for key formatting purposes. - For more detail on this error reference: https://electrodb.dev/en/reference/errors/#incomplete-composite-attributes`,
2035+
`Incomplete composite attributes: Without the composite attributes "location" the following access patterns cannot be updated: "approved". If a composite attribute is readOnly and cannot be set, use the 'composite' chain method on update to supply the value for key formatting purposes. - For more detail on this error reference: https://electrodb.dev/en/reference/errors/#missing-composite-attributes`,
20362036
);
20372037

20382038
const error2 = await users
@@ -2041,7 +2041,7 @@ describe("Update Item", () => {
20412041
.go()
20422042
.catch((err) => err);
20432043
expect(error2.message).to.equal(
2044-
`Incomplete composite attributes: Without the composite attributes "device" the following access patterns cannot be updated: "approved". If a composite attribute is readOnly and cannot be set, use the 'composite' chain method on update to supply the value for key formatting purposes. - For more detail on this error reference: https://electrodb.dev/en/reference/errors/#incomplete-composite-attributes`,
2044+
`Incomplete composite attributes: Without the composite attributes "device" the following access patterns cannot be updated: "approved". If a composite attribute is readOnly and cannot be set, use the 'composite' chain method on update to supply the value for key formatting purposes. - For more detail on this error reference: https://electrodb.dev/en/reference/errors/#missing-composite-attributes`,
20452045
);
20462046
});
20472047

0 commit comments

Comments
 (0)