diff --git a/docs/topics/audit-logging.md b/docs/topics/audit-logging.md index aac626bcd..9cc38c11f 100644 --- a/docs/topics/audit-logging.md +++ b/docs/topics/audit-logging.md @@ -143,7 +143,7 @@ public class AppDbContext : DbContext, IAuditLogDbContext The `AuditLogProperty` children of your `IAuditLog` implementation have two properties `OldValueDescription` and `NewValueDescription` that can be used to hold a description of the old and new values. By default, Coalesce will populate the descriptions of foreign key properties with the [List Text](/modeling/model-components/attributes/list-text.md) of the referenced principal entity. This greatly improves the usability of the audit logs, which would otherwise only show meaningless numbers or GUIDs for foreign keys that changed. -This feature will load principal entities into the `DbContext` if they are not already loaded, which could inflict subtle differences in application functionality in rare edge cases if your application is making assumptions about navigation properties not being loaded. Typically though, this will not be an issue and will not lead unintentional information disclosure to clients as along as [IncludeTree](/concepts/include-tree.md)s are used correctly. +This feature will load principal entities into the `DbContext` if they are not already loaded, which could inflict subtle differences in application functionality in rare edge cases if your application is making assumptions about navigation properties not being loaded. Typically though, this will not be an issue and will not lead unintentional information disclosure to clients as long as [IncludeTree](/concepts/include-tree.md)s are used correctly. This feature may be disabled by calling `.WithPropertyDescriptions(PropertyDescriptionMode.None)` inside your call to `.UseCoalesceAuditLogging(...)` in your DbContext configuration. You may also populate these descriptions in your `IAuditOperationContext` implementation that was provided to `.WithAugmentation()`. diff --git a/src/coalesce-vue-vuetify3/src/components/input/c-datetime-picker.spec.tsx b/src/coalesce-vue-vuetify3/src/components/input/c-datetime-picker.spec.tsx index 2f033b00c..e33f20715 100644 --- a/src/coalesce-vue-vuetify3/src/components/input/c-datetime-picker.spec.tsx +++ b/src/coalesce-vue-vuetify3/src/components/input/c-datetime-picker.spec.tsx @@ -51,15 +51,13 @@ describe("CDatetimePicker", () => { await delay(1); expect(wrapper.text()).toContain("Year must be > 2017"); expect(model.birthDate?.getFullYear()).toBe(2017); - expect(rule).toBeCalledTimes(1); - expect(rule).toBeCalledWith(model.birthDate); + expect(rule).toHaveBeenLastCalledWith(model.birthDate); // Do it again, but with a valid input this time. The error should be gone. await wrapper.find("input").setValue("1/3/2018"); await delay(1); expect(wrapper.text()).not.toContain("Year must be > 2017"); expect(model.birthDate?.getFullYear()).toBe(2018); - expect(rule).toBeCalledTimes(2); expect(rule).toHaveBeenLastCalledWith(model.birthDate); }); });