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 support for LCS #1866

Closed
wants to merge 26 commits into from
Closed

Add support for LCS #1866

wants to merge 26 commits into from

Conversation

dvora-h
Copy link
Collaborator

@dvora-h dvora-h commented Jan 6, 2022

Pull Request check-list

Please make sure to review and check all of these items:

  • Does $ tox pass with this change (including linting)?
  • Do the CI tests pass with this change (enable it first in your forked repo and wait for the github action build to finish)?
  • Is the new or changed code fully tested?
  • Is a documentation update included (if this change modifies existing APIs, or introduces new ones)?
  • Is there an example added to the examples folder (if applicable)?

NOTE: these things are not required to open a PR and can be done
afterwards / while the PR is open.

Description of change

closes #1810

@dvora-h dvora-h added feature New feature redis-7 labels Jan 6, 2022
@dvora-h dvora-h requested a review from chayim January 6, 2022 10:20
@codecov-commenter
Copy link

codecov-commenter commented Jan 6, 2022

Codecov Report

Merging #1866 (6c38e13) into master (15f315a) will decrease coverage by 0.57%.
The diff coverage is 54.15%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1866      +/-   ##
==========================================
- Coverage   93.60%   93.03%   -0.58%     
==========================================
  Files          76       76              
  Lines       16214    16446     +232     
==========================================
+ Hits        15177    15300     +123     
- Misses       1037     1146     +109     
Impacted Files Coverage Δ
redis/client.py 89.37% <ø> (ø)
redis/cluster.py 92.42% <ø> (+0.37%) ⬆️
redis/commands/graph/commands.py 84.50% <ø> (ø)
redis/ocsp.py 0.00% <0.00%> (ø)
setup.py 0.00% <ø> (ø)
tests/test_ssl.py 48.46% <19.04%> (-5.67%) ⬇️
redis/connection.py 87.02% <37.50%> (-1.31%) ⬇️
tests/test_cluster.py 98.28% <75.00%> (-0.25%) ⬇️
redis/commands/core.py 89.93% <92.85%> (+<0.01%) ⬆️
redis/commands/search/commands.py 89.07% <93.75%> (+0.61%) ⬆️
... and 11 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 15f315a...6c38e13. Read the comment docs.

@@ -1866,6 +1866,32 @@ def unlink(self, *names):
"""
return self.execute_command("UNLINK", *names)

def lcs(self, key1, key2, len=False, idx=False, minmatchlen=0, withmatchlen=False):
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we add type hints?

Copy link
Contributor

@chayim chayim left a comment

Choose a reason for hiding this comment

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

Let's start getting type hints into our commands...

@dvora-h dvora-h requested a review from chayim January 13, 2022 12:41
@chayim
Copy link
Contributor

chayim commented Jan 27, 2022

@dvora-h Can you reseed this or make a new PR on master. 35 changes is... too many.

@dvora-h
Copy link
Collaborator Author

dvora-h commented Feb 2, 2022

Done in #1924

@dvora-h dvora-h closed this Feb 2, 2022
@dvora-h dvora-h deleted the add-lcs branch February 2, 2022 12:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add support for LCS