* add tracing to get of authed client * internal: Trigger claude when commenting with /aider (#5783) * add claude instructions files * call claude too when using aider * fix * add draft for linear claude integration * fix: workspace preprocessor fixes * tmp ee ref * fix build * update ee ref * fix: hub script preprocessor handling * fix build * good ref --------- Co-authored-by: Ruben Fiszel <ruben@windmill.dev> Co-authored-by: centdix <40307056+centdix@users.noreply.github.com>
19 lines
476 B
PL/PgSQL
19 lines
476 B
PL/PgSQL
-- Add up migration script here
|
|
CREATE OR REPLACE FUNCTION notify_runnable_version_change()
|
|
RETURNS TRIGGER AS $$
|
|
DECLARE
|
|
source_type TEXT;
|
|
kind TEXT;
|
|
BEGIN
|
|
source_type := TG_ARGV[0];
|
|
|
|
IF source_type = 'script' THEN
|
|
kind := NEW.kind;
|
|
ELSE
|
|
kind := 'flow';
|
|
END IF;
|
|
|
|
PERFORM pg_notify('notify_runnable_version_change', NEW.workspace_id || ':' || source_type || ':' || NEW.path || ':' || kind);
|
|
RETURN NEW;
|
|
END;
|
|
$$ LANGUAGE plpgsql; |