Add run tagging (DB column + migration + route + UI)

- Added tags VARCHAR(300) column to Run model
- Added startup ALTER TABLE migration in app.py
- New POST /run/<id>/set_tags route saves comma-separated tags
- Tag badges + collapsible edit form in run_details.html header area

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-02-22 10:05:30 -05:00
parent af2050160e
commit 98a330c416
4 changed files with 48 additions and 0 deletions

View File

@@ -35,6 +35,8 @@ class Run(db.Model):
progress = db.Column(db.Integer, default=0)
last_heartbeat = db.Column(db.DateTime, nullable=True)
tags = db.Column(db.String(300), nullable=True)
logs = db.relationship('LogEntry', backref='run', lazy=True, cascade="all, delete-orphan")
def duration(self):