Skip to content

Commit fd8a051

Browse files
author
vamsee
committed
commit for version 2.2.0
2 parents 6648e2d + 7818bd9 commit fd8a051

13 files changed

+165
-168
lines changed

.eslintignore

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
/client/
2-
/coverage/
3-
/node_modules/
4-
server/dropdb.js
5-
/lib/expression-language/expression-syntax-parser.js
6-
/test/
7-
/drop.js
1+
build/
2+
client/
3+
coverage/
4+
node_modules/
5+
test/
6+
drop.js
7+
Gruntfile.js

.eslintrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@
111111
"no-undefined": 1, // http://eslint.org/docs/rules/no-undefined
112112
"no-with": 2, // http://eslint.org/docs/rules/no-with
113113
"handle-callback-err": 1, // http://eslint.org/docs/rules/handle-callback-err
114-
"radix": 2, // http://eslint.org/docs/rules/radix
114+
"radix": 0, // http://eslint.org/docs/rules/radix
115115
"wrap-iife": [2, "any"], // http://eslint.org/docs/rules/wrap-iife
116116
"yoda": 2, // http://eslint.org/docs/rules/yoda
117117

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,4 @@ out/
4141
*.zip
4242
/common/models/test
4343
package-lock.json
44+
oracle-user.sh

Gruntfile.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,8 @@ module.exports = function GruntConfig(grunt) {
4040
});
4141

4242
// Add the grunt-mocha-test tasks.
43-
grunt.loadNpmTasks('grunt-mocha-test');
44-
grunt.loadNpmTasks('grunt-mocha-istanbul');
4543
grunt.loadNpmTasks('grunt-contrib-clean');
46-
47-
grunt.loadNpmTasks('grunt-mkdir');
48-
grunt.loadNpmTasks('grunt-contrib-copy');
44+
grunt.loadNpmTasks('grunt-mocha-istanbul');
4945

5046
grunt.registerTask('test-with-coverage', ['clean:coverage', 'mocha_istanbul']);
5147
};

package.json

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "oe-model-personalization",
3-
"version": "2.1.0",
3+
"version": "2.2.0",
44
"description": "oe-cloud modularization project aka oecloud.io",
55
"engines": {
66
"node": ">=6"
@@ -14,36 +14,30 @@
1414
"grunt-cover": "grunt test-with-coverage"
1515
},
1616
"dependencies": {
17-
"camelcase": "5.0.0",
1817
"async": "2.6.1",
1918
"lodash": "4.17.14"
2019
},
2120
"devDependencies": {
2221
"babel-eslint": "7.2.3",
2322
"chai": "3.4.1",
24-
"chai-datetime": "1.4.0",
2523
"chai-things": "0.2.0",
2624
"chalk": "1.1.1",
2725
"eslint": "4.10.0",
2826
"grunt": "1.0.4",
29-
"grunt-banner": "0.6.0",
3027
"grunt-cli": "1.3.2",
3128
"grunt-contrib-clean": "2.0.0",
32-
"grunt-contrib-copy": "1.0.0",
33-
"grunt-jsbeautifier": "0.2.13",
34-
"grunt-mkdir": "1.0.0",
3529
"grunt-mocha-istanbul": "5.0.2",
36-
"grunt-mocha-test": "0.13.3",
3730
"istanbul": "0.4.5",
3831
"mocha": "5.2.0",
39-
"superagent-defaults": "0.1.14",
40-
"supertest": "3.4.2",
41-
"loopback-connector-mongodb": "3.9.2",
32+
"oe-cloud": "^2.0.0",
33+
"oe-connector-mongodb": "^2.0.0",
34+
"oe-connector-oracle": "^2.0.0",
4235
"oe-connector-postgresql": "^2.0.0",
4336
"oe-model-composite": "^2.0.0",
44-
"oe-cloud": "^2.0.0",
37+
"oe-multi-tenancy": "^2.0.0",
4538
"oe-validation": "^2.0.0",
46-
"oe-multi-tenancy": "^2.0.0"
39+
"superagent-defaults": "0.1.14",
40+
"supertest": "3.4.2"
4741
},
4842
"repository": {
4943
"type": "git",

test/app-list.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,17 @@
55
},
66
{
77
"path": "oe-multi-tenancy",
8+
"autoEnableMixins" : true,
89
"enabled": true
910
},
1011
{
1112
"path": "oe-expression",
13+
"autoEnableMixins" : true,
1214
"enabled":true
1315
},
1416
{
1517
"path": "oe-validation",
18+
"autoEnableMixins" : true,
1619
"enabled":true
1720
},
1821
{

test/boot/populate-data.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ var loopback = require('loopback');
22

33
module.exports = function (app, done) {
44
var Customer = loopback.findModel('Customer');
5-
Customer.destroyAll({}, { ignoreAutoScope : true }, function (err) {
5+
Customer.destroyAll({}, { ignoreAutoScope: true }, function (err) {
66
console.log(err);
77
var item1 = {
88
'name': 'Customer A',
9-
id : "abcd",
9+
id: 'abcd',
1010
'age': 10
1111
};
1212
var item2 = {
@@ -25,15 +25,15 @@ module.exports = function (app, done) {
2525
'name': 'BPO Customer A',
2626
'age': 30
2727
};
28-
Customer.create(item1, { ctx: { tenantId: "/default" } }, function (err, r) {
29-
Customer.create(item2, { ctx: { tenantId: "/default/infosys" } }, function (err, r) {
30-
Customer.create(item3, { ctx: { tenantId: "/default/infosys/ev" } }, function (err, r) {
31-
Customer.create([item4, item5], { ctx: { tenantId: "/default/infosys/bpo" } }, function (err, r) {
28+
Customer.create(item1, { ctx: { tenantId: '/default' } }, function (err, r) {
29+
Customer.create(item2, { ctx: { tenantId: '/default/infosys' } }, function (err, r) {
30+
Customer.create(item3, { ctx: { tenantId: '/default/infosys/ev' } }, function (err, r) {
31+
Customer.create([item4, item5], { ctx: { tenantId: '/default/infosys/bpo' } }, function (err, r) {
3232
return done();
3333
});
3434
});
3535
});
3636
});
3737
});
38-
}
38+
};
3939

test/datasources.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,14 @@
77
"name": "transient",
88
"connector": "transient"
99
},
10-
1110
"db": {
1211
"host": "localhost",
1312
"port": 27017,
1413
"url": "mongodb://localhost:27017/oe-model-personalization-test",
1514
"database": "oe-model-personalization-test",
1615
"password": "admin",
1716
"name": "db",
18-
"connector": "mongodb",
17+
"connector": "oe-connector-mongodb",
1918
"user": "admin",
2019
"connectionTimeout": 500000,
2120
"connectTimeoutMS": 500000,

test/datasources.mongo.js

Lines changed: 16 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -5,27 +5,24 @@
55
*
66
*/
77
var mongoHost = process.env.MONGO_HOST || 'localhost';
8+
var mongoPort = process.env.MONGO_PORT ? parseInt(process.env.MONGO_PORT) : 27017;
89
var dbName = process.env.DB_NAME || 'oe-model-personalization-test';
9-
module.exports =
10-
{
11-
"memdb": {
12-
"name": "memdb",
13-
"connector": "memory"
10+
module.exports = {
11+
'memdb': {
12+
'name': 'memdb',
13+
'connector': 'memory'
1414
},
15-
"transient": {
16-
"name": "transient",
17-
"connector": "transient"
15+
'transient': {
16+
'name': 'transient',
17+
'connector': 'transient'
1818
},
19-
"db": {
20-
"host": mongoHost,
21-
"port": 27017,
22-
"url": "mongodb://" + mongoHost + ":27017/" + dbName,
23-
"database": dbName,
24-
"password": "admin",
25-
"name": "db",
26-
"connector": "mongodb",
27-
"user": "admin",
28-
"connectionTimeout": 500000
19+
'db': {
20+
'host': mongoHost,
21+
'port': mongoPort,
22+
'url': 'mongodb://' + mongoHost + ':' + mongoPort + '/' + dbName,
23+
'database': dbName,
24+
'name': 'db',
25+
'connector': 'oe-connector-mongodb',
26+
'connectionTimeout': 500000
2927
}
3028
};
31-

test/datasources.oracle.js

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,10 @@
44
* Bangalore, India. All Rights Reserved.
55
*
66
*/
7-
/**
8-
**
9-
** ©2016-2017 EdgeVerve Systems Limited (a fully owned Infosys subsidiary),
10-
** Bangalore, India. All Rights Reserved.
11-
**
12-
**/
137

14-
var oracleSID = process.env.ORACLE_SID || 'orclpdb.ad.infosys.com';
8+
var oracleSID = process.env.ORACLE_SID || 'ORCLCDB';
159
var oracleHost = process.env.ORACLE_HOST || 'localhost';
16-
var oraclePort = process.env.ORACLE_PORT || 1521;
10+
var oraclePort = process.env.ORACLE_PORT ? parseInt(process.env.ORACLE_PORT) : 1521;
1711
var oracleUserName = process.env.ORACLE_USERNAME || 'oeadmin';
1812
var oracleUserPassword = process.env.ORACLE_PASSWORD || 'oeadmin';
1913

0 commit comments

Comments
 (0)