Conversation
Co-authored-by: antidodo <albin2993@gmail.com>
# Conflicts: # src/api/api.py # src/resources/database/entity.py # src/resources/utils.py # src/utils/hub_client.py
Co-authored-by: antidodo <albin2993@gmail.com>
…-storage-service' into new_hub
Co-authored-by: Nightknight3000 <alexander.roehl@uni-tuebingen.de>
…obot credentials Co-authored-by: Nightknight3000 <alexander.roehl@uni-tuebingen.de>
# Conflicts: # src/resources/utils.py # src/utils/hub_client.py
Co-authored-by: Nightknight3000 <alexander.roehl@uni-tuebingen.de>
…g entries Co-authored-by: Nightknight3000 <alexander.roehl@uni-tuebingen.de>
Co-authored-by: antidodo <albin2993@gmail.com>
# Conflicts: # poetry.lock # pyproject.toml # src/api/api.py # src/k8s/kubernetes.py # src/resources/log/entity.py # src/resources/utils.py # src/status/status.py # src/utils/hub_client.py
Co-authored-by: Nightknight3000 <alexander.roehl@uni-tuebingen.de>
|
Caution Review failedPull request was closed or merged during review 📝 WalkthroughWalkthroughThis pull request migrates hub authentication from robot-based to client-based credentials, introduces progress tracking to analyses, updates status APIs to include progress, and adds a new Docker workflow branch trigger. It also extends database schemas with progress fields and refactors authentication helpers throughout the codebase. Changes
Sequence DiagramsequenceDiagram
participant Client
participant API
participant Database
participant Hub as Hub Client
participant Logger
Client->>API: Create analysis with progress
API->>Database: create_analysis(..., progress=0)
Database-->>API: Analysis created
Logger->>API: stream_logs(log_entity)
API->>Database: progress_valid(analysis_id, log_entity.progress)
alt Progress is valid
Database-->>API: true
API->>Database: update_analysis_progress(analysis_id, progress)
API->>Hub: update_hub_status(..., run_progress=progress)
else Progress invalid or not applicable
Database-->>API: false
API->>Hub: update_hub_status(..., run_status only)
end
Hub-->>API: Status updated
Client->>API: get_status_and_progress(analysis_id)
API->>Database: Query analysis with progress
Database-->>API: {status: ..., progress: ...}
API-->>Client: {analysis_id: {status: ..., progress: ...}}
Estimated code review effort🎯 4 (Complex) | ⏱️ ~45 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 1 | ❌ 2❌ Failed checks (1 warning, 1 inconclusive)
✅ Passed checks (1 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment Tip CodeRabbit can enforce grammar and style rules using `languagetool`.Configure the |
Summary by CodeRabbit
New Features
Bug Fixes
Chores