Add Authorization, Improve Code Generation, Enhance E2E Testing and Much More#11
Merged
MelbourneDeveloper merged 30 commits intomainfrom Jan 1, 2026
Merged
Add Authorization, Improve Code Generation, Enhance E2E Testing and Much More#11MelbourneDeveloper merged 30 commits intomainfrom
MelbourneDeveloper merged 30 commits intomainfrom
Conversation
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.
Add Authorization, Improve Code Generation, and Enhance E2E Testing
TLDR
Adds JWT-based authorization to Clinical and Scheduling APIs, improves code generator to support nullable parameters, adds comprehensive E2E test coverage for Dashboard integration, and includes various bug fixes and improvements across the codebase.
Brief Details
Authorization System
Samples/Shared/Authorization/) with shared authentication helpersCode Generation Improvements
string?parameters for nullable database columns#nullable enabledirective to generated filestransaction.Connectionbefore use, returning properResult<T>errors instead of throwingDashboard E2E Testing
AuthE2ETests- Authentication and authorization flowsPatientE2ETests- Patient CRUD operationsPractitionerE2ETests- Practitioner managementAppointmentE2ETests- Appointment schedulingCalendarE2ETests- Calendar view functionalityNavigationE2ETests- UI navigationSyncE2ETests- Data synchronizationE2EFixturebase class for shared test infrastructureClinical & Scheduling API Updates
Migration Enhancements
Other Changes
.github/workflows/ci.yml)How Do The Tests Prove This Works?
Authorization Tests
Clinical.Api.Tests/AuthorizationTests.cs- 19 tests verifying:Scheduling.Api.Tests/AuthorizationTests.cs- Similar coverage for scheduling endpointsCode Generation Tests
DataProvider.Tests/BulkOperationsTests.cs- Tests bulk insert/upsert with nullable valuesE2E Integration Tests
Dashboard.Integration.Tests/- 50+ E2E tests covering:Migration Tests
Migration.Tests/SqliteMigrationTests.cs- SQLite schema migration scenariosMigration.Tests/PostgresMigrationTests.cs- PostgreSQL migration scenariosMigration.Tests/LqlDefaultsTests.cs- Default value translationMigration.Tests/SchemaDiffTests.cs- Schema comparison logicSync Tests
SyncWorkerFaultToleranceTests.cs- Verifies sync continues after failuresSyncE2ETests.cs- End-to-end sync between APIs