| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
feat: refactor label system (#3809) * fix(tag-mgmt): register legacy exception handlers + fix filter endpoint sync + add value usage index - backend/apps/app_factory.py: register handlers for legacy domain exceptions (UnauthorizedError->401, ForbiddenError->403, LimitExceededError->429, ValidationError->400, NotFoundException->404, DuplicateError->409, TagManagementConflictError->409, SignatureValidationError->401) so they no longer fall through to the generic 500 handler. Verified live: unauthenticated tag endpoints now return 401 instead of 500. - backend/apps/tag_management_app.py: convert filter_resource_tag_assignments from async/await to sync/_run to match the synchronous TagManagementDB.filter_authorized_resource_ids (which returns a dict, not a coroutine). Fixes TypeError -> HTTP 500 on the filter endpoint. - deploy/sql: add partial index idx_resource_tag_assignment_value (tenant_id, value_id, delete_flag) WHERE delete_flag='N' via new migration v2.5.4_0820_tag_value_usage_index.sql and init.sql. Benchmark at capacity limits (100 defs / 100k values / 50k assignments) showed value-usage-count was a 102ms Seq Scan; with the index it becomes a 1.28ms Index Only Scan. Idempotent (IF NOT EXISTS). * feat(tag-mgmt): unified tag management for KB/agent/MCP/skill resources - Add tenant-scoped tag libraries, definitions, values and assignments - Wire tag chips and filters into knowledge base, agent and MCP pages - Add document tag projection ledger with provider sync - Clean up assignments when KB/agent/MCP/skill resources are deleted - Add preflight and migration scripts v2.5.0-v2.5.3 - Cache assignment reads on list pages to avoid per-row HTTP requests * fix(tag-mgmt): migrate tag assignment entries and enable tag search for mine agents * feat(tag-mgmt): complete unified tag assignment flows * feat(tag-management): unify repository tag filters * feat(tag-management): localize and search agent tags * feat(tag-management): unify repository tag filtering * fix(tag-management): migrate legacy agent categories * fix(tag-management): restore rebased tag UI * feat(tag-management): support no-value tags * fix(tag-management): unblock CI checks * chore(sonar): exclude mirrored tag SQL from CPD * test(tag-management): raise patch coverage * fix(tag-management): address review feedback * fix: migrate tag services after management split | 3 天前 | |
feat: refactor label system (#3809) * fix(tag-mgmt): register legacy exception handlers + fix filter endpoint sync + add value usage index - backend/apps/app_factory.py: register handlers for legacy domain exceptions (UnauthorizedError->401, ForbiddenError->403, LimitExceededError->429, ValidationError->400, NotFoundException->404, DuplicateError->409, TagManagementConflictError->409, SignatureValidationError->401) so they no longer fall through to the generic 500 handler. Verified live: unauthenticated tag endpoints now return 401 instead of 500. - backend/apps/tag_management_app.py: convert filter_resource_tag_assignments from async/await to sync/_run to match the synchronous TagManagementDB.filter_authorized_resource_ids (which returns a dict, not a coroutine). Fixes TypeError -> HTTP 500 on the filter endpoint. - deploy/sql: add partial index idx_resource_tag_assignment_value (tenant_id, value_id, delete_flag) WHERE delete_flag='N' via new migration v2.5.4_0820_tag_value_usage_index.sql and init.sql. Benchmark at capacity limits (100 defs / 100k values / 50k assignments) showed value-usage-count was a 102ms Seq Scan; with the index it becomes a 1.28ms Index Only Scan. Idempotent (IF NOT EXISTS). * feat(tag-mgmt): unified tag management for KB/agent/MCP/skill resources - Add tenant-scoped tag libraries, definitions, values and assignments - Wire tag chips and filters into knowledge base, agent and MCP pages - Add document tag projection ledger with provider sync - Clean up assignments when KB/agent/MCP/skill resources are deleted - Add preflight and migration scripts v2.5.0-v2.5.3 - Cache assignment reads on list pages to avoid per-row HTTP requests * fix(tag-mgmt): migrate tag assignment entries and enable tag search for mine agents * feat(tag-mgmt): complete unified tag assignment flows * feat(tag-management): unify repository tag filters * feat(tag-management): localize and search agent tags * feat(tag-management): unify repository tag filtering * fix(tag-management): migrate legacy agent categories * fix(tag-management): restore rebased tag UI * feat(tag-management): support no-value tags * fix(tag-management): unblock CI checks * chore(sonar): exclude mirrored tag SQL from CPD * test(tag-management): raise patch coverage * fix(tag-management): address review feedback * fix: migrate tag services after management split | 3 天前 | |
Refactor prompt handling, agent workflow, and image builds (#3302) * Refactor prompt and skill assets * Add unified uninstall entrypoints and image build selection * Expand image build script with interactive selection * Simplify image build defaults and remove deprecated deploy scripts * Refactor prompt and agent infrastructure * Make SQL migrations idempotent * Ignore legacy env when config values are loaded * Add secret rotation and Elasticsearch key refresh support * Remove obsolete init SQL comments * Update NEXENT_SQL_STARTUP_MODE to 'off' and enhance deployment scripts * Add shared hostPath storage for workspace and skills * Refactor image builds for variant-specific dependencies * Refactor prompt handling and improve agent workflow * fix: remove obsolete comment on skill configuration parameters in migration file * fix: update offline package build process to create zip instead of tar.gz --------- Co-authored-by: hhhhsc <name> | 2 个月前 | |
feat: refactor label system (#3809) * fix(tag-mgmt): register legacy exception handlers + fix filter endpoint sync + add value usage index - backend/apps/app_factory.py: register handlers for legacy domain exceptions (UnauthorizedError->401, ForbiddenError->403, LimitExceededError->429, ValidationError->400, NotFoundException->404, DuplicateError->409, TagManagementConflictError->409, SignatureValidationError->401) so they no longer fall through to the generic 500 handler. Verified live: unauthenticated tag endpoints now return 401 instead of 500. - backend/apps/tag_management_app.py: convert filter_resource_tag_assignments from async/await to sync/_run to match the synchronous TagManagementDB.filter_authorized_resource_ids (which returns a dict, not a coroutine). Fixes TypeError -> HTTP 500 on the filter endpoint. - deploy/sql: add partial index idx_resource_tag_assignment_value (tenant_id, value_id, delete_flag) WHERE delete_flag='N' via new migration v2.5.4_0820_tag_value_usage_index.sql and init.sql. Benchmark at capacity limits (100 defs / 100k values / 50k assignments) showed value-usage-count was a 102ms Seq Scan; with the index it becomes a 1.28ms Index Only Scan. Idempotent (IF NOT EXISTS). * feat(tag-mgmt): unified tag management for KB/agent/MCP/skill resources - Add tenant-scoped tag libraries, definitions, values and assignments - Wire tag chips and filters into knowledge base, agent and MCP pages - Add document tag projection ledger with provider sync - Clean up assignments when KB/agent/MCP/skill resources are deleted - Add preflight and migration scripts v2.5.0-v2.5.3 - Cache assignment reads on list pages to avoid per-row HTTP requests * fix(tag-mgmt): migrate tag assignment entries and enable tag search for mine agents * feat(tag-mgmt): complete unified tag assignment flows * feat(tag-management): unify repository tag filters * feat(tag-management): localize and search agent tags * feat(tag-management): unify repository tag filtering * fix(tag-management): migrate legacy agent categories * fix(tag-management): restore rebased tag UI * feat(tag-management): support no-value tags * fix(tag-management): unblock CI checks * chore(sonar): exclude mirrored tag SQL from CPD * test(tag-management): raise patch coverage * fix(tag-management): address review feedback * fix: migrate tag services after management split | 3 天前 |