-
Notifications
You must be signed in to change notification settings - Fork 385
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: git sync now accepts path filters and type filters (#3189)
* 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
Showing
12 changed files
with
1,108 additions
and
835 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
1 change: 1 addition & 0 deletions
1
backend/migrations/20240209144358_git_sync_regexp_and_type.down.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
-- Add down migration script here |
13 changes: 13 additions & 0 deletions
13
backend/migrations/20240209144358_git_sync_regexp_and_type.up.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
); |
Oops, something went wrong.