-
Notifications
You must be signed in to change notification settings - Fork 27
fix: for issue 51, add support sorting by 'GET /resources' endpoint #54
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just some questions. Otherwise looks good.
@@ -31,7 +31,11 @@ const initES = async () => { | |||
const body = { mappings: {} } | |||
body.mappings[config.get('ES.ES_TYPE')] = { | |||
properties: { | |||
id: { type: 'keyword' } | |||
id: { type: 'keyword' }, | |||
memberHandle: { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does this change mean we have to do anything to the existing Dynamo DB? I don't see any change to the model. Just making sure
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We don't need to change any thing with Dynamo DB, because search is making in Elasticsearch.
@@ -33,7 +33,7 @@ module.exports = { | |||
// AWS_SECRET_ACCESS_KEY: process.env.AWS_FAKE_KEY, | |||
AWS_REGION: process.env.AWS_REGION || 'us-east-1', | |||
IS_LOCAL_DB: process.env.IS_LOCAL_DB ? process.env.IS_LOCAL_DB === 'true' : true, | |||
URL: process.env.DYNAMODB_URL || 'http://localhost:8000', | |||
DYNAMODB_URL: process.env.DYNAMODB_URL || 'http://localhost:8000', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure what this change is for. Did you change all the uses of this value throughout the app?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In all places it tries to get Dynamo DB url using "DYNAMODB.DYNAMODB_URL" path and I need to change only this file.
No description provided.