v5.2.1
[5.2.1] - 2025-11-07
Added
-
Topology Visualization: Interactive network topology visualization using Cytoscape.js
- Visual representation of segment connections and circuit terminations
- Multi-topology support for service paths with multiple segments
- Automatic topology generation for both segments and service paths
- Clean NetBox Blue styled visualization with gradients and shadows
- Interactive topology viewer with hover tooltips showing node details
- Topology visualization integrated into segment and service path detail views
- Topology visualization added to circuit detail pages showing related segments/service paths
- Toggle between multiple topologies when segment belongs to multiple service paths
-
Commitment End Date Tracking: Enhanced financial commitment monitoring
- Automatic calculation of commitment end date based on install date and commitment period
- Color-coded commitment status indicators:
- Red: More than 30 days until end
- Orange: Within 30 days of end
- Green: Commitment period has ended
- Gray: No commitment period set
- Interactive tooltips showing days remaining until commitment end
- Visual feedback for commitment periods that have ended
- Commitment end date displayed in segment detail view with badge styling
- GraphQL API support for commitment end dates with ISO format
Changed
-
Circuit Extensions Refactoring: Improved code organization
- Renamed
CircuitKomoraSegmentExtensiontoCircuitSegmentExtensionfor better naming consistency - Enhanced circuit detail view with topology visualization support
- Better separation of concerns in template content extensions
- Circuit pages now show topology visualizations for associated segments
- Renamed
-
Currency Field Enhancement: Made charge_currency field required
- Removed default currency value to ensure explicit currency selection
- Migration
0031updates currency field constraints - Currency must now be explicitly set when creating financial information
- Prevents accidental use of default currency when not intended
-
Table Improvements: Enhanced data presentation
- Circuit column in SegmentCircuitMappingTable now orders by CID instead of name
- Improved ordering logic for better data organization and searchability
-
Version Update: Updated to version 5.2.1 in
pyproject.toml
Fixed
- Added missing
python-dateutildependency topyproject.tomlfor date calculations - Improved commitment end date calculation with proper timezone handling using
django.utils.timezone - Enhanced tooltip rendering with proper Bootstrap integration
- Fixed tooltip data attributes for proper display of commitment information
Technical Details
- New utility module
utils_topology.pywithTopologyBuilderclass for generating network graphs - Cytoscape.js (v3.28.1) integration for advanced graph visualization
- Reusable topology visualization templates
- Support for multiple topologies on single page with tab switching functionality
- Topology data stored as JSON and rendered client-side for performance
- Color-coding system for commitment status based on time remaining (30-day threshold)
- New GraphQL field resolver for
commitment_end_datewith ISO format output - Template extensions now check for service path membership to generate appropriate topologies
Migration Notes
- Migration 0031: Updates
charge_currencyfield to remove default value - requires explicit currency selection - New Dependencies: Added
python-dateutilforrelativedeltacalculations in commitment period tracking - Template Updates: New topology visualization templates require Cytoscape.js CDN (included automatically)
- API Changes: GraphQL API now includes
commitment_end_datefield inSegmentFinancialInfoType
Upgrade Instructions
- Run migrations:
python manage.py migrate cesnet_service_path_plugin - Install new dependency:
pip install python-dateutil(or upgrade plugin package) - Update existing financial records to set currency explicitly if using default
- Refresh browser cache to load new topology visualization assets
Full Changelog: 5.2.0...v5.2.1