Skip to content

Commit

Permalink
feat: add a limited view for playbook spec
Browse files Browse the repository at this point in the history
  • Loading branch information
mainawycliffe committed Jan 26, 2024
1 parent 430b83c commit 226f5cf
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion views/018_playbooks.sql
Original file line number Diff line number Diff line change
Expand Up @@ -76,4 +76,16 @@ SELECT
FROM
interim
INNER JOIN agents ON interim.agent_name :: TEXT = agents.name
GROUP BY agent_name, agents.person_id, agent_id
GROUP BY agent_name, agents.person_id, agent_id;

DROP VIEW IF EXISTS playbook_items;
CREATE OR REPLACE VIEW playbook_items AS
SELECT
id,
name,
category,
spec ->> icon AS icon
FROM
playbooks
ORDER BY
name;

0 comments on commit 226f5cf

Please sign in to comment.