Skip to content

Refactor: add baseCmd to go-redis adaptor commands#473

Merged
rueian merged 1 commit intoredis:mainfrom
unknowntpo:refactor-add-baseCmd
Mar 3, 2024
Merged

Refactor: add baseCmd to go-redis adaptor commands#473
rueian merged 1 commit intoredis:mainfrom
unknowntpo:refactor-add-baseCmd

Conversation

@unknowntpo
Copy link
Copy Markdown
Contributor

This PR add baseCmd to go-redis adaptor commands.
Note that there are some Commands that can't use baseCmd due to incompatible method
signature for (*Command).SetVal, (*Command).Val, (*Command).Result.

e.g. KeyValuesCmd, ZSliceWithKeyCmd, XAutoClaimCmd, XAutoClaimJustIDCmd.

@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Feb 20, 2024

Codecov Report

Attention: Patch coverage is 50.00000% with 149 lines in your changes are missing coverage. Please review.

Project coverage is 95.40%. Comparing base (cc73e53) to head (cbed500).
Report is 35 commits behind head on main.

Files Patch % Lines
rueidiscompat/command.go 49.66% 146 Missing and 3 partials ⚠️

❗ Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #473      +/-   ##
==========================================
- Coverage   95.66%   95.40%   -0.26%     
==========================================
  Files          67       67              
  Lines       31824    31644     -180     
==========================================
- Hits        30443    30189     -254     
- Misses       1185     1259      +74     
  Partials      196      196              

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

@rueian
Copy link
Copy Markdown
Collaborator

rueian commented Feb 25, 2024

Hi @unknowntpo, We just had a ci fix on the main branch. Please rebase on the main branch to run your tests again.

There are some Commands that can't use baseCmd due to incompatible method
signature for (*Command).SetVal, (*Command).Val, (*Command).Result.

e.g. KeyValuesCmd, ZSliceWithKeyCmd, XAutoClaimCmd, XAutoClaimJustIDCmd.
@unknowntpo unknowntpo force-pushed the refactor-add-baseCmd branch from 34d7009 to cbed500 Compare March 1, 2024 14:41
@unknowntpo
Copy link
Copy Markdown
Contributor Author

@rueian PR is rebased.

@rueian rueian self-requested a review March 3, 2024 05:51
@rueian rueian merged commit bdddcdb into redis:main Mar 3, 2024
@unknowntpo unknowntpo deleted the refactor-add-baseCmd branch March 3, 2024 06:20
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.

3 participants