Skip to content

Display 3 metrix#854

Merged
Seechi-Yolo merged 3 commits into
zjrc_3.2408from
display-3-metrix
Jul 15, 2026
Merged

Display 3 metrix#854
Seechi-Yolo merged 3 commits into
zjrc_3.2408from
display-3-metrix

Conversation

@Seechi-Yolo

@Seechi-Yolo Seechi-Yolo commented Jul 15, 2026

Copy link
Copy Markdown
Collaborator

关联的 issue

https://github.com/actiontech/sqle-ee/pull/3017
设计说明文档:https://actiontech.feishu.cn/docx/Z4q1dic16oJZcJxea16cn3K0nKc

描述你的变更

SQL 管控列表恢复展示「出现数量 / 初次出现时间 / 最后一次出现时间」三列,对接后端列表接口已返回的 fp_countfirst_appear_timestamplast_receive_timestamp;后端未写入时前端按空值展示为 -,不造数。

主要改动:

  1. 列表列配置SQLEEIndex/column.tsx):恢复三列并接入既有 i18n
    • 出现数量:fp_count
    • 初次出现时间:first_appear_timestampformatTime
    • 最后一次出现时间:last_receive_timestampformatTime
  2. 排序:三列开启 sorter,通过现有 sort_field / sort_order 传给列表接口(与后端 fp_count | first_appear_timestamp | last_receive_timestamp 对齐)
  3. 单测:更新相关 snapshot;恢复排序用例,并按当前列顺序修正点击 fp_count 的断言

不改接口契约与 API 客户端;字段类型与文案本已存在,仅恢复列表展示能力。

影响范围:SQL 管控列表页(EE);依赖后端 enterprise 列表接口返回上述字段。

确认项(pr提交后操作)

Tip

请在指定复审人之前,确认并完成以下事项,完成后✅


  • 我已完成自测
  • 我已记录完整日志方便进行诊断
  • 我已在关联的 issue 里补充了实现方案
  • 我已在关联的 issue 里补充了测试影响面
  • 我已确认了变更的兼容性,如果不兼容则在 issue 里标记 not_compatible
  • 我已确认了是否要更新文档,如果要更新则在 issue 里标记 need_update_doc

建议自测关注点:

  • 列表可见「出现数量 / 初次出现时间 / 最后一次出现时间」三列
  • 有指标数据源:数值与时间正确展示;无指标数据源:三列为空(-
  • 按「出现数量 / 初次出现时间 / 最后一次出现时间」表头排序,请求参数 sort_field / sort_order 正确且列表顺序变化
  • 与后端 PR #3017 联调:空值不会被展示成 0 或无效时间

Reintroduced the first appearance and last receive timestamp columns in the SQL management table, including their respective render functions for formatting timestamps. Ensured the occurrence count column remains sortable, improving the overall functionality and user experience of the table.
Reintroduced the sorting functionality in the SQLEEIndex component tests, ensuring the filter data with sort test case is active. Updated the snapshot to reflect the new sortable columns, including occurrence count and timestamps, improving test coverage and alignment with the latest UI changes.
Updated snapshots to reflect the addition of new sortable columns in the SQL management table, including occurrence count and timestamps. This change improves test coverage and aligns with recent UI updates, ensuring accurate representation of the component's functionality.
@github-actions

Copy link
Copy Markdown

Coverage report

St.
Category Percentage Covered / Total
🟢 Statements 91.39% 14374/15728
🟡 Branches 74.52% 5835/7830
🟢 Functions 91.56% 5141/5615
🟢 Lines 91.89% 14116/15362

Test suite run success

2301 tests passing in 628 suites.

Report generated by 🧪jest coverage report action from fcfa4ae

@Seechi-Yolo
Seechi-Yolo merged commit 596496a into zjrc_3.2408 Jul 15, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant