You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Resolve conflicts and adapt the audit-log feature to develop's OpenShockDb
reorg + centralized Postgres enum registration (0f5c323):
- OpenShockContext: keep develop's .RegisterPgEnums() instead of the manual
HasPostgresEnum chain.
- Move AuditAction into OpenShockDb/Enums with [PgEnum("audit_action")] and
register it in NpgsqlEnumExtensions.Enums, so it flows through both
MapPgEnums() and RegisterPgEnums(). This makes the audit_action column map as
a real Postgres enum (addresses Copilot review comment #1).
- Move UserAuditLog into OpenShockDb/Models for folder consistency.
- Point controllers/response models at the new OpenShock.Common.OpenShockDb
namespace for AuditAction/RoleType.
Recreate the migration on top of develop:
- Regenerate AddUserAuditLog (now 20260701144432, last in order) via EF so its
designer + model snapshot reflect develop's refactored enums; the old
20260612 migration sorted before AddEmailOutbox/RefactorPgEnums and left the
snapshot inconsistent. 'has-pending-model-changes' now reports clean.
Address remaining Copilot review comments:
- Email verify: use the stored UserEmailChange.OldEmail rather than the user's
current email, which can change between request and verification.
- Token audit metadata: persist canonical permission names via
PermissionTypeBindings instead of PermissionType.ToString() (Shockers_Use).
0 commit comments