Refresh HiveGrid Cloud reference snapshot
This commit is contained in:
1 parent
5e99e14772
commit
7f88026f79
5955 files changed
+1177325
-188362
No files matched your search
+19
-4
@@ -20,6 +20,12 @@ describe("indexedEntities registry", () => {
|
||||
const keys = listIndexedEntities().map((entity) => entity.key);
|
||||
expect(keys).toContain("file");
|
||||
expect(getIndexedEntity("file")).toMatchObject({ key: "file", table: "File", index: "files", permission: "files.read_all" });
|
||||
expect(getIndexedEntity("chatMessage")).toMatchObject({
|
||||
key: "chatMessage",
|
||||
table: "TeamChatMessage",
|
||||
index: "chat-messages",
|
||||
permission: "chat.read_all_channels",
|
||||
});
|
||||
// CRM contacts (R-P6): one entry covers both private persons and organisations.
|
||||
expect(keys).toContain("contact");
|
||||
expect(getIndexedEntity("contact")).toMatchObject({
|
||||
@@ -28,6 +34,18 @@ describe("indexedEntities registry", () => {
|
||||
index: "crm-contacts",
|
||||
permission: "crm.read_all",
|
||||
});
|
||||
expect(getIndexedEntity("employee")).toMatchObject({
|
||||
key: "employee",
|
||||
table: "HrEmployeeProfile",
|
||||
index: "hr-directory",
|
||||
permission: "hr.read_all",
|
||||
});
|
||||
expect(getIndexedEntity("file")).toMatchObject({
|
||||
key: "file",
|
||||
table: "File",
|
||||
index: "files",
|
||||
permission: "files.read_all",
|
||||
});
|
||||
});
|
||||
|
||||
it("lists registered entities together with their key", () => {
|
||||
@@ -38,10 +56,7 @@ describe("indexedEntities registry", () => {
|
||||
|
||||
it("permission-gates entities for the caller's granted permissions (M057)", () => {
|
||||
expect(getIndexedEntitiesForPermissions(["crm.read"], fixture).map((entity) => entity.key)).toEqual(["contact"]);
|
||||
expect(getIndexedEntitiesForPermissions(new Set(["crm.read", "sales.read"]), fixture).map((entity) => entity.key)).toEqual([
|
||||
"contact",
|
||||
"deal",
|
||||
]);
|
||||
expect(getIndexedEntitiesForPermissions(new Set(["crm.read", "sales.read"]), fixture).map((entity) => entity.key)).toEqual(["contact", "deal"]);
|
||||
expect(getIndexedEntitiesForPermissions([], fixture)).toEqual([]);
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user