You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix disable_permalinks feature to properly skip permalink generation
Fixed issue where entities created with disable_permalinks=True were still getting
permalinks auto-generated from file paths.
Solution:
- Use empty string "" as sentinel value in schema._permalink to indicate permalinks are disabled
- Updated permalink property to return None when it sees the empty string sentinel
- Fixed type annotations to allow Optional[Permalink] return type
- Fixed create_or_update_entity to handle None permalinks properly
Tests:
- All disable_permalinks unit tests now pass
- Rewrote integration tests to use current DB API (engine_session_factory)
- Added comprehensive integration test coverage for disable_permalinks feature
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: phernandez <paul@basicmachines.co>
0 commit comments