diff --git a/blueprints/entity-factory/index.js b/blueprints/entity-factory/index.js index 2e9506efcd1fb892f7e298ff0219a1c09f2ab4d8..8e89c158aafcb2ebc9f7d252d5defe20d287120d 100644 --- a/blueprints/entity-factory/index.js +++ b/blueprints/entity-factory/index.js @@ -211,13 +211,13 @@ function templateEntityForm(name, options) { break; case 'belongs-to': - form.push('\t\t\t{{f.input type="select" label="'+prop+'" name="'+prop+ " \n"+ + form.push('\t\t\t{{f.input type="select" label="'+prop+'" name="'+prop+ '" \n'+ 'options='+inflection.pluralize(targetEntity)+' optionLabelPath="'+mapBy+'" optionValuePath="id" \n'+ 'includeBlank= "Please choose..." promptIsSelectable=false}}'); break; case 'has-many': - form.push('\t\t\t{{f.input type="select" label="'+prop+'" name="'+prop+ " multiple=true \n"+ + form.push('\t\t\t{{f.input type="select" label="'+prop+'" name="'+prop+ '" multiple=true \n'+ 'options='+inflection.pluralize(targetEntity)+' optionLabelPath="'+mapBy+'" optionValuePath="id" \n'+ 'includeBlank= "Please choose..." promptIsSelectable=false}}'); break; diff --git a/cloud/lambda-jsonapi-test.js b/cloud/lambda-jsonapi-test.js index cc2dd340f896b00edd7ba6cca7ce77cc0d1a1fd9..ef6717f36704e0d8e63c1c9448802d26dfc194d7 100644 --- a/cloud/lambda-jsonapi-test.js +++ b/cloud/lambda-jsonapi-test.js @@ -3,7 +3,6 @@ const AWS = require('aws-sdk'); //const inflection = require('inflection'); - // BEGIN : To be removed from lambda deployment AWS.config.update({region:'us-east-1'}); // END @@ -82,10 +81,6 @@ function generateRowId(subid) { return createObject(data); } } - - const createRelationships= (obj) => { - - } const handlingRelationships = (data) => { if (Array.isArray(data)) { @@ -125,6 +120,7 @@ function generateRowId(subid) { } else { params.KeyConditionExpression = 'ObjectType = :objectType'; params.ExpressionAttributeValues = { ':objectType': type }; + params.Limit = MAX_OBJECTS; dbGet = (params) => { return dynamo.query(params).promise() }; console.log('EmberDataServerless lambda GET multiple values with params: ', params); } @@ -240,12 +236,10 @@ function generateRowId(subid) { const callback = (evt, msg) => {console.log(msg);}; -//putMethod(msgPut,{},callback); - const msgGet = { "params": { "path": { - "type": "users" + "type": "authorities" }, "querystring": {}, "header": {} diff --git a/cloud/lambda/lambda-jsonapi.js b/cloud/lambda/lambda-jsonapi.js index 57264d0fa271c722e5598624c2bbe3b07ec623e2..0cd2f9ad961dfddede946d2ec153a57a85f4c2b0 100644 --- a/cloud/lambda/lambda-jsonapi.js +++ b/cloud/lambda/lambda-jsonapi.js @@ -73,10 +73,6 @@ function generateRowId(subid) { return createObject(data); } } - - const createRelationships= (obj) => { - - } const handlingRelationships = (data) => { if (Array.isArray(data)) { diff --git a/package.json b/package.json index 7126e8858b4fe9176966f890190e2a4166f0df89..674c65e9c4346c64b5fde2772c812982e1817588 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ember-aws-ehipster", - "version": "0.3.21", + "version": "0.3.23", "description": "Attempt to build a complete web application using serverless architecture on AWS", "keywords": [ "ember-addon",