Overview
Portfolio Analysis enables you to analyze collections of git repositories from multiple ZIP uploads, intelligently discover projects, rank them by contribution significance, and generate comprehensive portfolio views. The system links multiple ZIPs through aportfolio_id and provides flexible filtering and ordering controls.
Multi-ZIP Workflow
Upload and Link ZIPs
Portfolio analysis supports incremental uploads where multiple ZIP files contribute to a single portfolio session:Portfolio ID Linkage
Theportfolio_id serves as the linking key across multiple uploads:
- Auto-generated: If not provided, a UUID is generated automatically
- Custom: Provide your own ID to group related uploads
- Persistent: All ZIPs with the same
portfolio_idare analyzed together
Analyze Portfolio Projects
Once ZIPs are uploaded, trigger analysis to extract project data:- Extracts ZIP to
./extracted/{zip_id}/ - Discovers git repositories recursively
- Analyzes each repository (stats, skills, insights)
- Stores extraction path in database for portfolio grouping
src/artifactminer/api/analyze.py:351-354:
Repository Discovery
Automatic Discovery
The system recursively scans extraction directories to find git repositories:Multi-Path Discovery
For portfolios with multiple ZIPs, the system discovers repositories across all extraction paths:Selective Directory Analysis
Optionally specify which directories to analyze within a ZIP:Project Ranking
Ranking Algorithm
Projects are ranked based on user contribution significance:Ranking Persistence
Ranking scores are stored in theRepoStat table:
Default Project Sorting
Projects are sorted by ranking score, then by recency:Generate Portfolio View
Basic Generation
Generate a complete portfolio view from analyzed projects:Portfolio Path Filtering
The system filters projects by extraction path prefixes:Representation Preferences
Showcase Project Selection
Limit portfolio to specific showcase projects:Custom Project Ordering
Override default ranking with manual order:Skill Highlighting and Filtering
Related Features
Skill Extraction
Learn how skills are detected and tracked across projects
Evidence Tracking
Understand how project evidence is extracted and stored
Resume Generation
Generate resume items from portfolio analysis
API Reference
Complete API documentation for portfolio endpoints