Commit 090b3079 authored by Bertrand PINEL's avatar Bertrand PINEL

Add support to provided property for selection in relationship (default to id)

parent a7b2aeac
......@@ -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;
......
......@@ -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": {}
......
......@@ -73,10 +73,6 @@ function generateRowId(subid) {
return createObject(data);
}
}
const createRelationships= (obj) => {
}
const handlingRelationships = (data) => {
if (Array.isArray(data)) {
......
{
"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",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment