Comments (6)
已确认是bug,对于停用和启用,需要进行周期任务的删除和添加
from bk-user.
目录进行停用/启用的状态变更,传入参数:activated。
- PeriodTask 有开关字段enabled, 由该字段决定定时同步任务的开启/关闭
- 根据activated, 决定定时同步任务的enabled字段
from bk-user.
<目录删除>(https://github.com/TencentBlueKing/bk-user/issues/901) 的需求也涉及到定时同步任务的关停及启用问题,感觉这块在目录删除这里一并处理掉就可以?
- 任务暂停可以通过周期任务表PeriodTask 的enabled字段控制
- 任务删除的话 可以复用原来的任务删除逻辑 :
@nannan00
from bk-user.
<目录删除>(https://github.com/TencentBlueKing/bk-user/issues/901) 的需求也涉及到定时同步任务的关停及启用问题,感觉这块在目录删除这里一并处理掉就可以?
任务暂停可以通过周期任务表PeriodTask 的enabled字段控制
任务删除的话 可以复用原来的任务删除逻辑 :
定时任务的删除只是针对目录硬删除阶段
from bk-user.
可以,从目前产品设计来看,目录停用后才可以进行目录的删除或还原,
所以目录停用后 定时任务enabled=False
如果重新启用,则enabled=True
如果软删除,即放到回收站,则不变,还是维持enabled=False
进一步:
如果在回收站里硬删除,则删除定时任务
如果还原,是直接还原到停用状态还是直接启用?如果是直接启用,则需要变更定时任务enabled=True
from bk-user.
在 <回收站-目录删除> 中就进行修复
from bk-user.
Related Issues (20)
- docs: 更新本地开发文档
- 2.x 用户管理 SaaS 登录弹框从 iframe 调整为 window.open 方式 HOT 1
- [Release 3.0] 登录配置 Web API HOT 1
- 前端组件漏洞升级
- [Release 3.0] 前端-虚拟账号
- [Release 3.0] 前端-登录配置
- [Release 3.0] 登录流程
- [Release 3.0] 前端-消息通知
- [Release 3.0] 前端-版本日志
- 部署前置初始化
- 点击返回首页
- [Release 3.0] 前端-跨租户协同
- [Release 3.0] API - 跨租户协同
- [讨论] 在用户删除后重新同步或录入后 UserID 是否变更
- 3.x 版本 自测体验 & 修复优化
- helm 部署文档链接跳转 404 HOT 1
- 配置AD登录,使用AD用户登录非常慢,如何排查? HOT 1
- 用户管理审计日志
- 日志配置规范化
- 支持用户 DisplayName 功能
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bk-user.