Initial commit - SOGOMS v1.0.0
- sogoctl: supervisor avec health checks et restart auto - sogoway: gateway HTTP, auth JWT, routing par hostname - sogoms-db: microservice MariaDB avec pool par application - Protocol IPC Unix socket JSON length-prefixed - Config YAML multi-application (prokov) - Deploy script pour container Alpine gw3 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
44
config/scenarios/prokov/statuses/list.yaml
Normal file
44
config/scenarios/prokov/statuses/list.yaml
Normal file
@@ -0,0 +1,44 @@
|
||||
# Scénario: Liste des statuts
|
||||
name: statuses_list
|
||||
version: "1.0"
|
||||
description: Retourne les statuts avec filtres optionnels
|
||||
|
||||
input:
|
||||
optional:
|
||||
- project_id
|
||||
- global
|
||||
validation:
|
||||
project_id:
|
||||
type: int
|
||||
global:
|
||||
type: bool
|
||||
|
||||
steps:
|
||||
- id: get_statuses
|
||||
service: db
|
||||
action: query
|
||||
params:
|
||||
query: |
|
||||
SELECT s.*,
|
||||
(SELECT COUNT(*) FROM tasks t WHERE t.status_id = s.id) as task_count
|
||||
FROM statuses s
|
||||
WHERE s.user_id = ?
|
||||
AND (
|
||||
(? IS NOT NULL AND (s.project_id = ? OR s.project_id IS NULL))
|
||||
OR (? IS NOT NULL AND s.project_id IS NULL)
|
||||
OR (? IS NULL AND ? IS NULL)
|
||||
)
|
||||
ORDER BY s.position ASC, s.code ASC
|
||||
args:
|
||||
- "{{auth.user_id}}"
|
||||
- "{{input.project_id}}"
|
||||
- "{{input.project_id}}"
|
||||
- "{{input.global}}"
|
||||
- "{{input.project_id}}"
|
||||
- "{{input.global}}"
|
||||
|
||||
output:
|
||||
status: 200
|
||||
body:
|
||||
success: true
|
||||
data: "{{steps.get_statuses.result}}"
|
||||
Reference in New Issue
Block a user