Skip to content

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

Merged
merged 1 commit into from
Dec 21, 2020

Conversation

narekcat
Copy link
Contributor

No description provided.

Copy link
Contributor

@rootelement rootelement left a 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: {
Copy link
Contributor

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

Copy link
Contributor Author

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',
Copy link
Contributor

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?

Copy link
Contributor Author

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.

@rootelement rootelement merged commit e29f27f into topcoder-platform:develop Dec 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants