74 lines
1.7 KiB
Markdown
74 lines
1.7 KiB
Markdown
|
|
# Release Notes - v1.3.76
|
||
|
|
|
||
|
|
**Release Date:** 2. januar 2026
|
||
|
|
|
||
|
|
## 🐛 Bug Fixes
|
||
|
|
|
||
|
|
### Timetracking Wizard Approval
|
||
|
|
- **Fixed approval endpoint** - Wizard approval nu virker korrekt
|
||
|
|
- **Fixed parameter handling** - Router modtager nu body params korrekt som Dict
|
||
|
|
- **Fixed missing fields** - Sender nu alle nødvendige felter til wizard.approve_time_entry():
|
||
|
|
- `rounded_to` beregnes hvis auto-rounding er enabled
|
||
|
|
- `approval_note` sendes med fra frontend
|
||
|
|
- `billable` sættes til true som default
|
||
|
|
- `is_travel` sendes med fra checkbox
|
||
|
|
|
||
|
|
### Technical Details
|
||
|
|
- Ændret `/api/v1/timetracking/wizard/approve/{time_id}` endpoint
|
||
|
|
- Modtager nu `request: Dict[str, Any]` i stedet for individuelle query params
|
||
|
|
- Tilføjet `Dict, Any` imports i router
|
||
|
|
- Beregner `rounded_to` baseret på TIMETRACKING_AUTO_ROUND setting
|
||
|
|
|
||
|
|
## 📝 Files Changed
|
||
|
|
|
||
|
|
- `app/timetracking/backend/router.py` - Fixed approve_time_entry endpoint
|
||
|
|
|
||
|
|
## 🚀 Deployment Instructions
|
||
|
|
|
||
|
|
### Production Server Update
|
||
|
|
|
||
|
|
1. **SSH til serveren:**
|
||
|
|
```bash
|
||
|
|
ssh bmcadmin@172.16.31.183
|
||
|
|
```
|
||
|
|
|
||
|
|
2. **Naviger til projekt directory:**
|
||
|
|
```bash
|
||
|
|
cd /opt/bmc_hub
|
||
|
|
```
|
||
|
|
|
||
|
|
3. **Pull ny version:**
|
||
|
|
```bash
|
||
|
|
git fetch --tags
|
||
|
|
git checkout v1.3.76
|
||
|
|
```
|
||
|
|
|
||
|
|
4. **Genstart containers:**
|
||
|
|
```bash
|
||
|
|
docker-compose restart api
|
||
|
|
```
|
||
|
|
|
||
|
|
5. **Verificer:**
|
||
|
|
```bash
|
||
|
|
curl http://localhost:8001/health
|
||
|
|
# Test approval:
|
||
|
|
# Gå til http://172.16.31.183:8000/timetracking/wizard
|
||
|
|
# Godkend en tidsregistrering
|
||
|
|
```
|
||
|
|
|
||
|
|
## ⚠️ Breaking Changes
|
||
|
|
|
||
|
|
None - this is a bug fix
|
||
|
|
|
||
|
|
## 📊 Impact
|
||
|
|
|
||
|
|
- Timetracking wizard approval virker nu igen
|
||
|
|
- Ingen database ændringer nødvendige
|
||
|
|
- Ingen configuration ændringer nødvendige
|
||
|
|
|
||
|
|
---
|
||
|
|
|
||
|
|
**Git Tag:** v1.3.76
|
||
|
|
**Previous Version:** v1.3.75
|
||
|
|
**Commit:** TBD
|