owl-cli 6.154.0 → 6.156.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -275,7 +275,7 @@ function checkPermission(data, permissions, orgId, action) {
275
275
  if(isSubOrg(data,orgId)) {
276
276
  ef_section_permissions = section_permissions.sub_org;
277
277
  ef_field_permissions = field_permissions.sub_org;
278
- ef_table_permissions = field_permissions.sub_org;
278
+ ef_table_permissions = table_permissions.sub_org;
279
279
  }
280
280
  }
281
281
 
@@ -3,8 +3,8 @@
3
3
  "actions": [
4
4
  {
5
5
  "add": {
6
- "index": "owl_@projectCode_v0",
7
- "alias": "owl_@projectCode"
6
+ "index": "@projectCode_v0",
7
+ "alias": "@projectCode"
8
8
  }
9
9
  }
10
10
  ]
@@ -1,11 +1,10 @@
1
1
  //curl -u elastic 'localhost:9200/is1erp/_doc/_search' -H 'Content-Type: application/json' -d '
2
+ POST _reindex
2
3
  {
3
- "size": 0,
4
- "aggregations": {
5
- "objTypes": {
6
- "terms": {
7
- "field": "_t"
8
- }
9
- }
4
+ "source": {
5
+ "index": "@projectCode_v0"
6
+ },
7
+ "dest": {
8
+ "index": "@projectCode_v1"
10
9
  }
11
10
  }'
@@ -23,3 +23,12 @@ var s = HttpUtils.putRaw( searchUrl, createIndex, headers);
23
23
  var result = JSON.parse(s);
24
24
 
25
25
  $.log(s);
26
+
27
+ var indexJson = JSON.parse(createIndex);
28
+ var mappings = indexJson.mappings;
29
+
30
+
31
+ var changeMappingUrl = elasticSearchUrl+"/" + indexName + "/_mapping";
32
+ var s = HttpUtils.putRaw( changeMappingUrl, JSON.stringify(mappings), headers);
33
+ $.log(s);
34
+
@@ -1153,7 +1153,6 @@ var @projectCodeService = (function (pigeon) {
1153
1153
  }
1154
1154
  return query;
1155
1155
  },
1156
-
1157
1156
  count:function(mfilters,searchArgs,keyword,dataSource,isRecycleBin,meta_fields){
1158
1157
  var query = f.buildQuery(mfilters,searchArgs,keyword,isRecycleBin,meta_fields);
1159
1158
  var elasticSearchUrl = $.getEnv( "elasticSearchUrl" );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "owl-cli",
3
- "version": "6.154.0",
3
+ "version": "6.156.0",
4
4
  "main": "index.js",
5
5
  "preferGlobal": true,
6
6
  "bin": {