- 
                Notifications
    
You must be signed in to change notification settings  - Fork 32
 
♻️ is8141/project_node_repo #8192
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
          Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@            Coverage Diff             @@
##           master    #8192      +/-   ##
==========================================
- Coverage   88.02%   87.36%   -0.66%     
==========================================
  Files        1919     1677     -242     
  Lines       74311    67960    -6351     
  Branches     1305     1180     -125     
==========================================
- Hits        65413    59376    -6037     
+ Misses       8505     8234     -271     
+ Partials      393      350      -43     
 
 Continue to review full report in Codecov by Sentry. 
 🚀 New features to boost your workflow:
  | 
    
          
 | 
    



What do these changes do?
This pull request is a spin-off from the larger PR #8141 and can be merged independently to help reduce the size of the original PR.
Model and Validation Improvements:
BaseProjectModelby replacing customfield_validatormethods with Pydantic'sBeforeValidatorfor thedescriptionandthumbnailfields, simplifying and standardizing validation logic. [1] [2]Node,output_node,output_nodes, andparentfields to explicitly mark deprecated fields and improve OpenAPI schema documentation. [1] [2] [3]Database Utilities and Repositories:
existsmethod toProjectsRepoto efficiently check for the existence of a project, supporting optional explicit DB connections.ProjectNodesRepo.addto ensure all rows have consistent keys, raising an error on mismatch, and refactored field exclusion and serialization logic for converting DB models to API models. [1] [2] [3] [4]Other Notable Changes:
projects_nodes.pyto usevalidate_by_nameandvalidate_by_aliasfor more robust field validation.Related issue/s
projects_nodestable instead ofprojects.workbench(🗃️) #8141 ready to mergeHow to test
Testing Enhancements:
ProjectsRepo.existsmethod, covering both existing and non-existing projects with and without explicit connections.Node,ProjectNodeCreate, andProjectNode, ensuring adapter compatibility and correct field mapping. [1] [2]Dev-ops
None