🔍 Code Extractor

Browse Components

Showing 20 of 2143 components

  • function generate_document_number_v2

    Generates a unique, formatted document number based on document type and department, with optional year inclusion and configurable numbering formats.

    File: /tf/active/vicechatdev/CDocs single class/config/settings.py | Lines: 400-445

    document-management numbering identifier-generation counter formatting
  • function get_next_status_v1

    Returns the next status in a predefined workflow state machine, progressing from DRAFT through to OBSOLETE.

    File: /tf/active/vicechatdev/CDocs single class/config/settings.py | Lines: 344-361

    workflow state-machine status-transition document-management approval-process
  • function is_published_status_v1

    Checks whether a given status value belongs to the published/non-editable status group by verifying its membership in NON_EDITABLE_STATUSES.

    File: /tf/active/vicechatdev/CDocs single class/config/settings.py | Lines: 330-332

    validation status-check business-logic content-management workflow
  • function is_editable_status_v1

    Validates whether a given status value belongs to the predefined group of editable statuses by checking membership in the EDITABLE_STATUSES constant.

    File: /tf/active/vicechatdev/CDocs single class/config/settings.py | Lines: 326-328

    validation status-check workflow state-management business-logic
  • function update_database_version

    Updates the database schema version in a Neo4j graph database by setting the version property on a CDocs node and recording the update timestamp.

    File: /tf/active/vicechatdev/CDocs single class/db/schema_manager.py | Lines: 829-863

    database neo4j version-management schema-migration graph-database
  • function check_database_version

    Queries a Neo4j graph database to retrieve and return the current schema version stored in CDocs nodes.

    File: /tf/active/vicechatdev/CDocs single class/db/schema_manager.py | Lines: 802-827

    database version-control neo4j graph-database schema-management
  • function update_review_comment_relationships

    Migrates Neo4j ReviewComment nodes to use explicit parent/child relationships (PARENT_COMMENT and HAS_REPLY) based on existing parent_comment_uid properties.

    File: /tf/active/vicechatdev/CDocs single class/db/schema_manager.py | Lines: 741-800

    neo4j database-migration graph-database relationship-creation cypher
  • function migrate_audit_events_v1

    Migrates orphaned AuditEvent nodes from CDocs nodes to an AuditTrail node in a Neo4j graph database by deleting old relationships and creating new ones.

    File: /tf/active/vicechatdev/CDocs single class/db/schema_manager.py | Lines: 683-739

    neo4j database-migration graph-database audit-trail data-migration
  • function ensure_audit_trail_exists

    Ensures a singleton AuditTrail node exists in a Neo4j database, creating it if absent, and returns its unique identifier.

    File: /tf/active/vicechatdev/CDocs single class/db/schema_manager.py | Lines: 638-681

    neo4j database audit initialization idempotent
  • function ensure_audit_trail_exists_v1

    Ensures a singleton AuditTrail node exists in a Neo4j database, creating it if necessary, and returns its unique identifier.

    File: /tf/active/vicechatdev/CDocs/db/schema_manager.py | Lines: 589-630

    neo4j graph-database audit-trail idempotent database-initialization
  • function init_admin_role

    Initializes an ADMIN role for a specific administrator user (wim@vicebio.com) in a Neo4j graph database by creating role relationships if they don't already exist.

    File: /tf/active/vicechatdev/CDocs single class/db/schema_manager.py | Lines: 564-636

    admin initialization role-management neo4j graph-database
  • function init_admin_role_v1

    Initializes an ADMIN role for a specific administrator user (wim@vicebio.com) in a Neo4j graph database by creating role relationships if they don't already exist.

    File: /tf/active/vicechatdev/CDocs/db/schema_manager.py | Lines: 516-587

    admin initialization role-management neo4j graph-database
  • function update_schema

    Updates a Neo4j database schema to match a specific version by running base schema initialization and applying version-specific migrations sequentially.

    File: /tf/active/vicechatdev/CDocs single class/db/schema_manager.py | Lines: 518-551

    database schema-migration neo4j versioning database-upgrade
  • function update_schema_v1

    Updates a Neo4j database schema to match a specific version, enabling schema migrations during system upgrades.

    File: /tf/active/vicechatdev/CDocs/db/schema_manager.py | Lines: 489-503

    database schema migration neo4j versioning
  • function initialize_approval_workflow_types_v1

    Initializes six predefined approval workflow types (STANDARD, PARALLEL, DEPARTMENT, QUALITY, REGULATORY, EXECUTIVE) in a Neo4j database with their configurations including min/max steps.

    File: /tf/active/vicechatdev/CDocs single class/db/schema_manager.py | Lines: 438-516

    neo4j database-initialization approval-workflow graph-database setup
  • function validate_schema

    Validates that a Neo4j database schema is correctly configured by checking for required constraints, node labels, and indexes.

    File: /tf/active/vicechatdev/CDocs single class/db/schema_manager.py | Lines: 346-436

    neo4j database schema-validation graph-database constraints
  • function validate_schema_v1

    Validates that a Neo4j database schema contains all required constraints and node labels for a controlled document management system.

    File: /tf/active/vicechatdev/CDocs/db/schema_manager.py | Lines: 348-423

    database validation schema neo4j graph-database
  • function migrate_review_assignments

    Migrates legacy review data from direct REVIEWED_BY relationships to a new ReviewerAssignment node model in a Neo4j graph database.

    File: /tf/active/vicechatdev/CDocs single class/db/schema_manager.py | Lines: 274-343

    database-migration neo4j graph-database data-transformation reviewer-assignment
  • function migrate_approval_data_v1

    Migrates legacy single-step approval records in Neo4j to a new multi-step approval model by creating ApprovalStep nodes and Approver nodes with proper relationships.

    File: /tf/active/vicechatdev/CDocs single class/db/schema_manager.py | Lines: 186-271

    database-migration neo4j graph-database data-transformation approval-workflow
  • function initialize_schema_v1

    Initializes a Neo4j database schema by creating constraints, indexes, a root CDocs node, audit trail, and migrating approval data and workflow types.

    File: /tf/active/vicechatdev/CDocs single class/db/schema_manager.py | Lines: 131-183

    neo4j database schema initialization migration