Skip to content

ref(clickhouse): List send_data parameters #4667

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

Merged

Conversation

szokeasaurusrex
Copy link
Member

Explicitly list the send_data parameters in the wrapped function. The parameters are coming from here. Continue also providing *args and **kwargs, but only for forwards-compatibility.


Thank you for contributing to sentry-python! Please add tests to validate your changes, and lint your code using tox -e linters.

Running the test suite on your PR might require maintainer approval.

@szokeasaurusrex szokeasaurusrex requested a review from a team as a code owner August 4, 2025 14:57
@szokeasaurusrex szokeasaurusrex requested review from sentrivana and removed request for a team August 4, 2025 14:57
Copy link

codecov bot commented Aug 4, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 85.09%. Comparing base (84adbb7) to head (b0ae2d9).
⚠️ Report is 6 commits behind head on master.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #4667      +/-   ##
==========================================
- Coverage   85.09%   85.09%   -0.01%     
==========================================
  Files         156      156              
  Lines       15797    15823      +26     
  Branches     2671     2677       +6     
==========================================
+ Hits        13442    13464      +22     
- Misses       1578     1582       +4     
  Partials      777      777              
Files with missing lines Coverage Δ
sentry_sdk/integrations/clickhouse_driver.py 93.90% <100.00%> (-0.08%) ⬇️

... and 6 files with indirect coverage changes

Explicitly list the `send_data` parameters in the wrapped function. The parameters are coming from [here](https://github.com/mymarilyn/clickhouse-driver/blob/8a4e7c5b99b532df2b015651d893a6f36288a22c/clickhouse_driver/client.py#L634). Continue also providing `*args` and `**kwargs`, but only for forwards-compatibility.

Also, don't take the `send_data` function as a parameter in the wrap function, rather just use it directly.
@szokeasaurusrex szokeasaurusrex force-pushed the szokeasaurusrex/clickhouse-send_data-params branch from f76b786 to b0ae2d9 Compare August 5, 2025 11:28
Copy link
Member

@antonpirker antonpirker left a comment

Choose a reason for hiding this comment

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

Nice!

@szokeasaurusrex szokeasaurusrex merged commit b73f876 into master Aug 7, 2025
138 checks passed
@szokeasaurusrex szokeasaurusrex deleted the szokeasaurusrex/clickhouse-send_data-params branch August 7, 2025 15:37
sentrivana pushed a commit that referenced this pull request Aug 12, 2025
Explicitly list the `send_data` parameters in the wrapped function. The
parameters are coming from
[here](https://github.com/mymarilyn/clickhouse-driver/blob/8a4e7c5b99b532df2b015651d893a6f36288a22c/clickhouse_driver/client.py#L634).
Continue also providing `*args` and `**kwargs`, but only for
forwards-compatibility.

<!-- Describe your PR here -->

---

Thank you for contributing to `sentry-python`! Please add tests to
validate your changes, and lint your code using `tox -e linters`.

Running the test suite on your PR might require maintainer approval.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants