Files
websitedev/SYNC-STATUS-ANALYSIS.md
T
Do Siki 410b4a2e2f
CI Pipeline with Test Management / đŸ§Ș Run Tests & Generate Reports (push) Waiting to run
CI Pipeline with Test Management / 🐳 Docker Integration Tests (push) Blocked by required conditions
CI Pipeline with Test Management / đŸ—ïž Build Docker Image (push) Blocked by required conditions
CI Pipeline with Test Management / 📊 Generate Test Summary (push) Blocked by required conditions
Test Reporting & Gherkin Analysis / đŸ§Ș Run Tests & Generate Reports (push) Waiting to run
Test Reporting & Gherkin Analysis / 📊 Analyze Test Coverage (push) Blocked by required conditions
Test Reporting & Gherkin Analysis / 🔄 Sync with Linear (push) Blocked by required conditions
Test Reporting & Gherkin Analysis / ⚡ Performance Monitoring (push) Blocked by required conditions
docs: refresh all documentation to the current state
- agent docs: Linear (ZEE-*) → Plane (MITHOME-*) everywhere (task tracking,
  commit examples, workflows, env vars)
- testing steering: replace the obsolete Gherkin/Linear reporting with the
  pre-deploy suite and the CMS test scripts
- README: rewrite to Next.js 15, local deploy, Plane, CMS, security monitoring
- DOCKER/proto docs: correct dev-stack ports (app 8080, mongo 27018) and
  Next.js 15
- content-editor-recovery: mark the old 'next steps' as done
- mark clearly-obsolete Linear/GitHub-era guides as deprecated (banner) —
  LINEAR-SYNC, GITHUB-CICD/INTEGRATION, TEST-MANAGEMENT/REPORTING, traceability,
  sync-status analysis, requirements docs
2026-08-22 19:41:50 +02:00

291 lines
8.8 KiB
Markdown

> **ELAVULT (deprecated)** — egyszeri Linear→Plane migrĂĄciĂłs elemzĂ©s (törtĂ©neti).
# Sync Status Analysis & Separation Plan
## 📊 **Jelenlegi Állapot ElemzĂ©se**
### 🔍 **ProblĂ©ma AzonosĂ­tĂĄs**
- **GitHub** és **Linear** szinkronizåció keveredik
- **Rossz projekt** frissĂŒl a GitHub irĂĄnyĂĄban
- **SzĂ©tvĂĄlasztĂĄs szĂŒksĂ©ges** a kĂ©t rendszer között
---
## 🎯 **SzinkronizĂĄciĂłs Rendszerek SzĂ©tvĂĄlasztĂĄsa**
### 📋 **1. LINEAR SYNC (Requirements & Test Management)**
**Cél:** Requirements és test case-ek kezelése
#### **Mit szinkronizĂĄlunk Linear-ral:**
- ✅ **Requirements** (ZEE-47: Contact Form Validation)
- ✅ **Test Cases** (ZEE-48: TC-001, ZEE-49: TC-002)
- ✅ **Test Execution Results** → Linear Comments
- ✅ **Traceability Matrix** maintenance
- ✅ **Test Status Updates** (Passed/Failed/Skipped)
#### **Linear API Endpoints:**
```bash
# Requirements
GET /issues?label=requirement
POST /issues (create requirement)
PUT /issues/{id} (update requirement)
# Test Cases
GET /issues?label=test-case
POST /issues (create test case)
PUT /issues/{id} (update test case)
# Comments
POST /issues/{id}/comments (test results)
```
#### **Linear Sync Triggers:**
- đŸ§Ș **Test Execution** (npm run test:*)
- 📊 **Test Management Script** (sync-test-management.js)
- 🔄 **Manual Sync** (npm run test:sync)
---
### 🐙 **2. GITHUB SYNC (Code & CI/CD)**
**Cél:** Kód verziókezelés és automatizålt deployment
#### **Mit szinkronizĂĄlunk GitHub-bal:**
- ✅ **Source Code** (proto/ directory)
- ✅ **CI/CD Pipeline** (.github/workflows/)
- ✅ **Docker Images** (ghcr.io registry)
- ✅ **Deployment** (natív docker compose — `deploy.sh`)
- ✅ **Test Artifacts** (test results, reports)
#### **GitHub API Endpoints:**
```bash
# Repository
GET /repos/{owner}/{repo}
POST /repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches
# Issues & PRs
GET /repos/{owner}/{repo}/issues
POST /repos/{owner}/{repo}/issues/{issue_number}/comments
# Actions
GET /repos/{owner}/{repo}/actions/runs
POST /repos/{owner}/{repo}/actions/workflows/{workflow_id}/dispatches
```
#### **GitHub Sync Triggers:**
- 📝 **Code Push** (git push origin main)
- 🔀 **Pull Requests** (PR creation/update)
- ⏰ **Scheduled** (daily workflows)
- 🚀 **Manual Dispatch** (workflow_dispatch)
---
## 📈 **Jelenlegi Implementáció Állapota**
### ✅ **LINEAR SYNC - Implementálva**
| Komponens | StĂĄtusz | LeĂ­rĂĄs |
|-----------|---------|---------|
| **Linear API Integration** | ✅ | MCP connector aktív |
| **Requirements Management** | ✅ | ZEE-47 lĂ©trehozva |
| **Test Case Tracking** | ✅ | ZEE-48, ZEE-49 lĂ©trehozva |
| **Test Results Sync** | ✅ | sync-test-management.js |
| **Traceability Matrix** | ✅ | TRACEABILITY-MATRIX.md |
| **Test Management Docs** | ✅ | TEST-MANAGEMENT.md |
### ⚠ **GITHUB SYNC - RĂ©szben ImplementĂĄlva**
| Komponens | Ståtusz | Probléma | Megoldås |
|-----------|---------|----------|----------|
| **GitHub Actions CI/CD** | ✅ | - | Teljesen mƱködik |
| **Docker Integration** | ✅ | - | Teljesen mƱködik |
| **Test Execution** | ✅ | - | Teljesen mƱködik |
| **Linear Sync in GitHub** | ❌ | **ROSSZ PROJEKT** | **SzĂ©tvĂĄlasztĂĄs szĂŒksĂ©ges** |
| **Deployment Integration** | ✅ | NatĂ­v docker compose (`deploy.sh`) | Nincs kĂŒlsƑ PaaS fĂŒggƑsĂ©g |
---
## 🔧 **SzĂ©tvĂĄlasztĂĄsi Terv**
### **1. LINEAR SYNC - Tiszta MegtartĂĄs**
```mermaid
graph TD
A[Test Execution] --> B[sync-test-management.js]
B --> C[Linear API]
C --> D[ZEE-47: Requirements]
C --> E[ZEE-48: TC-001]
C --> F[ZEE-49: TC-02]
G[Manual Sync] --> B
H[Test Reports] --> B
```
### **2. GITHUB SYNC - Újradefiniálás**
```mermaid
graph TD
A[Code Push] --> B[GitHub Actions]
B --> C[Run Tests]
B --> D[Build Docker]
B --> E[deploy.sh — docker compose up --build]
F[PR Creation] --> G[Test Validation]
G --> H[Deploy to Staging]
I[Manual Trigger] --> B
```
---
## 📋 **MƱveleti Terv**
### **FÁZIS 1: Linear Sync Tisztítás** ✅
- [x] Linear API integrĂĄciĂł megtartĂĄsa
- [x] Requirements és test case tracking
- [x] Test results → Linear comments
- [x] Traceability matrix maintenance
### **FÁZIS 2: GitHub Sync Újradefiniálás** ✅
- [x] **Linear sync eltĂĄvolĂ­tĂĄsa** GitHub Actions-bĂłl
- [x] **GitHub-specifikus** workflow-ok létrehozåsa
- [x] **Deploy natĂ­v docker compose-szal** (`deploy.sh`)
- [ ] **Docker registry** beĂĄllĂ­tĂĄsa
### **FÁZIS 3: SzinkronizĂĄciĂł SzĂ©tvĂĄlasztĂĄsa** 📋
- [ ] **Linear sync** → csak test management
- [ ] **GitHub sync** → csak CI/CD Ă©s deployment
- [ ] **KĂŒlön dokumentĂĄciĂł** mindkĂ©t rendszerhez
- [ ] **Monitoring** szétvålasztåsa
---
## 🎯 **Új ArchitektĂșra Diagram**
### **Jelenlegi Problémås Állapot:**
```mermaid
graph TB
subgraph "PROBLÉMA: Kevert Szinkronizáció"
A[Code Push] --> B[GitHub Actions]
B --> C[Linear Sync]
C --> D[ROSSZ PROJEKT FRISSÜL]
B --> E[Test Execution]
E --> F[Linear API]
F --> G[ZEE-47, ZEE-48, ZEE-49]
end
```
### **CĂ©l: SzĂ©tvĂĄlasztott ArchitektĂșra:**
```mermaid
graph TB
subgraph "DEVELOPMENT"
A[Code Changes] --> B[Git Push]
C[Test Execution] --> D[Test Results]
end
subgraph "LINEAR SYNC (Test Management Only)"
D --> E[sync-test-management.js]
E --> F[Linear API]
F --> G[ZEE-47: Requirements]
F --> H[ZEE-48: TC-001]
F --> I[ZEE-49: TC-002]
F --> J[Test Comments]
end
subgraph "GITHUB SYNC (CI/CD Only)"
B --> K[GitHub Actions]
K --> L[Run Tests]
K --> M[Build Docker Image]
K --> O[deploy.sh — docker compose up --build]
P[PR Creation] --> Q[Test Validation]
Q --> R[Staging Deploy]
end
subgraph "DEPLOYMENT"
O --> S[Production]
R --> T[Staging]
end
subgraph "MONITORING"
U[Linear Dashboard] --> V[Test Status]
W[GitHub Actions] --> X[Build Status]
Y[Healthcheck /api/health] --> Z[Deployment Status]
end
```
### **SzinkronizĂĄciĂłs Folyamatok:**
```mermaid
sequenceDiagram
participant Dev as Developer
participant Git as GitHub
participant Linear as Linear
participant Docker as Docker Registry
participant Server as Szerver (docker compose)
Note over Dev,Server: LINEAR SYNC (Test Management)
Dev->>Linear: Run Tests
Linear->>Linear: Update ZEE-47, ZEE-48, ZEE-49
Linear->>Linear: Add Test Comments
Note over Dev,Server: GITHUB SYNC (CI/CD)
Dev->>Git: git push
Git->>Git: GitHub Actions Trigger
Git->>Server: deploy.sh — git pull + docker compose up --build
```
---
## 📊 **Jelenlegi ProblĂ©mĂĄk ListĂĄja**
### 🚹 **KRITIKUS**
1. **Linear sync GitHub Actions-ban** → Rossz projekt frissĂŒl
2. **Docker registry beállítása** → Deploy natív compose-szal, nincs registry push
3. **GitHub secrets hiányoznak** → Linear API key
### ⚠ **FONTOS**
1. **Workflow duplikĂĄciĂł** → CI Ă©s test-management overlap
2. **DokumentĂĄciĂł keveredĂ©s** → Linear Ă©s GitHub docs össze vannak keverve
3. **Monitoring szĂ©tvĂĄlasztĂĄs** → KĂ©t kĂŒlön dashboard kell
### 📋 **KIS PROBLÉMÁK**
1. **Badge URLs** → GitHub repository URL-ek hardcoded
2. **Test result paths** → RelatĂ­v path-ok problĂ©mĂĄsak lehetnek
3. **Environment variables** → GitHub Actions vs local kĂŒlönbsĂ©gek
---
## 🎯 **KövetkezƑ LĂ©pĂ©sek PrioritĂĄs Szerint**
### **1. AZONNALI (Kritikus)**
- [x] **Linear sync eltĂĄvolĂ­tĂĄsa** GitHub Actions-bĂłl
- [x] **GitHub-specifikus workflow** létrehozåsa
- [x] **Deploy natĂ­v docker compose-szal** (`deploy.sh`)
### **2. RÖVID TÁVÚ (1-2 nap)**
- [ ] **GitHub secrets** beĂĄllĂ­tĂĄsa
- [ ] **Docker registry** konfigurĂĄlĂĄsa
- [ ] **Monitoring szétvålasztåsa**
### **3. KÖZÉP TÁVÚ (1 hĂ©t)**
- [ ] **DokumentĂĄciĂł tisztĂ­tĂĄsa**
- [ ] **Dashboard-ok szétvålasztåsa**
- [ ] **Automated testing** mindkét rendszerben
---
## 📝 **Dokumentum FrissĂ­tĂ©si Terv**
### **FrissítendƑ Fájlok:**
- [ ] `.github/workflows/ci.yml` → Linear sync eltávolítása
- [ ] `.github/workflows/test-management.yml` → GitHub-specifikusra átírás
- [ ] `scripts/sync-test-management.js` → Csak Linear sync
- [ ] `README.md` → Badge URL-ek javítása
- [ ] `GITHUB-INTEGRATION.md` → Újraírás
### **Új Dokumentumok:**
- [ ] `LINEAR-SYNC-GUIDE.md` → Linear-specifikus ĂștmutatĂł
- [ ] `GITHUB-CICD-GUIDE.md` → CI/CD ĂștmutatĂł (Gitea Actions + natĂ­v compose)
- [x] `DEPLOYMENT-GUIDE.md` → Natív docker compose deploy (`deploy.sh`)
---
**Utolsó frissítés:** 2026-08-17
**StĂĄtusz:** Dokploy eltĂĄvolĂ­tva, natĂ­v docker compose deploy + Gitea Actions
**KövetkezƑ lĂ©pĂ©s:** Docker registry opcionĂĄlis beĂĄllĂ­tĂĄsa