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

Add extension namespace macro #6676

Merged
merged 1 commit into from Feb 20, 2024

Conversation

mkindahl
Copy link
Contributor

@mkindahl mkindahl commented Feb 20, 2024

There is a mix of macros for extension namespace and hard-coded extension name in the code. This commit adds an EXTENSION_NAMESPACE macro to extension_constants.h and uses that instead of locally defined macros and hard-coded strings. It also adds a macro EXTENSION_OPTION which can be used to create a full name for an extension option using the namespace macro.

Disable-check: force-changelog-file, loader-change

@mkindahl
Copy link
Contributor Author

I didn't replace all namespace-qualified strings using the macro, but happy to do that if you think that this is a useful change.

@mkindahl mkindahl force-pushed the use-extension-namespace-macro branch from d632837 to c8cb4d0 Compare February 20, 2024 07:14
@mkindahl mkindahl marked this pull request as ready for review February 20, 2024 07:14
Copy link

codecov bot commented Feb 20, 2024

Codecov Report

Attention: 2 lines in your changes are missing coverage. Please review.

Comparison is base (59f50f2) 80.06% compared to head (c8cb4d0) 81.50%.
Report is 18 commits behind head on main.

❗ Current head c8cb4d0 differs from pull request most recent head de84a9e. Consider uploading reports for the commit de84a9e to get more accurate results

Files Patch % Lines
src/loader/loader.c 0.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6676      +/-   ##
==========================================
+ Coverage   80.06%   81.50%   +1.43%     
==========================================
  Files         190      191       +1     
  Lines       37181    36417     -764     
  Branches     9450     9464      +14     
==========================================
- Hits        29770    29682      -88     
+ Misses       2997     2971      -26     
+ Partials     4414     3764     -650     

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

@mkindahl mkindahl self-assigned this Feb 20, 2024
Copy link
Contributor

@jnidzwetzki jnidzwetzki left a comment

Choose a reason for hiding this comment

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

LGTM

@mkindahl mkindahl force-pushed the use-extension-namespace-macro branch from c8cb4d0 to 51e7bb7 Compare February 20, 2024 12:19
@mkindahl
Copy link
Contributor Author

I didn't replace all namespace-qualified strings using the macro, but happy to do that if you think that this is a useful change.

Replaced remaining cases (I think I got all of them).

@mkindahl mkindahl force-pushed the use-extension-namespace-macro branch 2 times, most recently from c5cb295 to 58cc048 Compare February 20, 2024 12:30
There is a mix of macros for extension namespace and hard-coded
extension name in the code. This commit adds an `EXTENSION_NAMESPACE`
macro to `extension_constants.h` and uses that instead of locally
defined macros and hard-coded strings. It also adds a macro
`EXTENSION_OPTION` which can be used to create a full name for an
extension option using the namespace macro.
@mkindahl mkindahl force-pushed the use-extension-namespace-macro branch from 58cc048 to de84a9e Compare February 20, 2024 12:30
@mkindahl mkindahl merged commit ea9503b into timescale:main Feb 20, 2024
41 checks passed
@mkindahl mkindahl deleted the use-extension-namespace-macro branch February 20, 2024 14:00
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.

None yet

3 participants