Source: factory.core/ObjVersionMixin.py
Mixin that adds version history tracking to any Axion component.
| Method | Signature | Description |
|---|---|---|
| get_three_words | get_three_words() -> str |
Generate a random 3-word label like |
| get_version_config | get_version_config() -> dict[str, str] |
Return the versioning config for this class. |
| ensure_versioned | ensure_versioned(component_name: str, package: str = '') -> None |
Ensure version tracking for this module. |
| record_version | record_version(component_name: str, version: int, package: str = '', node_count: int = 0, changed_by: str = '', change_type: str = 'IMPORT', change_notes: str = '', three_words: str = '') -> None |
Record a version for this module. |
| get_version_history | get_version_history(component_name: str, package: str = '') -> list |
Get version history for this module. |
| get_latest_version | get_latest_version(component_name: str, package: str = '') -> int |
Get latest version number for this module. |
| version_history_html | version_history_html(component_name: str, package: str = '', max_rows: int = 5) -> str |
Render version history HTML for this module. |
| build_version_history_html | build_version_history_html(history_table: str, name_column: str, component_name: str, package: str = '', max_rows: int = 5) -> str |
Render version history as HTML table. |