Skip to content

Commit

Permalink
feat: git sync now accepts path filters and type filters (#3189)
Browse files Browse the repository at this point in the history
* feat: git sync now accepts path filters and type filters

* fix git sync for folders

* UI nits

* Add folder by default in migration

* fix openapi
  • Loading branch information
gbouv committed Feb 9, 2024
1 parent 4f8ceda commit e9a6c81
Show file tree
Hide file tree
Showing 12 changed files with 1,108 additions and 835 deletions.
1 change: 1 addition & 0 deletions backend/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
-- Add down migration script here
13 changes: 13 additions & 0 deletions backend/migrations/20240209144358_git_sync_regexp_and_type.up.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
-- Add up migration script here
UPDATE workspace_settings SET git_sync = (
CASE
WHEN git_sync is null THEN null
WHEN git_sync = '[]'::jsonb THEN null
ELSE jsonb_build_object(
'repositories', git_sync,
'include_path', '["f/**"]'::jsonb,
'include_type', '["script", "flow", "app", "folder"]'::jsonb

)
END
);

0 comments on commit e9a6c81

Please sign in to comment.