-
Notifications
You must be signed in to change notification settings - Fork 955
[Client Introspection] Client Commands Extended Filtering #1466
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
[Client Introspection] Client Commands Extended Filtering #1466
Conversation
6819a68 to
c913dcb
Compare
094ee75 to
e518d93
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## unstable #1466 +/- ##
============================================
+ Coverage 70.98% 71.00% +0.01%
============================================
Files 123 123
Lines 65768 65912 +144
============================================
+ Hits 46687 46799 +112
- Misses 19081 19113 +32
🚀 New features to boost your workflow:
|
e518d93 to
b5cb71d
Compare
f7ad3a7 to
e3fdff0
Compare
92f685b to
c843fb9
Compare
|
@zuiderkwast @hpatro would you please help review this. I have added the additional filters requested in #668. |
|
@valkey-io/core-team requesting you to take a look at the PR. Related to #668! Thank you |
zuiderkwast
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me on a high level. The refactoring is already done in the previous PR so the implementation in this PR strait-forward.
Still, it's a large change to the user-facing interface that needs to be carefully reviewed and needs majority approval. We are near the cutoff for 8.1 and we have many features that seem more important to prioritize. We may need to postpone this feature to 9.0, or maybe we can accept it after RC1.
|
does this PR support negative filtering? |
|
@soloestoy it doesn't support negative filtering right now. Would you recommend doing it in this PR itself? |
that would be very appreciated :) |
|
@soloestoy do we want negative filtering only for flags or every other filter? Also, how would you recommend the filter command should look like with negation? |
hpatro
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mostly LGTM.
c843fb9 to
0ed63c7
Compare
Signed-off-by: Sarthak Aggarwal <[email protected]>
Signed-off-by: Sarthak Aggarwal <[email protected]>
Signed-off-by: Sarthak Aggarwal <[email protected]>
Signed-off-by: Sarthak Aggarwal <[email protected]>
Signed-off-by: Sarthak Aggarwal <[email protected]>
Signed-off-by: Sarthak Aggarwal <[email protected]>
Signed-off-by: Sarthak Aggarwal <[email protected]>
Signed-off-by: Harkrishn Patro <[email protected]>
Signed-off-by: Harkrishn Patro <[email protected]>
Co-authored-by: Madelyn Olson <[email protected]> Signed-off-by: Harkrishn Patro <[email protected]>
Signed-off-by: Harkrishn Patro <[email protected]>
Signed-off-by: Sarthak Aggarwal <[email protected]>
dd7af47 to
4b7d0d7
Compare
|
Great work @sarthakaggarwal97! It's merged now. 🎉 |
|
@sarthakaggarwal97 Please submit the doc PR. |
Documentation for additional filters introduced in valkey-io/valkey#1466 Signed-off-by: Sarthak Aggarwal <[email protected]>
…1466) In this PR, we introduce support for new filters for `CLIENT LIST` and `CLIENT KILL` commands. The new filters are: 1. FLAGS `Client must include this flag. This can be a string with bunch of flags present one after the other.` 2. NAME `client name` 3. IDLE `minimum idle time of the client` 4. LIB-NAME `clients with the specified lib name.` 5. LIB-VER `clients with the specified lib version.` 6. DB `clients currently operating on the specified database ID` 7. IP `client ip address` 8. CAPA `client capabilities` Partly Addresses: valkey-io#668 --------- Signed-off-by: Sarthak Aggarwal <[email protected]> Signed-off-by: Harkrishn Patro <[email protected]> Signed-off-by: Harkrishn Patro <[email protected]> Co-authored-by: Harkrishn Patro <[email protected]> Co-authored-by: Harkrishn Patro <[email protected]> Co-authored-by: Madelyn Olson <[email protected]> Signed-off-by: Nitai Caro <[email protected]>
…1466) In this PR, we introduce support for new filters for `CLIENT LIST` and `CLIENT KILL` commands. The new filters are: 1. FLAGS `Client must include this flag. This can be a string with bunch of flags present one after the other.` 2. NAME `client name` 3. IDLE `minimum idle time of the client` 4. LIB-NAME `clients with the specified lib name.` 5. LIB-VER `clients with the specified lib version.` 6. DB `clients currently operating on the specified database ID` 7. IP `client ip address` 8. CAPA `client capabilities` Partly Addresses: valkey-io#668 --------- Signed-off-by: Sarthak Aggarwal <[email protected]> Signed-off-by: Harkrishn Patro <[email protected]> Signed-off-by: Harkrishn Patro <[email protected]> Co-authored-by: Harkrishn Patro <[email protected]> Co-authored-by: Harkrishn Patro <[email protected]> Co-authored-by: Madelyn Olson <[email protected]>
…1466) In this PR, we introduce support for new filters for `CLIENT LIST` and `CLIENT KILL` commands. The new filters are: 1. FLAGS `Client must include this flag. This can be a string with bunch of flags present one after the other.` 2. NAME `client name` 3. IDLE `minimum idle time of the client` 4. LIB-NAME `clients with the specified lib name.` 5. LIB-VER `clients with the specified lib version.` 6. DB `clients currently operating on the specified database ID` 7. IP `client ip address` 8. CAPA `client capabilities` Partly Addresses: valkey-io#668 --------- Signed-off-by: Sarthak Aggarwal <[email protected]> Signed-off-by: Harkrishn Patro <[email protected]> Signed-off-by: Harkrishn Patro <[email protected]> Co-authored-by: Harkrishn Patro <[email protected]> Co-authored-by: Harkrishn Patro <[email protected]> Co-authored-by: Madelyn Olson <[email protected]>
…1466) In this PR, we introduce support for new filters for `CLIENT LIST` and `CLIENT KILL` commands. The new filters are: 1. FLAGS `Client must include this flag. This can be a string with bunch of flags present one after the other.` 2. NAME `client name` 3. IDLE `minimum idle time of the client` 4. LIB-NAME `clients with the specified lib name.` 5. LIB-VER `clients with the specified lib version.` 6. DB `clients currently operating on the specified database ID` 7. IP `client ip address` 8. CAPA `client capabilities` Partly Addresses: valkey-io#668 --------- Signed-off-by: Sarthak Aggarwal <[email protected]> Signed-off-by: Harkrishn Patro <[email protected]> Signed-off-by: Harkrishn Patro <[email protected]> Co-authored-by: Harkrishn Patro <[email protected]> Co-authored-by: Harkrishn Patro <[email protected]> Co-authored-by: Madelyn Olson <[email protected]> Signed-off-by: hwware <[email protected]>
…1466) In this PR, we introduce support for new filters for `CLIENT LIST` and `CLIENT KILL` commands. The new filters are: 1. FLAGS `Client must include this flag. This can be a string with bunch of flags present one after the other.` 2. NAME `client name` 3. IDLE `minimum idle time of the client` 4. LIB-NAME `clients with the specified lib name.` 5. LIB-VER `clients with the specified lib version.` 6. DB `clients currently operating on the specified database ID` 7. IP `client ip address` 8. CAPA `client capabilities` Partly Addresses: valkey-io#668 --------- Signed-off-by: Sarthak Aggarwal <[email protected]> Signed-off-by: Harkrishn Patro <[email protected]> Signed-off-by: Harkrishn Patro <[email protected]> Co-authored-by: Harkrishn Patro <[email protected]> Co-authored-by: Harkrishn Patro <[email protected]> Co-authored-by: Madelyn Olson <[email protected]> Signed-off-by: charsyam <[email protected]>
Signed-off-by: Kyle J. Davis <[email protected]>
In this PR, we introduce a support for few more filters for
CLIENT LISTandCLIENT KILLcommands. We introduce these new filters:Client must include this flag. This can be a string with bunch of flags present one after the other.client nameminimum idle time of the clientclients with the specified lib name.clients with the specified lib version.clients currently operating on the specified database IDclient ip addressclient capabilitiesPartly Addresses: #668