Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

新增操作记录的过期时间的配置【企业版】 #1562

Closed
3 tasks done
jessun opened this issue Jun 7, 2023 · 0 comments
Closed
3 tasks done

新增操作记录的过期时间的配置【企业版】 #1562

jessun opened this issue Jun 7, 2023 · 0 comments
Assignees
Labels
doc_done ee the problem for Enterprise Edition feature publish-pre2 suggestion ui this issue is is related to the FE verified the issue all pr is verified
Milestone

Comments

@jessun
Copy link
Contributor

jessun commented Jun 7, 2023

现状

sqle 支持记录、展示和导出用户的操作历史记录。对于操作历史记录,SQLe 会定时回收删除的操作历史记录。目前该过期时间硬编码为 90 天。

需求

支持用户可以对该过期时间进行自定义。

变更方案

sqle 新增两个API以支持对该过期时间的展示和存储。在后端存储中,该时间会存入表 sqle.system_variables 中。在 sqle 后端的定时任务中,会定期获取该过期时间来清理操作历史记录。
其他要求:

  • 该过期时间的默认值为 90 天;
  • 该过期时间的修改只能由平台管理员配置;
  • 该过期时间的修改为平台操作。

变更内容

  • 新增 API,获取操作记录的过期时间;
  • 新增 API,修改操作记录的过期时间;
  • 变更实现,操作记录的清理。
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
doc_done ee the problem for Enterprise Edition feature publish-pre2 suggestion ui this issue is is related to the FE verified the issue all pr is verified
Projects
None yet
Development

No branches or pull requests

5 participants