Improve content loading, TOML utilities, runtime setup, theme caching, and login throttle pruning#15
Open
Improve content loading, TOML utilities, runtime setup, theme caching, and login throttle pruning#15
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.
Motivation
Description
mylonite.core.toml_utilswithrender_tomlandload_toml_fileand migrated TOML I/O to use these helpers across the codebase.PortfolioContentLoader(strict_validationflag) plusContentValidationError, changed validation to apply schema defaults for missing values, and surfaced validation errors via loader tracking.is_valid_entity_idchecks and rejecting invalid/path-traversal object IDs, and switched scaffold code to userender_toml.prune_stale_login_throttlesand invoke it in throttle inspection and registration, and introducedPANEL_LOGIN_THROTTLE_RETENTION_SECONDSsetting.resolve_runtime_paths,RuntimePaths,ensure_runtime_directories) and ensure runtime dirs are created inmanage.pyandwsgi.py, and updatedsettings.pyto use those paths and the new TOML loader.ThemeResolverto include per-file static signatures to avoid stale cache entries.intro_markdownfield and preferowner.biofor herobiowhen available.Testing
tests/apps/panel/test_services.py,tests/apps/web/test_content.py,tests/apps/web/test_content_scaffold.py,tests/apps/web/test_architecture_extensions.py,tests/apps/web/test_view_models.py, andtests/mylonite/core/test_core_modules.pyviapytestand all tests passed.Codex Task