-
Notifications
You must be signed in to change notification settings - Fork 0
refactor!: update to boilerplate mapco 6313 #78
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
…o refactor/update-to-boilerplate-mapco-6313
…ithub.com/MapColonies/geocoding into refactor/update-to-boilerplate-mapco-6313
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.
Overall, Great job
package.json
Outdated
"@map-colonies/js-logger": "^2.0.0", | ||
"@map-colonies/openapi-express-viewer": "^4.0.0", | ||
"@map-colonies/read-pkg": "^1.0.0", | ||
"@map-colonies/schemas": "https://ghatmpstorage.blob.core.windows.net/npm-packages/schemas-5cee47beaa951abaf352f9ffd6895689521e9829.tgz", |
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.
Remember to change before merging
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.
Please address the comments. If you notice a comment that is repeated or applicable in other places, apply it to those places as well, even if it hasn’t been explicitly mentioned there.
src/common/redis/index.ts
Outdated
const config = container.resolve<IConfig>(SERVICES.CONFIG); | ||
const dbConfig = config.get<RedisConfig>('db.redis'); | ||
const config = container.resolve<ConfigType>(SERVICES.CONFIG); | ||
const dbConfig = config.get(redisConfigPath) as RedisConfig; |
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.
Remove ... as ...
@@ -35,6 +35,7 @@ export class TileManager { | |||
let bbox: BBox = [0, 0, 0, 0]; | |||
try { | |||
bbox = mgrs.inverse(tileQueryParams.mgrs); | |||
// eslint-disable-next-line @typescript-eslint/no-unused-vars | |||
} catch (error) { |
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.
Remove this and add log
@@ -115,7 +121,7 @@ describe('/search/location', function () { | |||
limit: 5, | |||
disable_fuzziness: true, | |||
}; | |||
const tokenTypesUrlScope = nock(config.get<IApplication>('application').services.tokenTypesUrl) | |||
const tokenTypesUrlScope = nock((config.get('application') as IApplication).services.tokenTypesUrl) |
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.
Remove the config.get as ... SomeInterface
here and all other places
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.
LGTM
…ithub.com/MapColonies/geocoding into refactor/update-to-boilerplate-mapco-6313
Related issues: MAPCO-6131
Closes: MAPCO-6131