kvrocks icon indicating copy to clipboard operation
kvrocks copied to clipboard

Add the support of the LCS command

Open JoverZhang opened this issue 2 years ago • 2 comments

Close #1955

JoverZhang avatar Feb 25 '24 15:02 JoverZhang

Can someone confirm whether this logic is correct? I am also unable to determine it. Alternatively, can we ignore whether the algorithm is correct and fix it when a bug arises?

jihuayu avatar Feb 27 '24 13:02 jihuayu

As mentioned by @jihuayu, the implementation of the algorithm should be put into redis_string.cc instead of cmd_string.cc.

Understood, I have moved the algorithm to redis_string.cc as suggested. Please review the implementation and let me know if any further modifications are required.

JoverZhang avatar Feb 29 '24 02:02 JoverZhang

Quality Gate Failed Quality Gate failed

Failed conditions
9.4% Duplication on New Code (required ≤ 5%)

See analysis details on SonarCloud

sonarqubecloud[bot] avatar Mar 03 '24 11:03 sonarqubecloud[bot]

Thank you for your contribution!

PragmaTwice avatar Mar 03 '24 12:03 PragmaTwice

Hi @JoverZhang, can you add this command to our docs? You can set Since Version with unstable. https://kvrocks.apache.org/docs/supported-commands#string-commands

jihuayu avatar Mar 03 '24 12:03 jihuayu

Hi @JoverZhang, can you add this command to our docs? You can set Since Version with unstable. https://kvrocks.apache.org/docs/supported-commands#string-commands

Okay, I added it. https://github.com/apache/kvrocks-website/pull/208

JoverZhang avatar Mar 10 '24 14:03 JoverZhang