feat: List Stores Name Filter#265
Conversation
|
Important Review skippedAuto incremental reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the WalkthroughIntroduces an optional name filter to listStores across the TypeScript client and generated API layers, updates tests and nock helpers to support/query this parameter, and updates docs (README, CHANGELOG). Packaging/manifests drop NOTICE.txt and a Dependabot config reference; README badge text updated. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
actor Dev as Developer
participant Client as Client (client.ts)
participant API as OpenFgaApi (api.ts)
participant Axios as Axios
participant Svc as Service
Dev->>Client: listStores({ pageSize?, continuationToken?, name? })
Client->>API: listStores(pageSize?, continuationToken?, name?)
API->>Axios: GET /stores?{page_size,continuation_token,name}
Axios->>Svc: HTTP Request with optional name query
Svc-->>Axios: 200 OK (stores possibly filtered by name)
Axios-->>API: Response
API-->>Client: Response
Client-->>Dev: StoresPage
rect rgba(230,245,255,0.5)
note over Client,API: New/changed: optional name propagated through layers and query string
end
sequenceDiagram
autonumber
participant Test as tests/client.test.ts
participant Nock as nock (tests/helpers/nocks.ts)
participant Client as Client
Test->>Nock: getNocks().listStores({ name: "test-store" })
Note over Nock: Conditionally apply query({ name, ... })
Test->>Client: listStores({ name: "test-store" })
Client-->>Test: Asserts filtered response
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related issues
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #265 +/- ##
==========================================
+ Coverage 88.41% 88.43% +0.01%
==========================================
Files 23 23
Lines 1217 1219 +2
Branches 216 198 -18
==========================================
+ Hits 1076 1078 +2
Misses 85 85
Partials 56 56 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
|
Warning Review the following alerts detected in dependencies. According to your organization's Security Policy, it is recommended to resolve "Warn" alerts. Learn more about Socket for GitHub.
|
Supports name filter for List Stores (from openfga/sdk-generator#586) and syncs generator changes over.
Description
What problem is being solved?
SDK repo out-of-date with generator.
How is it being solved?
Run the generation and make PR with changes
What changes are made to solve it?
Run the generation and make PR with changes
References
closes #214
Review Checklist
mainSummary by CodeRabbit