Skip to content

feat(dataset): update training status api - #7474

Open
Nixieboluo wants to merge 4 commits into
labring:mainfrom
Nixieboluo:feat/ops-kanban
Open

feat(dataset): update training status api#7474
Nixieboluo wants to merge 4 commits into
labring:mainfrom
Nixieboluo:feat/ops-kanban

Conversation

@Nixieboluo

Copy link
Copy Markdown
Collaborator

What

What changes did you make at a high level?

  • Added OpenAPI schemas and route documentation for admin status APIs.
  • Added the /admin/status/overview contract for status overview alerts.
  • Updated training record responses to include backend-computed actions.
  • Updated dataset training query helpers to classify Chunk training states more precisely.
  • Updated the collection training detail API to use the shared training lock timeout helper.

How

How did you go about making these changes?

  • Reused the existing admin OpenAPI structure under packages/global/openapi/admin/core/status.
  • Added explicit training record action enums and included actions on each training record.
  • Reused the existing Chunk training lock timeout logic instead of adding a separate timeout rule.
  • Kept the alert contract intentionally small: the overview currently reports only Chunk vector training issues.
  • Used existing Zod schemas for request and response validation patterns.

Other Notes

What, if anything, hasn't been addressed in these code changes but should be in future changes?

  • The overview currently supports only the requested Chunk vector training alert.
  • Future status alerts can reuse the same overview response shape when additional operational checks are added.

Signed-off-by: Nixieboluo <me@sagirii.me>
Signed-off-by: Nixieboluo <me@sagirii.me>
Signed-off-by: Nixieboluo <me@sagirii.me>
@github-actions

github-actions Bot commented Aug 7, 2026

Copy link
Copy Markdown

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 24.84% 2268 / 9127
🔵 Statements 24.84% 2386 / 9605
🔵 Functions 20.83% 464 / 2227
🔵 Branches 20.48% 1078 / 5262
File CoverageNo changed files found.
Generated in workflow #2090 for commit 766598e by the Vitest Coverage Report Action

@github-actions

github-actions Bot commented Aug 7, 2026

Copy link
Copy Markdown

Admin Preview Image Ready!

ghcr.io/labring/fastgpt-pr:admin_766598e140f9730c1d070a6a2bd49c68c4f46729

🕒 Time: 2026-08-07 17:35:18 (UTC+8)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant