📋 Add Production Version Reference Guide for easy rollback and comparison
This commit is contained in:
150
PRODUCTION_VERSION_REFERENCE.md
Normal file
150
PRODUCTION_VERSION_REFERENCE.md
Normal file
@@ -0,0 +1,150 @@
|
||||
# 🏭 Production Version Reference Guide
|
||||
|
||||
## 📋 Version Overview
|
||||
|
||||
This document provides a clear reference for all production versions, backup points, and how to revert or compare between them.
|
||||
|
||||
## 🏷️ Tagged Versions
|
||||
|
||||
### **PRODUCTION-BACKUP-v1.0** (e0a37bf)
|
||||
- **Date**: Stable deployment before major updates
|
||||
- **Status**: ✅ Backup created
|
||||
- **Key Features**: PDF generation fixes, Bluepoint logo integration
|
||||
- **Branch**: `backup-live-version-e0a37bf`
|
||||
|
||||
### **PRODUCTION-BACKUP-v1.1** (b319ae0)
|
||||
- **Date**: Clean state before inline editing features
|
||||
- **Status**: ✅ Backup created
|
||||
- **Key Features**: Stable version without admin features
|
||||
- **Branch**: `backup-live-version-e0a37bf-clean`
|
||||
|
||||
### **CURRENT-PRODUCTION** (57770fd)
|
||||
- **Date**: Currently deployed on master
|
||||
- **Status**: 🚀 Active production
|
||||
- **Key Features**: Hybrid LLM approach, agentic RAG implementation
|
||||
- **Branch**: `origin/master`
|
||||
|
||||
## 🔄 Quick Commands
|
||||
|
||||
### **View Version Differences**
|
||||
```bash
|
||||
# Compare current preview with production backup
|
||||
git diff PRODUCTION-BACKUP-v1.0..preview-capabilities-phase1-2
|
||||
|
||||
# Compare current preview with clean backup
|
||||
git diff PRODUCTION-BACKUP-v1.1..preview-capabilities-phase1-2
|
||||
|
||||
# Compare current preview with production
|
||||
git diff CURRENT-PRODUCTION..preview-capabilities-phase1-2
|
||||
```
|
||||
|
||||
### **Revert to Backup Versions**
|
||||
```bash
|
||||
# Revert to production backup v1.0
|
||||
git checkout PRODUCTION-BACKUP-v1.0
|
||||
|
||||
# Revert to production backup v1.1
|
||||
git checkout PRODUCTION-BACKUP-v1.1
|
||||
|
||||
# Revert to current production
|
||||
git checkout CURRENT-PRODUCTION
|
||||
```
|
||||
|
||||
### **Create New Branch from Backup**
|
||||
```bash
|
||||
# Create new branch from v1.0 backup
|
||||
git checkout -b restore-from-v1.0 PRODUCTION-BACKUP-v1.0
|
||||
|
||||
# Create new branch from v1.1 backup
|
||||
git checkout -b restore-from-v1.1 PRODUCTION-BACKUP-v1.1
|
||||
```
|
||||
|
||||
## 📊 Version Comparison
|
||||
|
||||
| Version | Commit | Branch | Status | Key Features |
|
||||
|---------|--------|--------|--------|--------------|
|
||||
| **v1.0** | e0a37bf | backup-live-version-e0a37bf | ✅ Backup | PDF fixes, logo integration |
|
||||
| **v1.1** | b319ae0 | backup-live-version-e0a37bf-clean | ✅ Backup | Clean state, no admin features |
|
||||
| **Current** | 57770fd | origin/master | 🚀 Production | Hybrid LLM, agentic RAG |
|
||||
| **Preview** | 0ab005c | preview-capabilities-phase1-2 | 🔄 Development | Claude 3.7, enhanced processing |
|
||||
|
||||
## 🚨 Emergency Rollback Procedures
|
||||
|
||||
### **Quick Rollback to Production Backup**
|
||||
```bash
|
||||
# Emergency rollback to v1.0
|
||||
git checkout PRODUCTION-BACKUP-v1.0
|
||||
git checkout -b emergency-rollback-v1.0
|
||||
git push origin emergency-rollback-v1.0
|
||||
|
||||
# Emergency rollback to v1.1
|
||||
git checkout PRODUCTION-BACKUP-v1.1
|
||||
git checkout -b emergency-rollback-v1.1
|
||||
git push origin emergency-rollback-v1.1
|
||||
```
|
||||
|
||||
### **Deploy Rollback**
|
||||
```bash
|
||||
# Deploy rollback version
|
||||
firebase use cim-summarizer
|
||||
firebase deploy --only functions
|
||||
```
|
||||
|
||||
## 📈 Migration Path
|
||||
|
||||
### **v1.0 → v1.1**
|
||||
- Added clean state backup
|
||||
- Removed inline editing features
|
||||
- Maintained core functionality
|
||||
|
||||
### **v1.1 → Current Production**
|
||||
- Added hybrid LLM approach
|
||||
- Implemented agentic RAG
|
||||
- Enhanced document processing
|
||||
|
||||
### **Current → Preview**
|
||||
- Updated to Claude 3.7 latest
|
||||
- Fixed LLM processing issues
|
||||
- Enhanced error handling
|
||||
|
||||
## 🔍 Detailed Version Information
|
||||
|
||||
### **PRODUCTION-BACKUP-v1.0 (e0a37bf)**
|
||||
```
|
||||
Fix PDF generation: correct method call to use Puppeteer directly instead of generatePDFBuffer
|
||||
- PDF generation fixes
|
||||
- Bluepoint logo integration
|
||||
- GCS cleanup script
|
||||
- Firebase Functions optimization
|
||||
```
|
||||
|
||||
### **PRODUCTION-BACKUP-v1.1 (b319ae0)**
|
||||
```
|
||||
Backup: Live version before inline editing and admin features implementation
|
||||
- Clean state without admin features
|
||||
- Stable core functionality
|
||||
- PDF generation working
|
||||
- Basic document processing
|
||||
```
|
||||
|
||||
### **CURRENT-PRODUCTION (57770fd)**
|
||||
```
|
||||
feat: Implement hybrid LLM approach with enhanced prompts for CIM analysis
|
||||
- Hybrid LLM approach
|
||||
- Agentic RAG implementation
|
||||
- Enhanced document processing
|
||||
- Comprehensive CIM features
|
||||
```
|
||||
|
||||
## 📝 Notes
|
||||
|
||||
- **Always test rollbacks** in a staging environment first
|
||||
- **Document any changes** made during rollback
|
||||
- **Update this reference** when new production versions are deployed
|
||||
- **Keep backup branches** for at least 6 months after deployment
|
||||
|
||||
## 🔗 Related Documents
|
||||
|
||||
- `MIGRATION_QUICK_REFERENCE.md` - Migration procedures
|
||||
- `PRODUCTION_MIGRATION_GUIDE.md` - Detailed migration guide
|
||||
- `PHASE9_SUMMARY.md` - Latest phase implementation
|
||||
Reference in New Issue
Block a user