Skip to content

Commit

Permalink
Merge pull request #7452 from normal-wls/release_V3.33.0-beta2
Browse files Browse the repository at this point in the history
feat: release v3.33.0 beta2
  • Loading branch information
normal-wls authored May 9, 2024
2 parents 310b79b + d7abbc6 commit a76850c
Show file tree
Hide file tree
Showing 8 changed files with 47 additions and 27 deletions.
2 changes: 1 addition & 1 deletion app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ is_use_celery: True
author: 蓝鲸智云
introduction: 标准运维是通过一套成熟稳定的任务调度引擎,把在多系统间的工作整合到一个流程,助力运维实现跨系统调度自动化的SaaS应用。
introduction_en: SOPS is a SaaS application that utilizes a set of mature and stable task scheduling engines to help realize cross-system scheduling automation, and integrates the work among multiple systems into a single process.
version: 3.33.0-beta1
version: 3.33.0-beta2
category: 运维工具
language_support: 中文
desktop:
Expand Down
2 changes: 1 addition & 1 deletion app_desc.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
spec_version: 2
app_version: "3.33.0-beta1"
app_version: "3.33.0-beta2"
app:
region: default
bk_app_code: bk_sops
Expand Down
2 changes: 1 addition & 1 deletion config/default.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@
# mako模板中:<script src="/a.js?v=${ STATIC_VERSION }"></script>
# 如果静态资源修改了以后,上线前改这个版本号即可

STATIC_VERSION = "3.33.0-beta1"
STATIC_VERSION = "3.33.0-beta2"
DEPLOY_DATETIME = datetime.datetime.now().strftime("%Y%m%d%H%M%S")

STATICFILES_DIRS = [os.path.join(BASE_DIR, "static")]
Expand Down
2 changes: 1 addition & 1 deletion frontend/desktop/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"license": "ISC",
"dependencies": {
"@blueking/bkcharts": "^2.0.11-alpha.5",
"@blueking/bkui-form": "0.0.41",
"@blueking/bkui-form": "0.0.41-beta.1",
"@blueking/crypto-js-sdk": "0.0.5",
"@blueking/notice-component-vue2": "^2.0.1",
"@blueking/user-selector": "^1.0.5-beta.2",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
:readonly="true"
:value="formData"
:schema="schema"
:context="context"
:layout="{ group: [], container: { gap: '14px' } }">
</bkui-form>
</div>
Expand Down Expand Up @@ -33,7 +34,11 @@
},
data () {
return {
formData: tools.deepClone(this.value)
formData: tools.deepClone(this.value),
context: {
site_url: $.context.site_url,
project_id: $.context.project?.id
}
}
},
watch: {
Expand All @@ -45,28 +50,33 @@
</script>
<style lang="scss" scoped>
.jsonschema-input-params {
/deep/ .bk-form-item {
.bk-label {
width: 100px !important;
font-size: 12px;
}
.bk-form-content {
margin-left: 100px !important;
>>> {
.bk-schema-form-group-content {
grid-auto-columns: 100%;
}
.bk-form-radio {
margin-right: 30px;
.bk-radio-text {
.bk-form-item {
.bk-label {
width: 100px !important;
font-size: 12px;
}
}
.bk-form-checkbox {
margin-right: 30px;
.bk-checkbox-text {
font-size: 12px;
.bk-form-content {
margin-left: 100px !important;
}
.bk-form-radio {
margin-right: 30px;
.bk-radio-text {
font-size: 12px;
}
}
.bk-form-checkbox {
margin-right: 30px;
.bk-checkbox-text {
font-size: 12px;
}
}
& + .bk-form-item {
margin-top: 0;
}
}
& + .bk-form-item {
margin-top: 0;
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
:value="inputFormData"
:schema="inputs"
:readonly="isViewMode"
:context="context"
:layout="{ group: [], container: { gap: '14px' } }"
@change="$emit('update', $event)">
</bkui-form>
Expand Down Expand Up @@ -36,7 +37,11 @@
},
data () {
return {
inputFormData: tools.deepClone(this.value)
inputFormData: tools.deepClone(this.value),
context: {
site_url: $.context.site_url,
project_id: $.context.project?.id
}
}
},
watch: {
Expand All @@ -53,7 +58,10 @@
</script>
<style lang="scss" scoped>
.jsonschema-input-params {
/deep/ {
>>> {
.bk-schema-form-group-content {
grid-auto-columns: 100%;
}
.bk-form-item {
.bk-label {
width: 130px !important;
Expand Down
2 changes: 1 addition & 1 deletion frontend/desktop/src/store/modules/task.js
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,7 @@ const task = {
const { project_id } = store.state.project
const { node_id, task_id } = data
const action = 'forced_fail'
return axios.post(`taskflow/api/v4/node_action/${project_id}/${task_id}/${node_id}/`, { action }, {
return axios.post(`taskflow/api/v4/node_action/${project_id}/${task_id}/${node_id}/`, JSON.stringify({ action }), {
headers: { 'Content-Type': 'application/x-www-form-urlencoded' }
}).then(response => response.data)
},
Expand Down
4 changes: 3 additions & 1 deletion gcloud/core/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ def scan_periodic_task(is_send_notify: bool = True):
"task__creator",
"project__id",
"project__name",
"create_time",
"edit_time",
"task__last_run_at",
"task__name",
Expand All @@ -183,7 +184,8 @@ def scan_periodic_task(is_send_notify: bool = True):
last_month_time = datetime.datetime.now() + dateutil.relativedelta.relativedelta(
months=-int(settings.PERIODIC_TASK_REMINDER_TIME)
)
if last_month_time.timestamp() < p_task["edit_time"].timestamp():
edit_time = p_task["edit_time"] if p_task["edit_time"] else p_task["create_time"]
if edit_time and last_month_time.timestamp() < edit_time.timestamp():
continue
creator = p_task["task__creator"]
project_name = p_task["project__name"]
Expand Down

0 comments on commit a76850c

Please sign in to comment.