Skip to content

Commit 79540ed

Browse files
authored
Merge pull request ngbdf#144 from ngbdf/develop
update desc
2 parents edcd8e5 + c004c01 commit 79540ed

19 files changed

+22
-13
lines changed

redis-manager-dashboard/src/main/java/com/newegg/ec/redis/service/impl/RdbAnalyzeResultService.java

+3
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import com.alibaba.fastjson.JSONArray;
55
import com.alibaba.fastjson.JSONObject;
66
import com.alibaba.fastjson.serializer.SerializerFeature;
7+
import com.alibaba.fastjson.util.TypeUtils;
78
import com.newegg.ec.redis.dao.IRdbAnalyzeResult;
89
import com.newegg.ec.redis.entity.Cluster;
910
import com.newegg.ec.redis.entity.RDBAnalyze;
@@ -188,6 +189,7 @@ private String combinePrefixKeyByType(String result,String type){
188189
List<PrefixResult> prefixKeyList = JSONObject.parseArray(result,PrefixResult.class);
189190
List<PrefixResult> prefixResultList = combinePrefixByType(prefixKeyList,type);
190191
List<PrefixResult> finalPrefixResultList = prefixResultList.stream().map(prefixResult -> setPrefixKey(prefixResult,true)).collect(Collectors.toList());
192+
TypeUtils.compatibleWithJavaBean = true;
191193
return JSONObject.toJSONString(finalPrefixResultList, SerializerFeature.NotWriteDefaultValue);
192194
}
193195

@@ -627,6 +629,7 @@ public List<RDBAnalyzeResult> getAllAnalyzeResult(List<RDBAnalyzeResult> results
627629
static class PrefixResult{
628630
private String prefixKey;
629631
private int noTTL = 0;
632+
630633
private int TTL = 0 ;
631634
private long memorySize;
632635
private long keyCount;

redis-manager-dashboard/src/main/resources/static/css/app.f61d2722f1dd870e46b6e2210fbfd3c7.css renamed to redis-manager-dashboard/src/main/resources/static/css/app.0a7fdf918bd5f0613edf8f97cb196404.css

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

redis-manager-dashboard/src/main/resources/static/css/app.f61d2722f1dd870e46b6e2210fbfd3c7.css.map renamed to redis-manager-dashboard/src/main/resources/static/css/app.0a7fdf918bd5f0613edf8f97cb196404.css.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

redis-manager-dashboard/src/main/resources/static/js/app.28b845b4830b8c99b81f.js

+2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

redis-manager-dashboard/src/main/resources/static/js/app.28b845b4830b8c99b81f.js.map

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

redis-manager-dashboard/src/main/resources/static/js/app.900c48b767135cc67bd9.js

-2
This file was deleted.

redis-manager-dashboard/src/main/resources/static/js/app.900c48b767135cc67bd9.js.map

-1
This file was deleted.

redis-manager-dashboard/src/main/resources/static/js/app.afd53ba53203bd7edda7.js

-2
This file was deleted.

redis-manager-dashboard/src/main/resources/static/js/app.afd53ba53203bd7edda7.js.map

-1
This file was deleted.

redis-manager-dashboard/src/main/resources/static/js/manifest.2ae2e69a05c33dfc65f8.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<!DOCTYPE html><html><head><meta charset=utf-8><meta name=viewport content="width=device-width,initial-scale=1"><title>redis-manager</title><link rel="shortcut icon" type=image/x-icon href=/static/logo.ico><link rel="shortcut icon" href=/logo.ico><link href=/static/css/app.f61d2722f1dd870e46b6e2210fbfd3c7.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=/static/js/manifest.2ae2e69a05c33dfc65f8.js></script><script type=text/javascript src=/static/js/vendor.4c9e46c331d20b46d8af.js></script><script type=text/javascript src=/static/js/app.900c48b767135cc67bd9.js></script></body></html>
1+
<!DOCTYPE html><html><head><meta charset=utf-8><meta name=viewport content="width=device-width,initial-scale=1"><title>redis-manager</title><link rel="shortcut icon" type=image/x-icon href=/static/logo.ico><link rel="shortcut icon" href=/logo.ico><link href=/static/css/app.0a7fdf918bd5f0613edf8f97cb196404.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=/static/js/manifest.2ae2e69a05c33dfc65f8.js></script><script type=text/javascript src=/static/js/vendor.4c9e46c331d20b46d8af.js></script><script type=text/javascript src=/static/js/app.28b845b4830b8c99b81f.js></script></body></html>

redis-manager-ui/redis-manager-vue/src/components/rct/JobResultDetail.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ export default {
9999
}, {
100100
label: 'TTL',
101101
sort: true,
102-
prop: 'tTL',
102+
prop: 'TTL',
103103
type: Number,
104104
formatter: this.formatterCount
105105
}, {

redis-manager-ui/redis-manager-vue/src/components/rct/chart/Table.vue

+9-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,9 @@ export default {
7171
if(this.tableObj.columns.filter(c=>c=='noTTL')){
7272
this.tableData = this.tableData.sort(this.compareValue('noTTL','descending'));
7373
}
74-
74+
if(this.tableObj.columns.filter(c=>c=='keyCount')){
75+
this.tableData = this.tableData.sort(this.compareValue('keyCount','descending'));
76+
}
7577
this.length = this.tableData.length
7678
this.pageData = this.tableData.slice((this.currentPage - 1) * this.pagesize, this.currentPage * this.pagesize)
7779
},
@@ -82,6 +84,12 @@ export default {
8284
},
8385
compareValue (property, order) {
8486
return function (obj1, obj2) {
87+
if(!obj2[property]){
88+
obj2[property]= 0;
89+
}
90+
if(!obj1[property]){
91+
obj1[property]= 0;
92+
}
8593
if (order === 'ascending') {
8694
return parseInt(obj1[property]) - parseInt(obj2[property])
8795
}

redis-manager-ui/redis-manager-vue/src/components/rct/chart/Top1000KeysByTypeTable.vue

+1
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ export default {
4949
key: value.key
5050
}
5151
})
52+
this.tableData = this.tableData.sort(this.compareValue('itemCount', 'descending'))
5253
this.pageData = this.tableData.slice((this.currentPage - 1) * this.pagesize, this.currentPage * this.pagesize)
5354
},
5455
compareValue (property, order) {

0 commit comments

Comments
 (0)