mirror of
https://codeberg.org/likwid/likwid.git
synced 2026-02-10 13:33:09 +00:00
- Backend: Rust/Axum with PostgreSQL, plugin architecture - Frontend: Astro with polished UI - Voting methods: Approval, Ranked Choice, Schulze, STAR, Quadratic - Features: Liquid delegation, transparent moderation, structured deliberation - Documentation: User and admin guides in /docs - Deployment: Docker/Podman compose files for production and demo - Demo: Seeded data with 3 communities, 13 users, 7 proposals License: AGPLv3
76 lines
2.2 KiB
JSON
76 lines
2.2 KiB
JSON
{
|
|
"db_name": "PostgreSQL",
|
|
"query": "SELECT \n wi.id,\n wi.status,\n wt.name AS workflow_name,\n wp.name AS current_phase_name,\n wp.phase_type::text AS current_phase_type,\n pi.scheduled_end,\n pi.participant_count,\n pi.quorum_reached,\n (SELECT COUNT(*) FROM workflow_phases WHERE template_id = wi.template_id) AS total_phases,\n (SELECT COUNT(*) FROM phase_instances WHERE workflow_instance_id = wi.id AND status = 'completed') AS completed_phases\n FROM workflow_instances wi\n JOIN workflow_templates wt ON wt.id = wi.template_id\n LEFT JOIN workflow_phases wp ON wp.id = wi.current_phase_id\n LEFT JOIN phase_instances pi ON pi.workflow_instance_id = wi.id AND pi.phase_id = wi.current_phase_id\n WHERE wi.id = $1",
|
|
"describe": {
|
|
"columns": [
|
|
{
|
|
"ordinal": 0,
|
|
"name": "id",
|
|
"type_info": "Uuid"
|
|
},
|
|
{
|
|
"ordinal": 1,
|
|
"name": "status",
|
|
"type_info": "Varchar"
|
|
},
|
|
{
|
|
"ordinal": 2,
|
|
"name": "workflow_name",
|
|
"type_info": "Varchar"
|
|
},
|
|
{
|
|
"ordinal": 3,
|
|
"name": "current_phase_name",
|
|
"type_info": "Varchar"
|
|
},
|
|
{
|
|
"ordinal": 4,
|
|
"name": "current_phase_type",
|
|
"type_info": "Text"
|
|
},
|
|
{
|
|
"ordinal": 5,
|
|
"name": "scheduled_end",
|
|
"type_info": "Timestamptz"
|
|
},
|
|
{
|
|
"ordinal": 6,
|
|
"name": "participant_count",
|
|
"type_info": "Int4"
|
|
},
|
|
{
|
|
"ordinal": 7,
|
|
"name": "quorum_reached",
|
|
"type_info": "Bool"
|
|
},
|
|
{
|
|
"ordinal": 8,
|
|
"name": "total_phases",
|
|
"type_info": "Int8"
|
|
},
|
|
{
|
|
"ordinal": 9,
|
|
"name": "completed_phases",
|
|
"type_info": "Int8"
|
|
}
|
|
],
|
|
"parameters": {
|
|
"Left": [
|
|
"Uuid"
|
|
]
|
|
},
|
|
"nullable": [
|
|
false,
|
|
false,
|
|
false,
|
|
false,
|
|
null,
|
|
true,
|
|
false,
|
|
false,
|
|
null,
|
|
null
|
|
]
|
|
},
|
|
"hash": "4ce35bd4ce5c2dde738b87eb3aa45c21926d67e156fda5cbdcaa5e1db2ebe785"
|
|
}
|