Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Count by entity in Dashboard #2205

Merged
merged 11 commits into from
Feb 1, 2024
Prev Previous commit
Next Next commit
fix test
sleidig committed Jan 29, 2024
commit 15304e14527185b9037f15a6fcb374eb8d0e4c95
Original file line number Diff line number Diff line change
@@ -90,6 +90,7 @@ describe("EntityCountDashboardComponent", () => {

it("should groupBy enum values and display label", async () => {
const testGroupBy = "test";
Child.schema.set(testGroupBy, { dataType: "configurable-enum" });
component.groupBy = testGroupBy;

const children = [new Child(), new Child(), new Child(), new Child()];
@@ -113,6 +114,8 @@ describe("EntityCountDashboardComponent", () => {
value: 1,
id: c2.id,
});

Child.schema.delete(testGroupBy);
});

it("should groupBy entity references and display an entity-block", async () => {