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

Fix #104 - Support PostgreSQL alternative sink #105

Merged
merged 11 commits into from
Jan 26, 2024

Conversation

mo-esmp
Copy link
Member

@mo-esmp mo-esmp commented Jan 16, 2024

This PR aims to fix issue 104, to support Serilog.Sinks.Postgresql.Alternative sink.
Hence, existing integration tests are according to Serilog.Sinks.PostgresSQL, I added some unit tests (QueryBuilderTests.cs) for query generation based on Serilog.Sinks.Postgresql.Alternative. Once we refactored integration tests and used sinks to insert log data, we could unify tests for both sinks.

@mo-esmp mo-esmp added the enhancement New feature or request label Jan 16, 2024
@mo-esmp mo-esmp requested a review from followynne January 22, 2024 06:37
Copy link
Member

@followynne followynne left a comment

Choose a reason for hiding this comment

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

LGTM, just added some nit-picker comments to clean it up but the PR is fine and ready for merge!

About the tests, I think we need integration using the Alternative sink but we can add them later, that's fine :)

Copy link
Member

Choose a reason for hiding this comment

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

I would move it inside Postgres...Provider/Models/ folder, just for clarity :)

Copy link
Member

Choose a reason for hiding this comment

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

I would move it inside Postgres...Provider/Models/ folder, just for clarity :)

Copy link
Member

Choose a reason for hiding this comment

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

As per previous comment, would move inside Postgres...Provider/Models

Copy link
Member

Choose a reason for hiding this comment

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

as per previous comment, would move it inside Postgres...Provider/Models/

Copy link
Member

Choose a reason for hiding this comment

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

as per previous comment, would move it inside Postgres...Provider/Models/

@mo-esmp
Copy link
Member Author

mo-esmp commented Jan 25, 2024

@followynne I applied your comments; please re-review.

@followynne followynne self-requested a review January 25, 2024 10:14
Copy link
Member

@followynne followynne left a comment

Choose a reason for hiding this comment

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

@mo-esmp

all good from my side, I only see we miss the namespace change in the 4 Models/ files (from Provider to Provider.Models)

if you can apply that change, then I'd say let's go 😄

@mo-esmp mo-esmp merged commit bde69d8 into master Jan 26, 2024
4 checks passed
@mo-esmp mo-esmp deleted the feature/support-postgresql-sink-alternative branch January 26, 2024 08:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Error Message column does not exist
2 participants