Skip to content

fix: update CLI get_store method to search by param instead of name a…#116

Merged
ruslanti merged 1 commit intomainfrom
fix/clistoremanagerget_store-receives-param-redis-url-but-searches-by-storename
Mar 10, 2026
Merged

fix: update CLI get_store method to search by param instead of name a…#116
ruslanti merged 1 commit intomainfrom
fix/clistoremanagerget_store-receives-param-redis-url-but-searches-by-storename

Conversation

@ruslanti
Copy link
Collaborator

@ruslanti ruslanti commented Mar 10, 2026

close the issue #115

@ruslanti ruslanti requested review from Copilot and qrdl March 10, 2026 06:31
@ruslanti ruslanti self-assigned this Mar 10, 2026
@ruslanti ruslanti added the bug Something isn't working label Mar 10, 2026
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes the CLI key-value store manager lookup so get_store searches for a configured store by its connection parameter (DB URL) rather than by its human-readable name, and adds regression tests to prevent the mismatch from returning the wrong error.

Changes:

  • Update CliStoreManager::get_store to locate a store using KvStoreOption.param.
  • Add unit tests covering empty store lists, unmatched params, and ensuring lookup is not performed by store name.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@ruslanti ruslanti marked this pull request as draft March 10, 2026 06:36
@ruslanti ruslanti force-pushed the fix/clistoremanagerget_store-receives-param-redis-url-but-searches-by-storename branch from 5cb783d to 955bc16 Compare March 10, 2026 06:41
@ruslanti ruslanti marked this pull request as ready for review March 10, 2026 06:46
Copy link
Collaborator

@qrdl qrdl left a comment

Choose a reason for hiding this comment

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

Since this fix is closing the issue please mention it in PR using close #<issueID>

@ruslanti ruslanti requested a review from qrdl March 10, 2026 10:20
@ruslanti ruslanti merged commit 0ef41e6 into main Mar 10, 2026
1 of 3 checks passed
@ruslanti ruslanti deleted the fix/clistoremanagerget_store-receives-param-redis-url-but-searches-by-storename branch March 10, 2026 12:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CliStoreManager::get_store receives param (Redis URL) but searches by store.name

3 participants