Skip to content

[Refactor/Chore] Normalize dataset query created_by_role values #30640

@laipz8200

Description

@laipz8200

Self Checks

  • I have read the Contributing Guide and Language Policy.
  • This is only for refactors or chores; if you would like to ask a question, please head to Discussions.
  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report, otherwise it will be closed.
  • 【中文用户 & Non English User】请使用英语提交,否则会被关闭 :)
  • Please do not modify this template :) and fill in all the required fields.

Description

Dataset query history writes created_by_role from multiple paths (app retrieval, tool callbacks, hit testing) with inconsistent role value formats. This results in mixed role strings in the dataset query table and complicates downstream filtering or analytics.

Motivation

Consistent role values are required for reliable dataset query history analysis and user-facing filtering.

Additional Context

Clarify the source-of-truth enum/value format for dataset query created_by_role and normalize all write paths to the same representation.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions