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

Fix empty response for ACL CAT category subcommand for module defined categories #1140

Merged
merged 2 commits into from
Oct 10, 2024

Conversation

roshkhatri
Copy link
Member

The module commands which were added to acl categories were getting skipped when ACL CAT category command was executed.

This PR fixes the bug.
Before:

127.0.0.1:6379> ACL CAT foocategory
(empty array)

After:

127.0.0.1:6379> ACL CAT foocategory
aclcheck.module.command.test.add.new.aclcategories

Signed-off-by: Roshan Khatri <[email protected]>
@roshkhatri roshkhatri requested a review from hpatro October 9, 2024 20:05
Copy link

codecov bot commented Oct 9, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 70.65%. Comparing base (cd8de09) to head (bbf1d0c).
Report is 1 commits behind head on unstable.

Additional details and impacted files
@@            Coverage Diff            @@
##           unstable    #1140   +/-   ##
=========================================
  Coverage     70.65%   70.65%           
=========================================
  Files           114      114           
  Lines         61718    61717    -1     
=========================================
+ Hits          43606    43607    +1     
+ Misses        18112    18110    -2     
Files with missing lines Coverage Δ
src/acl.c 89.02% <ø> (-0.01%) ⬇️

... and 12 files with indirect coverage changes

@hpatro
Copy link
Collaborator

hpatro commented Oct 9, 2024

We can update the title to "Fix empty response for ACL CAT category subcommand for module defined categories"

@roshkhatri roshkhatri changed the title Fixes ACL CAT {category} bug Fix empty response for ACL CAT category subcommand for module defined categories Oct 9, 2024
Co-authored-by: Harkrishn Patro <[email protected]>
Signed-off-by: Roshan Khatri <[email protected]>
@roshkhatri roshkhatri requested a review from madolson October 9, 2024 22:52
@enjoy-binbin enjoy-binbin added the release-notes This issue should get a line item in the release notes label Oct 10, 2024
@madolson madolson merged commit 9b8a061 into valkey-io:unstable Oct 10, 2024
47 checks passed
naglera pushed a commit to naglera/placeholderkv that referenced this pull request Oct 10, 2024
… categories (valkey-io#1140)

The module commands which were added to acl categories were getting
skipped when `ACL CAT category` command was executed.

This PR fixes the bug.
Before:
```
127.0.0.1:6379> ACL CAT foocategory
(empty array)
```
After:
```
127.0.0.1:6379> ACL CAT foocategory
aclcheck.module.command.test.add.new.aclcategories
```

---------

Signed-off-by: Roshan Khatri <[email protected]>
Co-authored-by: Harkrishn Patro <[email protected]>
Signed-off-by: naglera <[email protected]>
eifrah-aws pushed a commit to eifrah-aws/valkey that referenced this pull request Oct 20, 2024
… categories (valkey-io#1140)

The module commands which were added to acl categories were getting
skipped when `ACL CAT category` command was executed.

This PR fixes the bug.
Before:
```
127.0.0.1:6379> ACL CAT foocategory
(empty array)
```
After:
```
127.0.0.1:6379> ACL CAT foocategory
aclcheck.module.command.test.add.new.aclcategories
```

---------

Signed-off-by: Roshan Khatri <[email protected]>
Co-authored-by: Harkrishn Patro <[email protected]>
roshkhatri added a commit to roshkhatri/valkey that referenced this pull request Dec 9, 2024
… categories (valkey-io#1140)

The module commands which were added to acl categories were getting
skipped when `ACL CAT category` command was executed.

This PR fixes the bug.
Before:
```
127.0.0.1:6379> ACL CAT foocategory
(empty array)
```
After:
```
127.0.0.1:6379> ACL CAT foocategory
aclcheck.module.command.test.add.new.aclcategories
```

---------

Signed-off-by: Roshan Khatri <[email protected]>
Co-authored-by: Harkrishn Patro <[email protected]>
Signed-off-by: Roshan Khatri <[email protected]>
madolson pushed a commit to madolson/valkey that referenced this pull request Jan 6, 2025
… categories (valkey-io#1140)

The module commands which were added to acl categories were getting
skipped when `ACL CAT category` command was executed.

This PR fixes the bug.
Before:
```
127.0.0.1:6379> ACL CAT foocategory
(empty array)
```
After:
```
127.0.0.1:6379> ACL CAT foocategory
aclcheck.module.command.test.add.new.aclcategories
```

---------

Signed-off-by: Roshan Khatri <[email protected]>
Co-authored-by: Harkrishn Patro <[email protected]>
@hpatro
Copy link
Collaborator

hpatro commented Jan 6, 2025

Removing from 7.2 backport as defining ACL categories via module isn't supported in 7.2 #1413

madolson pushed a commit to madolson/valkey that referenced this pull request Jan 7, 2025
… categories (valkey-io#1140)

The module commands which were added to acl categories were getting
skipped when `ACL CAT category` command was executed.

This PR fixes the bug.
Before:
```
127.0.0.1:6379> ACL CAT foocategory
(empty array)
```
After:
```
127.0.0.1:6379> ACL CAT foocategory
aclcheck.module.command.test.add.new.aclcategories
```

---------

Signed-off-by: Roshan Khatri <[email protected]>
Co-authored-by: Harkrishn Patro <[email protected]>
madolson pushed a commit that referenced this pull request Jan 7, 2025
… categories (#1140)

The module commands which were added to acl categories were getting
skipped when `ACL CAT category` command was executed.

This PR fixes the bug.
Before:
```
127.0.0.1:6379> ACL CAT foocategory
(empty array)
```
After:
```
127.0.0.1:6379> ACL CAT foocategory
aclcheck.module.command.test.add.new.aclcategories
```

---------

Signed-off-by: Roshan Khatri <[email protected]>
Co-authored-by: Harkrishn Patro <[email protected]>
roshkhatri added a commit to roshkhatri/valkey that referenced this pull request Feb 11, 2025
… categories (valkey-io#1140)

The module commands which were added to acl categories were getting
skipped when `ACL CAT category` command was executed.

This PR fixes the bug.
Before:
```
127.0.0.1:6379> ACL CAT foocategory
(empty array)
```
After:
```
127.0.0.1:6379> ACL CAT foocategory
aclcheck.module.command.test.add.new.aclcategories
```

---------

Signed-off-by: Roshan Khatri <[email protected]>
Co-authored-by: Harkrishn Patro <[email protected]>
Signed-off-by: Roshan Khatri <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release-notes This issue should get a line item in the release notes
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

4 participants