-
Notifications
You must be signed in to change notification settings - Fork 6
Remove query on placeid #94
Conversation
This is the schema change for the following service-side changes: CatalystCode/project-fortis-services#92 CatalystCode/project-fortis-services#94
Smarker
left a comment
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
| if (!args.bbox || args.bbox.length !== 4) return reject('Invalid bbox specified'); | ||
|
|
||
| const { fromDate, toDate } = parseFromToDate(args.fromDate, args.toDate); | ||
| const limit = args.limit || 15; |
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.
I'd maybe use a name more specific than limit to make it more clear why it's needed.
erikschlegel
left a comment
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.
Looks good. Just one posted question below.
| const [north, west, south, east] = args.bbox; | ||
|
|
||
| const tagsQuery = ` | ||
| SELECT eventid |
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.
would distinct eventid work for this query? Trying to mitigate the duplicate record issue.
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.
@erikschlegel How do you propose to address this?
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.
it was more of a question which you just answered.
erikschlegel
left a comment
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

As per comment
https://github.com/CatalystCode/project-fortis-pipeline/pull/101/files#r132579693