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 c60cda0 commit 50b02c5
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_names;
CREATE OR REPLACE VIEW playbook_names AS
SELECT
id,
name,
category,
spec ->> icon AS icon
FROM
playbooks
ORDER BY
name;

0 comments on commit 50b02c5

Please sign in to comment.