Skip to content

Commit

Permalink
Merge pull request #1153 from hanshuaikang/feature/develop_by_han
Browse files Browse the repository at this point in the history
minor: 修改帐号为账号
  • Loading branch information
hanshuaikang authored Jul 31, 2023
2 parents 30a9e97 + 60432d2 commit dbdab05
Show file tree
Hide file tree
Showing 10 changed files with 518 additions and 534 deletions.
2 changes: 1 addition & 1 deletion adapter/core/sites/ieod/show.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def get_footer():
<a href="wxwork://message?uin=8444252571319680" class="link-item">{}</a>
<a href="{}" class="link-item" target="_blank">{}</a>
</ul>
<div class="desc">Copyright &copy; 2012-${{year}} Tencent BlueKing. All Rights Reserved.V2.6.6</div>
<div class="desc">Copyright &copy; 2012-${{year}} Tencent BlueKing. All Rights Reserved.V2.6.7</div>
</div>
""".format(
_("联系BK助手"), settings.BK_DESKTOP_URL, _("蓝鲸桌面")
Expand Down
2 changes: 1 addition & 1 deletion adapter/core/sites/open/show.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def get_footer():
<a href="http://bk.tencent.com/s-mart/community/" class="link-item" target="_blank">{}</a>
<a href="http://bk.tencent.com/" class="link-item" target="_blank">{}</a>
</ul>
<div class="desc">Copyright &copy; 2012-${{year}} Tencent BlueKing. All Rights Reserved.V2.6.6</div>
<div class="desc">Copyright &copy; 2012-${{year}} Tencent BlueKing. All Rights Reserved.V2.6.7</div>
</div>
""".format(
_("技术支持"), _("社区论坛"), _("产品官网")
Expand Down
14 changes: 2 additions & 12 deletions docs/RELEASE.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,6 @@
【新增】SLA倒计时问题修复
【新增】系统数据源屏蔽某些不可用选项


## [Version: 2.6.1.388] - 2022-05-30
【新增】国际化问题优化
【新增】单据日志接口新增高级模式
Expand All @@ -134,7 +133,6 @@
【新增】服务与服务目录合并
【新增】服务支持克隆
【新增】单据评论


## [Version: 2.6.0] - 2021-09-09
【新增】项目空间,每个项目空间自管理项目下的单据,服务,元素,SLA,以及配置管理
Expand Down Expand Up @@ -162,24 +160,16 @@
【优化】社区版蓝盾任务模版初始化触发条件
【优化】标准运维接口报错时新增异常
【修复】2.5.8 升级 2.5.9 会导致升级失败的问题

## [Version: 2.5.9] - 2021-04-27
【修复】创建任务时字段显示异常
【修复】部分标准运维任务点击处理/查看 报异常

## [Version: 2.5.9] - 2021-04-23
【修复】当前步骤 sla 剩余时间出现递增
【修复】新建服务协议无法提交 & 修复我的工单待办 tab 数字偶尔显示不正确
【修复】修复编辑服务基础信息后未更新
【优化】社区版蓝盾任务模版初始化触发条件
【优化】标准运维接口报错时新增异常

## [Version: 2.5.9] - 2021-04-07
【新增】单据支持多节点多任务模式
【新增】标准运维任务可以引用变量功能
【新增】分段SLA的功能支持

## [Version: 2.5.9] - 2021-03-31
【新增】单据支持多节点多任务模式
【新增】标准运维任务可以引用变量功能
【新增】新版本SLA的实现
Expand Down Expand Up @@ -689,5 +679,5 @@
[修复] 部分空格名称查询问题
[修复] 因为缺少变更类型导致的新增变更流程失败问题
[修复] upload_file上传403bug修复
[说明] 附件功能要求`NFS`目录挂载,挂在路径为根目录下的`USERRES`
[说明] 建议`mysql>=5.7`,目前兼容`5.6`,后续版本考虑升级到`5.7`
[优化] 附件功能要求`NFS`目录挂载,挂在路径为根目录下的`USERRES`
[优化] 建议`mysql>=5.7`,目前兼容`5.6`,后续版本考虑升级到`5.7`
1,019 changes: 505 additions & 514 deletions docs/RELEASE_EN.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/wiki/community.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

![](./img/wiki_community.png)

当然,不管你是想提交**issue**,还是提交**PR**,都需要你有一个 GitHub 帐号。你可以通过这个 [入口](https://github.com/join) 注册账号与我们深度互动。
当然,不管你是想提交**issue**,还是提交**PR**,都需要你有一个 GitHub 账号。你可以通过这个 [入口](https://github.com/join) 注册账号与我们深度互动。

你也可以点击 bk-sops 仓库上方的**Watch**按钮实时的跟踪社区的动态。

Expand Down
2 changes: 1 addition & 1 deletion itsm/component/constants/builtin.py
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@
(API, "第三方系统", False, True),
]

BUILTIN_SERVICES = [{"name": "帐号开通申请", "flow_name": "一般审批流程", "desc": "内置审批服务"}]
BUILTIN_SERVICES = [{"name": "账号开通申请", "flow_name": "一般审批流程", "desc": "内置审批服务"}]

BUILTIN_IAM_SERVICES = [
{
Expand Down
3 changes: 2 additions & 1 deletion itsm/service/managers.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ def init_builtin_services(self):
from django.db.models import Q
from itsm.workflow.models import Workflow

self.filter(name="帐号开通申请").update(name="账号开通申请")

for builtin_service in BUILTIN_SERVICES:

try:
Expand Down Expand Up @@ -175,7 +177,6 @@ def insert_services(self, services, catalog=None):
existed_services = self.filter(name__in=all_service_name).values_list(
"name", flat=True
)

for new_service in services:
original_workflow = all_original_workflow.get(new_service["flow_name"])
if original_workflow is None or new_service["name"] in existed_services:
Expand Down
2 changes: 1 addition & 1 deletion itsm/tests/ticket/test_ticket.py
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,7 @@ def test_exception_distribute(
True,
}

service = Service.objects.get(name="帐号开通申请")
service = Service.objects.get(name="账号开通申请")
print("service name === {}".format(service.name))
service.owners = ",admin,"
service.save()
Expand Down
3 changes: 2 additions & 1 deletion itsm/ticket/models/ticket.py
Original file line number Diff line number Diff line change
Expand Up @@ -1718,7 +1718,7 @@ def ticket_current_steps(cls, ticket_ids):
Q(status__in=Status.CAN_OPERATE_STATUS)
| Q(status=FAILED, type=TASK_STATE)
)
).values("ticket_id", "id", "tag", "name")
).values("ticket_id", "id", "tag", "name", "state_id", "type")
ticket_status = {}
for status in all_status:
ticket_id = status.pop("ticket_id")
Expand Down Expand Up @@ -3973,6 +3973,7 @@ def list_data(self):
"supervise_type": self.supervise_type,
"supervisor": self.supervisor,
"project_key": self.project_key,
"current_processors": self.current_processors,
}

@staticmethod
Expand Down
3 changes: 2 additions & 1 deletion itsm/ticket/serializers/ticket.py
Original file line number Diff line number Diff line change
Expand Up @@ -517,6 +517,7 @@ def __init__(self, instances, username, token):
"supervise_type",
"supervisor",
"project_key",
"current_processors",
)
self.username = username
self.token = token
Expand Down Expand Up @@ -687,7 +688,7 @@ def to_client_representation(self):
if "priority" in inst["meta"]
else "--",
create_at=inst["create_at"].strftime("%Y-%m-%d %H:%M:%S"),
current_processors="", # ",".join(self.ticket_processors.get(inst.id, "")),
current_processors=inst.get("current_processors", ""),
can_comment=self.can_comment(inst, comments, is_email_invite_token),
can_operate=False,
waiting_approve=is_waiting_approve,
Expand Down

0 comments on commit dbdab05

Please sign in to comment.