Skip to content

Commit

Permalink
Merge pull request #7455 from normal-wls/fix_otel_app_settings_V3.32
Browse files Browse the repository at this point in the history
release V3.32.4
  • Loading branch information
normal-wls authored May 13, 2024
2 parents 311a5df + b10bc59 commit a2c213e
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.32.3
version: 3.32.4
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.32.3"
app_version: "3.32.4"
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.32.3"
STATIC_VERSION = "3.32.4"
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
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
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ importlib-metadata==3.7.3
protobuf==3.19.4

# blueapps
blueapps[opentelemetry,bkcrypto]==4.11.0
blueapps[opentelemetry,bkcrypto]==4.12.0
whitenoise==5.2.0
raven==6.5.0
python-json-logger==2.0.1
Expand Down

0 comments on commit a2c213e

Please sign in to comment.