| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
Dev: Apply eslint & prettier suggestions (#4500) * backend * desktop * UI | 1 年前 | |
fix(api): replace path.join with template literals for URL construction Node.js 22.22.0 security fix (CVE-2025-23084) changed path.win32.join behavior: strings containing a colon (like `https:`) now get a `.\` prefix to prevent path traversal. This broke the Windows release build because path.join was being used to concatenate URL segments, producing `.\https:\github.com\...` instead of a valid URL. Replace path.join with template literals since these values are URLs, not filesystem paths. Made-with: Cursor | 5 个月前 | |
fix(api): replace path.join with template literals for URL construction Node.js 22.22.0 security fix (CVE-2025-23084) changed path.win32.join behavior: strings containing a colon (like `https:`) now get a `.\` prefix to prevent path traversal. This broke the Windows release build because path.join was being used to concatenate URL segments, producing `.\https:\github.com\...` instead of a valid URL. Replace path.join with template literals since these values are URLs, not filesystem paths. Made-with: Cursor | 5 个月前 | |
RI-7682 Strengthen API public swagger docs and setup a postinstall script to autogenerate types for clients (#5863) * feat(api): scaffold OpenAPI client generation pipeline Add tooling to auto-generate a typescript-axios client from the NestJS Swagger spec on yarn install. The spec and the generated client are treated as ephemeral build artifacts (gitignored), so the BE Swagger decorators remain the single source of truth. - Pin openapi-generator-cli to 7.14.0 via openapitools.json - Add dump-openapi.ts to extract the spec without an HTTP listener - Wire postinstall hook to regenerate the client on every install - Port ApiRedisString decorator for Buffer/RedisString wire format - Lint guard against new apiSrc/* and src/* imports from the UI References: #RI-7682 * feat(api): enable strict OpenAPI spec validation Fix 7 schema/path issues so the generator runs without --skip-validate-spec: - rdi-statistics: register union members (Table/Blocks/Info sections) as top-level schemas via @ApiExtraModels + getSchemaPath - vector-set DTOs: drop redundant isArray on number[] fields that produced nested arrays in the spec - bulk-actions and database-analysis controllers: declare the {dbInstance} path parameter via @ApiRedisParams Refs RI-7682 * feat(api): decorate Notification model for OpenAPI Add @ApiProperty/@ApiPropertyOptional to all fields on the Notification class so the generated client surfaces a real Notification interface and types NotificationsDto.notifications as Array<Notification> (was Array<object>). Refs RI-7682 * fix(api): correct database controller response types Two response-type bugs caused the generated client to expose the wrong shapes for two database endpoints: - bulkDeleteDatabaseInstance declared DeleteDatabasesDto (the request body shape) but actually returns DeleteDatabasesResponse. - exportConnections returns ExportDatabase[] but the swagger metadata was missing isArray: true, so it appeared as a single object in the spec. Fix the @ApiEndpoint responses metadata to match the actual return types. The generated client now exposes AxiosPromise<DeleteDatabasesResponse> and AxiosPromise<Array<ExportDatabase>>. Refs RI-7682 * feat(api): decorate browser/keys for OpenAPI codegen Adopt @ApiRedisString for RedisString/Buffer fields and add response-type decorators on keys.controller endpoints so the generated TS client emits proper interfaces and array-typed responses. Refs RI-7682 * feat(api): decorate browser/hash for OpenAPI codegen Refs RI-7682 * feat(api): decorate browser/list for OpenAPI codegen Refs RI-7682 * feat(api): decorate browser/set for OpenAPI codegen Refs RI-7682 * feat(api): decorate browser/z-set for OpenAPI codegen Refs RI-7682 * feat(api): decorate browser/string for OpenAPI codegen Refs RI-7682 * feat(api): decorate browser/stream for OpenAPI codegen Refs RI-7682 * feat(api): decorate browser/redisearch for OpenAPI codegen Refs RI-7682 * feat(api): decorate browser/rejson-rl for OpenAPI codegen Refs RI-7682 * feat(api): decorate cloud module for OpenAPI codegen Refs RI-7682 * feat(api): decorate pub-sub for OpenAPI codegen Refs RI-7682 * feat(api): decorate cluster-monitor models for OpenAPI codegen Refs RI-7682 * feat(api): decorate database-recommendation for OpenAPI codegen Refs RI-7682 * feat(api): decorate database model for OpenAPI codegen Refs RI-7682 * feat(api): decorate slow-log controller for OpenAPI codegen Refs RI-7682 * feat(api): decorate custom-tutorial controller for OpenAPI codegen Refs RI-7682 * feat(api): decorate database-analysis for OpenAPI codegen Apply targeted improvements from PR #4725: - list endpoint: correct description and array response type - update endpoint: correct description (analysis vs instance) - get/update endpoints: declare :id path param - models: mark NspSummary arrays with isArray, switch Key.name and NspSummary.nsp to ApiRedisString to model the wire format dbInstance path param remains declared via the class-level ApiRedisParams() introduced in the strict-validation commit. Refs RI-7682 * style(api): clean up lint after OpenAPI decoration - drop unused ApiPropertyOptional/ApiProperty imports left over after switching to ApiRedisString - prettier formatting in cloud-auth-request-info, cloud-auth-response, and rdi-statistics Refs RI-7682 * relocate auto generated client to ./redisinsight/api-client * fix(ci): unblock integration test Docker build after postinstall change * refactor(api): swap OpenAPI generator to @hey-api/openapi-ts * fix(api): restore cloud-auth controller path * refactor(api): swap OpenAPI generator to @hey-api/openapi-ts | 4 个月前 | |
Migrate package manager from yarn to npm (#6216) | 2 个月前 |
| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
| 1 年前 | ||
| 5 个月前 | ||
| 5 个月前 | ||
| 4 个月前 | ||
| 2 个月前 |