Conversation
123ce0c to
9f3f8dd
Compare
|
Found 1 test failure on Blacksmith runners: Failure
|
d6907a0 to
48cd773
Compare
f180b54 to
3b49d7c
Compare
3b49d7c to
e99d002
Compare
4275d70 to
bb4001b
Compare
68210c4 to
37c9237
Compare
9d48946 to
e104821
Compare
frontend/tests/test-variant-console-enterprise/playwright/.auth/user.json
Outdated
Show resolved
Hide resolved
7bac1c4 to
d463bdf
Compare
|
@malinskibeniamin I've addressed all your comments |
| // Transform REST API settings to protobuf Value format | ||
| const values: Quota_Value[] = item.settings.map( | ||
| (setting: QuotaResponseSetting): Quota_Value => ({ | ||
| valueType: mapValueTypeToProto(setting.key), | ||
| value: setting.value, | ||
| $typeName: 'redpanda.api.dataplane.v1.Quota.Value', | ||
| }) | ||
| ); |
There was a problem hiding this comment.
Feels like we should be doing this inside the hook like useListQuotas
Also having $typeName here feels awkward, should we try to create connect query key or similar to keep REST/gRPC calls use the same cache
|
|
||
| await createClientIdQuota({ | ||
| clientId: quotaClientId, | ||
| producerByteRate: 6_291_456, // 6MB |
There was a problem hiding this comment.
nit: 6 * ONE_MB (use storage utils)
|
|
||
| await createClientIdQuota({ | ||
| clientId: quotaClientId, | ||
| producerByteRate: 5_242_880, // 5MB |
| test('should navigate to next page using pagination controls', async ({ page }) => { | ||
| const quotaPage = new QuotaPage(page); | ||
| const timestamp = Date.now(); | ||
| const quotaIds: string[] = []; | ||
| const QUOTA_COUNT = 55; // More than one page | ||
| const PAGE_SIZE = 20; |
There was a problem hiding this comment.
maybe just to make the test faster, make it a page size of 1 and quota count of 2?
| }); | ||
|
|
||
| await test.step('Reload page and verify quota still visible', async () => { | ||
| await quotaPage.reloadPage(); |
There was a problem hiding this comment.
do we need a full page reload?
| import { uiState } from '../state/ui-state'; | ||
|
|
||
| const quotasSearchSchema = z.object({ | ||
| page: fallback(z.number().int().min(0).optional(), 0), |
There was a problem hiding this comment.
page 0 is accurate? Shouldn't it be 1?
|
@claude review |
|
Claude finished @malinskibeniamin's task in 2m 2s —— View job Code Review CompleteI've reviewed the PR to remove MobX from the quotas page. Here are my findings: Architecture & Implementation ✓The migration from MobX to React Query + TanStack Router is well-executed:
Issues Found1. Missing
|
| return useQuery<QuotaResponse | null>({ | ||
| queryKey, | ||
| queryFn: async () => { | ||
| const response = await config.fetch(`${config.restBasePath}/quotas`, { |
There was a problem hiding this comment.
We should move from REST to grpc if possible
No description provided.