SS-890: Feat: setup user endpoints and data models #18
Merged
HemanthKona merged 19 commits intomainfrom Mar 13, 2026
Merged
Conversation
- setup Mapster and Mapster.tool - Setup Db Context
- regenerate typescript data models from openapi
- enable problem details - organize program.cs file
- Setup database migration services - Setup Database Context - Setup IdesignTimeContextFactory to run the migration locally using `dotnet ef migrations ` - Setup UserEntity model - Geenrate Migrations for creating User table - Setup DTO for Create, Update, Request and Response - Add EntityFramework.InMemory package for running isolated database tests
…tion service - Move auth EF models, context, configuration, factory, and migrations into new root-level `db` project - Rename `AuthDbContext` to `UnifiedDbContext` and update all references in API and tests - Replace extension-based migration startup with `MigrationAndSeedService` - Wire migration service in `Unified.Api/Program.cs` - Add `db` project references to solution and dependent projects (`Unified.Auth`, `Unified.Tests`) - Update CI/docker config to include `db/**`
- Setup FeatureFlags using IOptions pattern - Add genereic RequiredBoolean validator for IOptions - Ad Create, Update, Response User Dtos - Add BaseEntity from Sheriff Scheduling - Add Gender Enum - Add User entity in db Models UserManagement
hrandhawa13
reviewed
Mar 12, 2026
hrandhawa13
reviewed
Mar 12, 2026
BronzBierd
reviewed
Mar 12, 2026
…ns in container - Remove seed data from migrations - Update db migrations documentation
BronzBierd
reviewed
Mar 13, 2026
Collaborator
There was a problem hiding this comment.
NO ACTION:
One small caveat on this one, we made have some incoming changes related to the conventions document we're discussing under the stats Module.
https://wiki.justice.gov.bc.ca/wiki/spaces/CSA/pages/415203380/BC+Stats
BronzBierd
reviewed
Mar 13, 2026
BronzBierd
approved these changes
Mar 13, 2026
Collaborator
BronzBierd
left a comment
There was a problem hiding this comment.
Thanks for this one.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pull Request for JIRA Ticket: ----SS-890----
Issue ticket number and link
https://jira.justice.gov.bc.ca/browse/SS-890
Description
feat: setup users endpoints crud endpoints with database operations
dotnet ef migrationsfeat: setup global error handling
Fixes # (issue)
Type of change
Please delete options that are not relevant.
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
Test Configuration:
If applicable
Checklist:
Documentation References
Put any doc references here