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

API 支持传递参数,可以拉取已软删除数据 #1

Closed
IMBlues opened this issue Aug 10, 2021 · 0 comments · Fixed by #57 or #90
Closed

API 支持传递参数,可以拉取已软删除数据 #1

IMBlues opened this issue Aug 10, 2021 · 0 comments · Fixed by #57 or #90
Labels
Layer: api Api module related Sign: feature requested New feature request
Milestone

Comments

@IMBlues
Copy link
Contributor

IMBlues commented Aug 10, 2021

当前所有的 API 请求,都会默认过滤掉 enabled=false 的数据,可能存在一些场景,用户想拉取被删除的数据,比如用来做审计。

一个想法:

显示声明返回结果需要包含软删除的数据

/api/v2/profiles?include_disabled=1&fields=username,id

返回数据:

"results": [
      {
        "id": 1,
        "username": "admin",
        # 即使在 fields 参数中没有 enabled, 但是由于 include_deleted 的存在,会默认添加该字段返回
        "enabled": true,
      },
      # 已软删除的数据
      {
        "id": 2,
        "username": "zhangsan",
        # 软删除判断标志
        "enabled": false,
      }
]     
@IMBlues IMBlues added idea Sign: feature requested New feature request labels Aug 10, 2021
@IMBlues IMBlues added the Layer: api Api module related label Aug 17, 2021
@IMBlues IMBlues linked a pull request Sep 15, 2021 that will close this issue
@IMBlues IMBlues closed this as completed Sep 15, 2021
@IMBlues IMBlues added this to the 202109H1 milestone Sep 15, 2021
IMBlues referenced this issue in IMBlues/bk-user Sep 27, 2021
IuzreO pushed a commit to IuzreO/bk-user that referenced this issue Sep 28, 2021
feature: 审计导出功能实现
IMBlues added a commit that referenced this issue Oct 11, 2021
feat: #58 add api for exporting login log in saas & update sdk due to #1
IMBlues pushed a commit that referenced this issue Feb 17, 2022
fix: adjust css of login plain form
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Layer: api Api module related Sign: feature requested New feature request
Projects
None yet
1 participant