Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NEOS-1489 Fix default being converted to database DEFAULT #2741

Merged
merged 9 commits into from
Sep 25, 2024

Conversation

alishakawaguchi
Copy link
Contributor

No description provided.

@alishakawaguchi alishakawaguchi added the bug Something isn't working label Sep 25, 2024
@alishakawaguchi alishakawaguchi self-assigned this Sep 25, 2024
Copy link

linear bot commented Sep 25, 2024

Copy link

vercel bot commented Sep 25, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
neosync-docs ⬜️ Ignored (Inspect) Visit Preview Sep 25, 2024 2:30pm

Copy link

codecov bot commented Sep 25, 2024

Codecov Report

Attention: Patch coverage is 31.35135% with 127 lines in your changes missing coverage. Please review.

Project coverage is 36.64%. Comparing base (caad817) to head (e0f7b7b).
Report is 5 commits behind head on main.

Files with missing lines Patch % Lines
...atasync/activities/gen-benthos-configs/generate.go 0.00% 36 Missing ⚠️
worker/pkg/benthos/sql/output_sql_insert.go 12.50% 33 Missing and 2 partials ⚠️
...ws/datasync/activities/gen-benthos-configs/sync.go 39.53% 21 Missing and 5 partials ⚠️
backend/pkg/sqlmanager/sql-manager.go 0.00% 13 Missing ⚠️
backend/pkg/sqlmanager/mssql/mssql-manager.go 0.00% 11 Missing ⚠️
backend/pkg/sqlmanager/mysql/mysql-manager.go 20.00% 4 Missing ⚠️
worker/pkg/query-builder/query-builder.go 92.85% 0 Missing and 1 partial ⚠️
.../activities/gen-benthos-configs/benthos-builder.go 0.00% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##             main    #2741       +/-   ##
===========================================
+ Coverage   11.51%   36.64%   +25.12%     
===========================================
  Files         281      282        +1     
  Lines       26096    26201      +105     
===========================================
+ Hits         3006     9602     +6596     
+ Misses      22653    15309     -7344     
- Partials      437     1290      +853     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@@ -148,8 +183,10 @@ func Test_ProcessorConfigEmptyJavascript(t *testing.T) {
queryMap := map[string]map[tabledependency.RunType]string{
"public.users": {tabledependency.RunTypeInsert: ""},
}
logger := slog.New(slog.NewTextHandler(os.Stdout, nil))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for the future, if you don't want this to log during the tests you can pass in io.Discard instead of os.Stdout.
You can search the codebase for discardLogger to see examples that I've been creating.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think at some point we probably want to have a "test logger" that we can pass in and maybe enable it if we use the -v flag for tests or something. Would be a nice QoL

@alishakawaguchi alishakawaguchi merged commit 074ff2c into main Sep 25, 2024
10 checks passed
@alishakawaguchi alishakawaguchi deleted the alisha/fix-defaults branch September 25, 2024 17:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants