Skip to content

Commit

Permalink
commit for version 2.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
vamsee committed Apr 30, 2020
2 parents 1c0c0e1 + ac846f7 commit 2b83cf8
Show file tree
Hide file tree
Showing 21 changed files with 478 additions and 523 deletions.
13 changes: 7 additions & 6 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/client/
/coverage/
/node_modules/
server/dropdb.js
/lib/expression-language/expression-syntax-parser.js
/test/
build/
client/
coverage/
node_modules/
test/
drop.js
Gruntfile.js
2 changes: 1 addition & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@
"no-undefined": 1, // http://eslint.org/docs/rules/no-undefined
"no-with": 2, // http://eslint.org/docs/rules/no-with
"handle-callback-err": 1, // http://eslint.org/docs/rules/handle-callback-err
"radix": 2, // http://eslint.org/docs/rules/radix
"radix": 0, // http://eslint.org/docs/rules/radix
"wrap-iife": [2, "any"], // http://eslint.org/docs/rules/wrap-iife
"yoda": 2, // http://eslint.org/docs/rules/yoda

Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,4 @@ out/
*.zip
/common/models/test
package-lock.json
oracle-user.sh
38 changes: 1 addition & 37 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,38 +10,6 @@ module.exports = function GruntConfig(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),

mkdir: {
all: {
options: {
create: ['dist']
}
}
},

copy: {
main: {
files: [
// includes files within path and its sub-directories
{
expand: true,
src: ['**', '!node_modules/**', '!coverage/**'],
dest: 'dist/'
}
]
}
},

mochaTest: {
test: {
options: {
quiet: false,
clearRequireCache: true,
timeout: 100000
},
src: ['test/test.js', 'test/scripts/*.js']
}
},

clean: {
coverage: {
src: ['coverage/']
Expand Down Expand Up @@ -72,12 +40,8 @@ module.exports = function GruntConfig(grunt) {
});

// Add the grunt-mocha-test tasks.
grunt.loadNpmTasks('grunt-mocha-test');
grunt.loadNpmTasks('grunt-mocha-istanbul');
grunt.loadNpmTasks('grunt-contrib-clean');

grunt.loadNpmTasks('grunt-mkdir');
grunt.loadNpmTasks('grunt-contrib-copy');
grunt.loadNpmTasks('grunt-mocha-istanbul');

grunt.registerTask('test-with-coverage', ['clean:coverage', 'mocha_istanbul']);
};
2 changes: 1 addition & 1 deletion common/models/ui-component.js
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ module.exports = function uiComponent(UIComponent) {
field.subModelMeta = allmodels[field.modeltype].properties;
}
} else if (field.itemtype === 'object') {
field.type = 'grid'
field.type = 'grid';
} else {
field.type = 'tags';
}
Expand Down
9 changes: 3 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "oe-metadata-ui",
"version": "2.1.0",
"version": "2.2.0",
"description": "holds and serves metadata used by oe-ui framework",
"engines": {
"node": ">=6"
Expand All @@ -22,20 +22,17 @@
"devDependencies": {
"babel-eslint": "7.2.3",
"chai": "3.4.1",
"chai-datetime": "1.4.0",
"chai-things": "0.2.0",
"chalk": "1.1.1",
"eslint": "4.10.0",
"grunt": "1.0.4",
"grunt-contrib-clean": "2.0.0",
"grunt-contrib-copy": "1.0.0",
"grunt-mkdir": "1.0.0",
"grunt-mocha-istanbul": "5.0.2",
"grunt-mocha-test": "0.13.3",
"istanbul": "0.4.5",
"loopback-connector-mongodb": "3.9.2",
"mocha": "5.2.0",
"oe-cloud": "^2.0.0",
"oe-connector-mongodb": "^2.0.0",
"oe-connector-oracle": "^2.0.0",
"oe-connector-postgresql": "^2.0.0",
"superagent-defaults": "0.1.14",
"supertest": "3.4.2"
Expand Down
2 changes: 1 addition & 1 deletion test/boot/populate-data.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,5 @@ module.exports = function (app, done) {
// });
// });
// });
}
};

3 changes: 1 addition & 2 deletions test/datasources.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,14 @@
"name": "transient",
"connector": "transient"
},

"db": {
"host": "localhost",
"port": 27017,
"url": "mongodb://localhost:27017/oe-metadata-ui",
"database": "oe-metadata-ui",
"password": "admin",
"name": "db",
"connector": "mongodb",
"connector": "oe-connector-mongodb",
"user": "admin",
"connectionTimeout": 500000,
"connectTimeoutMS": 500000,
Expand Down
34 changes: 16 additions & 18 deletions test/datasources.mongo.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,27 +5,25 @@
*
*/
var mongoHost = process.env.MONGO_HOST || 'localhost';
var mongoPort = process.env.MONGO_PORT ? parseInt(process.env.MONGO_PORT) : 27017;
var dbName = process.env.DB_NAME || 'oe-metadata-ui-test';
module.exports =
{
"memdb": {
"name": "memdb",
"connector": "memory"
module.exports = {
'memdb': {
'name': 'memdb',
'connector': 'memory'
},
"transient": {
"name": "transient",
"connector": "transient"
'transient': {
'name': 'transient',
'connector': 'transient'
},
"db": {
"host": mongoHost,
"port": 27017,
"url": "mongodb://" + mongoHost + ":27017/" + dbName,
"database": dbName,
"password": "admin",
"name": "db",
"connector": "mongodb",
"user": "admin",
"connectionTimeout": 500000
'db': {
'host': mongoHost,
'port': mongoPort,
'url': 'mongodb://' + mongoHost + ':' + mongoPort + '/' + dbName,
'database': dbName,
'name': 'db',
'connector': 'oe-connector-mongodb',
'connectionTimeout': 500000
}
};

12 changes: 2 additions & 10 deletions test/datasources.oracle.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,10 @@
* Bangalore, India. All Rights Reserved.
*
*/
/**
**
** ©2016-2017 EdgeVerve Systems Limited (a fully owned Infosys subsidiary),
** Bangalore, India. All Rights Reserved.
**
**/

var oracleSID = process.env.ORACLE_SID || 'orclpdb.ad.infosys.com';
var oracleSID = process.env.ORACLE_SID || 'ORCLCDB';
var oracleHost = process.env.ORACLE_HOST || 'localhost';
var oraclePort = process.env.ORACLE_PORT || 1521;
var oraclePort = process.env.ORACLE_PORT ? parseInt(process.env.ORACLE_PORT) : 1521;
var oracleUserName = process.env.ORACLE_USERNAME || 'oeadmin';
var oracleUserPassword = process.env.ORACLE_PASSWORD || 'oeadmin';

Expand All @@ -36,5 +30,3 @@ module.exports = {
'user': oracleUserName
}
};


40 changes: 19 additions & 21 deletions test/datasources.postgres.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,29 +5,27 @@
*
*/
var postgresHost = process.env.POSTGRES_HOST || 'localhost';
var postgresPort = process.env.POSTGRES_PORT ? parseInt(process.env.POSTGRES_PORT) : 5432;
var dbName = process.env.DB_NAME || 'oe-metadata-ui-test';
module.exports =
{
"memdb": {
"name": "memdb",
"connector": "memory"
module.exports = {
'memdb': {
'name': 'memdb',
'connector': 'memory'
},
"transient": {
"name": "transient",
"connector": "transient"
'transient': {
'name': 'transient',
'connector': 'transient'
},

"db": {
"host": postgresHost,
"port": 5432,
"url": "postgres://postgres:postgres@" + postgresHost + ":5432/" + dbName,
"database": dbName,
"password": "postgres",
"name": "db",
"connector": "oe-connector-postgresql",
"user": "postgres",
"max": 50,
"connectionTimeout": 50000
'db': {
'host': postgresHost,
'port': postgresPort,
'url': 'postgres://postgres:postgres@' + postgresHost + ':' + postgresPort + '/' + dbName,
'database': dbName,
'password': 'postgres',
'name': 'db',
'connector': 'oe-connector-postgresql',
'user': 'postgres',
'max': 50,
'connectionTimeout': 50000
}
};

Loading

0 comments on commit 2b83cf8

Please sign in to comment.