mirror of
https://github.com/getrebuild/rebuild.git
synced 2025-02-19 20:03:24 +08:00
Fix 3.4.3 (#662)
* fix: cache * ISSUE_TEMPLATE * fix: 高级查询编辑时序 * rm: attr verifyFormula
This commit is contained in:
parent
37c01feb0b
commit
9e9cbcbdd5
11 changed files with 102 additions and 15 deletions
52
.gitee/ISSUE_TEMPLATE/bug.yaml
Normal file
52
.gitee/ISSUE_TEMPLATE/bug.yaml
Normal file
|
@ -0,0 +1,52 @@
|
||||||
|
name: 问题反馈
|
||||||
|
description: 在使用中遇到了问题,并经过测试确信这个问题不是由于配置错误产生的。
|
||||||
|
body:
|
||||||
|
- type: markdown
|
||||||
|
attributes:
|
||||||
|
value: 请简要陈述您要反馈的问题,记得包含重要关键词以便其他人能搜索到。
|
||||||
|
- type: markdown
|
||||||
|
attributes:
|
||||||
|
value: |
|
||||||
|
----
|
||||||
|
|
||||||
|
### **提交须知**
|
||||||
|
- 请严格按照问题反馈模板填写信息,如你未能按照模板要求填写,我们将不做处理,敬请谅解。
|
||||||
|
|
||||||
|
----
|
||||||
|
- type: checkboxes
|
||||||
|
attributes:
|
||||||
|
label: 是否有人反馈过此问题?
|
||||||
|
options:
|
||||||
|
- label: 我已经搜索过了,确认此问题没有其他人反馈过。
|
||||||
|
required: true
|
||||||
|
- type: dropdown
|
||||||
|
attributes:
|
||||||
|
label: 是否使用官方发布包?
|
||||||
|
options:
|
||||||
|
- 是。我使用官方发布包
|
||||||
|
- 否。我使用自己修改过代码
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
- type: textarea
|
||||||
|
attributes:
|
||||||
|
label: 问题描述
|
||||||
|
description: 请大致说一下这是个什么问题
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
- type: textarea
|
||||||
|
attributes:
|
||||||
|
label: 问题重现步骤
|
||||||
|
description: 请详细描述如何重现这个问题
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
- type: textarea
|
||||||
|
attributes:
|
||||||
|
label: 系统环境
|
||||||
|
description: 服务器软件版本信息和本地浏览器等信息
|
||||||
|
placeholder: |
|
||||||
|
REBUILD 版本
|
||||||
|
操作系统类型和版本
|
||||||
|
数据库类型和版本
|
||||||
|
浏览器类型和版本
|
||||||
|
validations:
|
||||||
|
required: true
|
5
.gitee/ISSUE_TEMPLATE/config.yaml
Normal file
5
.gitee/ISSUE_TEMPLATE/config.yaml
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
blank_issues_enabled: false
|
||||||
|
contact_links:
|
||||||
|
- name: 使用问题请看官网文档
|
||||||
|
url: https://getrebuild.com/docs/startup
|
||||||
|
about: 包括安装、升级遇到问题,功能不会使用等。
|
31
.gitee/ISSUE_TEMPLATE/feat.yaml
Normal file
31
.gitee/ISSUE_TEMPLATE/feat.yaml
Normal file
|
@ -0,0 +1,31 @@
|
||||||
|
name: 需求建议
|
||||||
|
description: 想要某种新功能,或者想要改进某个已有的功能。
|
||||||
|
body:
|
||||||
|
- type: markdown
|
||||||
|
attributes:
|
||||||
|
value: 请简要陈述您要反馈的问题,记得包含重要关键词以便其他人能搜索到。
|
||||||
|
- type: markdown
|
||||||
|
attributes:
|
||||||
|
value: |
|
||||||
|
----
|
||||||
|
|
||||||
|
### **提交须知**
|
||||||
|
- 请严格按照问题反馈模板填写信息,如你未能按照模板要求填写,我们将不做处理。
|
||||||
|
|
||||||
|
----
|
||||||
|
- type: checkboxes
|
||||||
|
attributes:
|
||||||
|
label: 是否有人提出过此需求?
|
||||||
|
options:
|
||||||
|
- label: 我已经搜索过了,确认此需求没有其他人提过。
|
||||||
|
required: true
|
||||||
|
- type: textarea
|
||||||
|
attributes:
|
||||||
|
label: 新需求描述
|
||||||
|
description: 清晰并简洁地描述这个需求
|
||||||
|
validations:
|
||||||
|
required: true
|
||||||
|
- type: textarea
|
||||||
|
attributes:
|
||||||
|
label: 新需求所解决的问题
|
||||||
|
description: 清晰并简洁地描述此需求所解决的问题及其应用场景
|
2
pom.xml
2
pom.xml
|
@ -10,7 +10,7 @@
|
||||||
</parent>
|
</parent>
|
||||||
<groupId>com.rebuild</groupId>
|
<groupId>com.rebuild</groupId>
|
||||||
<artifactId>rebuild</artifactId>
|
<artifactId>rebuild</artifactId>
|
||||||
<version>3.4.2</version>
|
<version>3.4.3</version>
|
||||||
<name>rebuild</name>
|
<name>rebuild</name>
|
||||||
<description>Building your business-systems freely!</description>
|
<description>Building your business-systems freely!</description>
|
||||||
<!-- UNCOMMENT USE TOMCAT -->
|
<!-- UNCOMMENT USE TOMCAT -->
|
||||||
|
|
|
@ -73,11 +73,11 @@ public class Application implements ApplicationListener<ApplicationStartedEvent>
|
||||||
/**
|
/**
|
||||||
* Rebuild Version
|
* Rebuild Version
|
||||||
*/
|
*/
|
||||||
public static final String VER = "3.4.2";
|
public static final String VER = "3.4.3";
|
||||||
/**
|
/**
|
||||||
* Rebuild Build [MAJOR]{1}[MINOR]{2}[PATCH]{2}[BUILD]{2}
|
* Rebuild Build [MAJOR]{1}[MINOR]{2}[PATCH]{2}[BUILD]{2}
|
||||||
*/
|
*/
|
||||||
public static final int BUILD = 3040207;
|
public static final int BUILD = 3040308;
|
||||||
|
|
||||||
static {
|
static {
|
||||||
// Driver for DB
|
// Driver for DB
|
||||||
|
@ -213,7 +213,7 @@ public class Application implements ApplicationListener<ApplicationStartedEvent>
|
||||||
|
|
||||||
// 版本升级会清除缓存
|
// 版本升级会清除缓存
|
||||||
int lastBuild = ObjectUtils.toInt(RebuildConfiguration.get(ConfigurationItem.AppBuild, true), 0);
|
int lastBuild = ObjectUtils.toInt(RebuildConfiguration.get(ConfigurationItem.AppBuild, true), 0);
|
||||||
if (lastBuild > 0 && lastBuild < BUILD) {
|
if (lastBuild > 0 && lastBuild != BUILD) {
|
||||||
log.warn("Clean up the cache once when upgrading : {}", BUILD);
|
log.warn("Clean up the cache once when upgrading : {}", BUILD);
|
||||||
Installer.clearAllCache();
|
Installer.clearAllCache();
|
||||||
RebuildConfiguration.set(ConfigurationItem.AppBuild, BUILD);
|
RebuildConfiguration.set(ConfigurationItem.AppBuild, BUILD);
|
||||||
|
|
|
@ -83,8 +83,6 @@ public class SysbaseHeartbeat {
|
||||||
if (Math.abs(networkDateLeft) > 15) {
|
if (Math.abs(networkDateLeft) > 15) {
|
||||||
log.warn("Server date offset : {} vs {}", networkDate, localDate);
|
log.warn("Server date offset : {} vs {}", networkDate, localDate);
|
||||||
dangers.put(DateNotSync, String.valueOf(networkDateLeft));
|
dangers.put(DateNotSync, String.valueOf(networkDateLeft));
|
||||||
// FIXME v3.4.2 暂时禁用
|
|
||||||
dangers.remove(DateNotSync);
|
|
||||||
} else {
|
} else {
|
||||||
dangers.remove(DateNotSync);
|
dangers.remove(DateNotSync);
|
||||||
}
|
}
|
||||||
|
|
|
@ -539,6 +539,8 @@ public class Installer implements InstallState {
|
||||||
* 清除所有缓存
|
* 清除所有缓存
|
||||||
*/
|
*/
|
||||||
public static void clearAllCache() {
|
public static void clearAllCache() {
|
||||||
|
Application.getCommonsCache().getEhcacheCache().clear();
|
||||||
|
|
||||||
if (isUseRedis()) {
|
if (isUseRedis()) {
|
||||||
try (Jedis jedis = Application.getCommonsCache().getJedisPool().getResource()) {
|
try (Jedis jedis = Application.getCommonsCache().getJedisPool().getResource()) {
|
||||||
// https://redis.io/commands/flushdb/
|
// https://redis.io/commands/flushdb/
|
||||||
|
@ -548,8 +550,6 @@ public class Installer implements InstallState {
|
||||||
jedis.flushDB();
|
jedis.flushDB();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
|
||||||
Application.getCommonsCache().getEhcacheCache().clear();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -674,7 +674,8 @@ class FilterItem extends React.Component {
|
||||||
$el.removeClass('is-invalid')
|
$el.removeClass('is-invalid')
|
||||||
const v = e.target ? e.target.value : e.val()
|
const v = e.target ? e.target.value : e.val()
|
||||||
if ($empty(v)) {
|
if ($empty(v)) {
|
||||||
$el.addClass('is-invalid')
|
// 忽略数组
|
||||||
|
if (typeof v !== 'object') $el.addClass('is-invalid')
|
||||||
} else {
|
} else {
|
||||||
if (/^\{@[a-z0-9._]{4,}}$/i.test(v)) {
|
if (/^\{@[a-z0-9._]{4,}}$/i.test(v)) {
|
||||||
// pass: Field var {@FIELD}
|
// pass: Field var {@FIELD}
|
||||||
|
|
|
@ -124,7 +124,7 @@ See LICENSE and COMMERCIAL in the project root for license information.
|
||||||
// for `watermark`
|
// for `watermark`
|
||||||
if (window.watermark && self === top) {
|
if (window.watermark && self === top) {
|
||||||
window.watermark.init({
|
window.watermark.init({
|
||||||
watermark_txt: [rb.currentUser ? ('***' + rb.currentUser.substr(7)) : null, rb.appName, rb._rbTempAuth ? 'TEMP.AUTH 临时授权' : null],
|
watermark_txt: [rb.currentUser ? '***' + rb.currentUser.substr(7) : null, rb.appName, rb._rbTempAuth ? 'TEMP.AUTH 临时授权' : null],
|
||||||
watermark_angle: 30,
|
watermark_angle: 30,
|
||||||
watermark_width: 200,
|
watermark_width: 200,
|
||||||
watermark_font: 'arial',
|
watermark_font: 'arial',
|
||||||
|
@ -326,7 +326,7 @@ var $regex = {
|
||||||
},
|
},
|
||||||
clearNumber: function (n) {
|
clearNumber: function (n) {
|
||||||
return (n + '').replace(/[^\d|^\\.|^\\-]/g, '')
|
return (n + '').replace(/[^\d|^\\.|^\\-]/g, '')
|
||||||
}
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -370,7 +370,9 @@ var $random = function (prefix, alphabetic, maxLength) {
|
||||||
maxLength = maxLength || 24
|
maxLength = maxLength || 24
|
||||||
var c = prefix || ''
|
var c = prefix || ''
|
||||||
while (c.length < maxLength) {
|
while (c.length < maxLength) {
|
||||||
c += Math.random().toString(36).replace(/[^a-z1-9]+/g, '')
|
c += Math.random()
|
||||||
|
.toString(36)
|
||||||
|
.replace(/[^a-z1-9]+/g, '')
|
||||||
}
|
}
|
||||||
return c.substring(0, maxLength)
|
return c.substring(0, maxLength)
|
||||||
} else {
|
} else {
|
||||||
|
@ -539,4 +541,4 @@ var $isLight = function (color) {
|
||||||
var c_b = parseInt(hex.substring(4, 4 + 2), 16)
|
var c_b = parseInt(hex.substring(4, 4 + 2), 16)
|
||||||
var brightness = (c_r * 299 + c_g * 587 + c_b * 114) / 1000
|
var brightness = (c_r * 299 + c_g * 587 + c_b * 114) / 1000
|
||||||
return brightness > 155
|
return brightness > 155
|
||||||
}
|
}
|
||||||
|
|
|
@ -288,7 +288,6 @@ class ContentFieldAggregation extends ActionContentSpec {
|
||||||
onConfirm={(v) => {
|
onConfirm={(v) => {
|
||||||
$(this._$sourceFormula).attr('data-v', v).text(FormulaAggregation.textFormula(v, this.__sourceFieldsCache))
|
$(this._$sourceFormula).attr('data-v', v).text(FormulaAggregation.textFormula(v, this.__sourceFieldsCache))
|
||||||
}}
|
}}
|
||||||
verifyFormula
|
|
||||||
entity={this.props.sourceEntity}
|
entity={this.props.sourceEntity}
|
||||||
/>
|
/>
|
||||||
)
|
)
|
||||||
|
|
|
@ -404,7 +404,6 @@ class ContentGroupAggregation extends ActionContentSpec {
|
||||||
onConfirm={(v) => {
|
onConfirm={(v) => {
|
||||||
$(this._$sourceFormula).attr('data-v', v).text(FormulaAggregation.textFormula(v, this.__sourceFieldsCache))
|
$(this._$sourceFormula).attr('data-v', v).text(FormulaAggregation.textFormula(v, this.__sourceFieldsCache))
|
||||||
}}
|
}}
|
||||||
verifyFormula
|
|
||||||
entity={this.props.sourceEntity}
|
entity={this.props.sourceEntity}
|
||||||
/>
|
/>
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue