Structuring model for first aid guideline content and updates related domain models, request/response DTOs - #28
Merged
Merged
Conversation
…Key, EndpointUrl, ModelParameters, and Confidence.
… FirstAidStep classes for improved content management
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the
✨ Finishing touches🧪 Generate unit tests (beta)
Comment |
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.
This pull request introduces a new structured model for first aid guideline content and updates related domain models, request/response DTOs, and configuration to support this change. It also adds JSON serialization handling for navigation properties to avoid circular references and cleans up some database schema and migration files.
First Aid Guideline Content Refactor:
Introduced the
FirstAidContentandFirstAidStepclasses to provide a structured format for guideline content, replacing the previous use of a plain string or object. All references to guideline content in domain models and DTOs have been updated to use this new type. [1] [2] [3] [4] [5]Updated the
FirstAidGuidelineConfigurationto handle JSON serialization/deserialization for the newFirstAidContenttype, ensuring proper storage in the database asjsonb. [1] [2]Serialization and Navigation Properties:
[JsonIgnore]attributes to navigation properties inSpeciesVenomandVenomTypeto prevent circular references and unnecessary data in API responses. [1] [2] [3] [4]Database Schema and Migrations:
ApiKey,EndpointUrl,ModelParameters, andConfidence) from the database schema and updated corresponding migration and snapshot files. [1] [2] [3] [4] [5] [6] [7] [8] [9] [10]These changes improve the structure, maintainability, and serialization safety of the first aid guideline system.