Skip to content

#826 Allow node definition reload#923

Merged
mariusconjeaud merged 4 commits intorc/6.1.0from
issue/826-class-redefinition
Feb 2, 2026
Merged

#826 Allow node definition reload#923
mariusconjeaud merged 4 commits intorc/6.1.0from
issue/826-class-redefinition

Conversation

@mariusconjeaud
Copy link
Collaborator

Node class definitions now accept a __allow_reload__ flag ; if set to True, then trying to redefine the class will only raise a warning, not an error.

This is useful for hot reloading purposes like streamlit or Django applications

@codecov
Copy link

codecov bot commented Nov 28, 2025

Codecov Report

❌ Patch coverage is 93.93939% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 87.62%. Comparing base (18d0583) to head (1431435).
⚠️ Report is 5 commits behind head on rc/6.1.0.

Files with missing lines Patch % Lines
neomodel/config.py 71.42% 2 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##           rc/6.1.0     #923      +/-   ##
============================================
+ Coverage     87.60%   87.62%   +0.02%     
============================================
  Files            41       41              
  Lines          6545     6572      +27     
============================================
+ Hits           5734     5759      +25     
- Misses          811      813       +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@sonarqubecloud
Copy link

@mariusconjeaud
Copy link
Collaborator Author

EDIT : Moved allow_reload to global config, so it becomes a real development mode parameter, enabled everywhere. Defaults to False

@sonarqubecloud
Copy link

sonarqubecloud bot commented Feb 2, 2026

@mariusconjeaud mariusconjeaud merged commit 6cde765 into rc/6.1.0 Feb 2, 2026
29 checks passed
@mariusconjeaud mariusconjeaud deleted the issue/826-class-redefinition branch February 2, 2026 09:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant