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

V2.4.8 dev #2467

Open
wants to merge 30 commits into
base: v2.4.x
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
f965663
minor: auto push 2.4.7 release log
ZhuoZhuoCrayon Oct 22, 2024
7f47072
minor: start new version 2.4.8
ZhuoZhuoCrayon Oct 22, 2024
8de7edd
feat: 安装插件中原子执行动作顺序优化 (closed #2438)
Huayeaaa Oct 18, 2024
156a90b
fix: 修复host_search接口业务拓扑丢失 (closed #2449)
Huayeaaa Sep 29, 2024
5730fa1
feat: arm架构安装proxy优化 (closed #2472)
chalice-1831 Oct 17, 2024
f14f01b
feat: arm架构安装proxy优化 (closed #2472)
wyyalt Nov 1, 2024
1305056
feat: 优化订阅任务按顺序执行而非抛错 (closed #2447)
Huayeaaa Nov 13, 2024
ce731fc
fix: 修复主机信息未更新成功导致沿用旧Agent-ID问题 (closed #2451)
Huayeaaa Oct 18, 2024
d06a615
fix: 修复proxy主机转移模块后变成pagent问题 (closed #2474)
Huayeaaa Oct 28, 2024
847a5d7
feat: agent重装优化
hyunfa Nov 18, 2024
3111219
feat: tlinux4系统 proxy安装脚本及gsectl适配 (closed #2483)
Huayeaaa Nov 1, 2024
f2f2ada
fix: 修复Windows下解压插件进程占用问题 (closed #2486)
Huayeaaa Nov 8, 2024
0b95ce2
feat: 插件部署-插件包参数优化 (closed #2461)
Huayeaaa Oct 18, 2024
82432f4
feat: 替换表单
hyunfa Sep 5, 2024
c9e28ad
feat: 插件operate接口支持主机差量同步 (closed #2510)
Huayeaaa Dec 5, 2024
f6bd1c6
feat: 安装策略修改
hyunfa Dec 13, 2024
d83db27
feat: 切换云上API (closed #2515)
wyyalt Dec 17, 2024
d53080e
fix: 修复差量同步主机忽略内网IP变更场景 (closed #2504)
Huayeaaa Dec 5, 2024
2e22e19
fix: 适配编排更新订阅任务兜底 (closed #2506)
Huayeaaa Dec 11, 2024
d4edc61
feat: 上云环境针对0区域限制新增主机校验提到API层级 (closed #2501)
jpyoung3 Dec 9, 2024
089d033
feat: 向cmdb同步云区域服务商 (closed #2386)
Huayeaaa Aug 26, 2024
f3bc640
fix: 修复读取k8s大整型变成浮点数问题及单测修复 (closed #2521)
Huayeaaa Dec 20, 2024
4f86151
fix: 修复article高度设置引起的外部样式污染问题修复
hyunfa Dec 24, 2024
2d566ca
feat: gse 接口调用分片优化 (closed #2520)
ping15 Dec 20, 2024
b5814a6
feat: 创建订阅支持开启订阅巡检 (closed #2525)
Huayeaaa Dec 24, 2024
1525c9a
fix: 修复同步云服务商CC不存在某个云区域问题 (closed #2529)
Huayeaaa Dec 26, 2024
f7c3d8d
fix: 非centos或debian等操作系统下安装插件时初始化脚本可能存在报错 (closed #2470)
chalice-1831 Oct 23, 2024
81b1d3c
fix: 修复已禁用插件仍能通过监控平台的相关订阅步骤触发下发动作问题(closed #2313)
chalice-1831 Jul 3, 2024
afa880c
feat: 安装预设插件锁定版本 (closed #2482)
jpyoung3 Dec 13, 2024
ad70bb8
feat: 安装预设插件锁定版本 (closed #2482)
jpyoung3 Dec 25, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
feat: 创建订阅支持开启订阅巡检 (closed #2525)
  • Loading branch information
Huayeaaa authored and wyyalt committed Dec 26, 2024
commit b5814a664e747ce7d70f0518ab8c8d5a3a9bf182
1 change: 1 addition & 0 deletions apps/backend/subscription/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ class CreateStepSerializer(serializers.Serializer):
steps = serializers.ListField(child=CreateStepSerializer(), min_length=1, label="事件订阅触发的动作列表")
target_hosts = TargetHostSerializer(many=True, label="下发的目标机器列表", required=False, allow_empty=False)
run_immediately = serializers.BooleanField(required=False, default=False, label="是否立即执行")
enable = serializers.BooleanField(required=False, default=False, label="是否开启订阅巡检")
is_main = serializers.BooleanField(required=False, default=False, label="是否为主配置")
operate_info = serializers.ListField(required=False, child=HostOperateInfoSerializer(), default=[], label="操作信息")
system_account = serializers.DictField(required=False, label=_("操作系统对应账户"))
Expand Down
4 changes: 3 additions & 1 deletion apps/backend/tests/subscription/test_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ def _test_create_subscription(self):
{
"bk_username": "admin",
"bk_app_code": "blueking",
"enable": True,
"scope": {
"bk_biz_id": self.TEST_BIZ_ID,
"node_type": "TOPO",
Expand Down Expand Up @@ -125,7 +126,8 @@ def _test_create_subscription(self):
subscription_id = r.data["data"]["subscription_id"]

# 探测数据库是否创建了对应的记录
Subscription.objects.get(id=r.data["data"]["subscription_id"])
subscription_obj = Subscription.objects.get(id=r.data["data"]["subscription_id"])
self.assertEqual(subscription_obj.enable, True)
SubscriptionStep.objects.get(step_id="my_first", subscription_id=subscription_id)

return subscription_id
Expand Down