Giter Club home page Giter Club logo

cognicity-rem-analysis's People

Contributors

aboeglin avatar abrahamq avatar abrahamqsdfadf avatar ashishmondal avatar daniru avatar e-oz avatar eppsilon avatar gkalpak avatar hankehly avatar jesperronn avatar joshwiens avatar karlhaas avatar kiuka avatar ludohenin avatar markwhitfeld avatar mgechev avatar nareshbhatia avatar nathanwalker avatar netstart avatar nhutcorp avatar nightapes avatar robstoll avatar ryzy avatar sasikumardr avatar sfabriece avatar shyam-chen avatar tarlepp avatar thedondope avatar troyanskiy avatar vyakymenko avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

cognicity-rem-analysis's Issues

leaflet is butchering the lng attribute on markers somehow

for report with pkey=4 from production: the db says it is at:

cognicity> SELECT st_asgeojson(the_geom) FROM cognicity.all_reports WHERE pkey=4;
+-----------------------------------------------------+

st_asgeojson
{"type":"Point","coordinates":[106.931374,-6.1129]}
+-----------------------------------------------------+

but leaflet believes it to be at lng: 106.9311323.... and there's a whole lot of points also on this lng.

Somewhere along the line we're mangling the lng attribute, maybe when we convert from topojson to geojson?

Timestamp mismatch

You specify start and end times with a timezone offset but the API expects Zulu (UTC)
{"statusCode":400,"error":"Bad Request","message":"child "start" fails because ["start" must be a string with one of the following formats [YYYY-MM-DDTHH:mm:ssZ]]","validation":{"source":"query","keys":["start"]}}

ExpressionChangedAfterItHasBeenCheckedError

This is happening because moment is getting brought in through a global script tag, which means the DOM needs to be ready before we try to use moment, esp. during tests.

So we set the variables to be '', then quickly change them to the moment().format() string after the DOM is loaded. Angular doesn't like this.

timeline.component.html:5 ERROR Error: ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value: ''. Current value: 'January 14th 2017, 12:00:00 am'.
at viewDebugError (errors.ts:30)
at expressionChangedAfterItHasBeenCheckedError (errors.ts:29)
at checkBindingNoChanges (util.ts:145)
at checkNoChangesNodeInline (view.ts:477)
at checkNoChangesNode (view.ts:568)
at debugCheckNoChangesNode (services.ts:557)
at debugCheckRenderNodeFn (services.ts:500)
at Object.eval [as updateRenderer] (timeline.component.html:5)
at Object.debugUpdateRenderer [as updateRenderer] (services.ts:477)
at checkNoChangesView (view.ts:383)

Optimize requests

Optimize the number of requests that are being made- every time the timeline moves we do a new request for that new timerange, throw away all the previous data and then add the new data @talltom is worried about the implications of this, especially on lower power machines.

Need to do more research to understand how big of a problem this is. Leaflet is pretty slow after about 800ish markers on my machine. One solution would be to limit data to one week, but that's not really scale-able.

build.prod fails

[17:13:44] Using gulpfile ~/code/AtC/cognicity-rem-analysis/gulpfile.ts
[17:13:44] Starting 'build.prod'...
[17:13:44] Starting 'initialize'...
[17:13:44] Starting 'noop'...
[17:13:44] Finished 'noop' after 12 ms
[17:13:44] Finished 'initialize' after 13 ms
[17:13:44] Starting 'check.tools'...
[17:13:44] Tools not compiled, skipping rebuild
[17:13:44] Finished 'check.tools' after 5.31 ms
[17:13:44] Starting 'clean.prod'...
[17:13:44] Deleted dist/prod
[17:13:44] Deleted dist/tmp
[17:13:44] Finished 'clean.prod' after 19 ms
[17:13:44] Starting 'tslint'...

ERROR: /Users/matthew/code/AtC/cognicity-rem-analysis/src/client/app/map/map.component.ts[1, 43]: trailing whitespace
ERROR: /Users/matthew/code/AtC/cognicity-rem-analysis/src/client/app/map/map.component.ts[2, 70]: trailing whitespace
ERROR: /Users/matthew/code/AtC/cognicity-rem-analysis/src/client/app/map/map.component.ts[5, 23]: trailing whitespace
ERROR: /Users/matthew/code/AtC/cognicity-rem-analysis/src/client/app/map/map.component.ts[6, 22]: trailing whitespace
ERROR: /Users/matthew/code/AtC/cognicity-rem-analysis/src/client/app/map/map.component.ts[11, 12]: trailing whitespace
ERROR: /Users/matthew/code/AtC/cognicity-rem-analysis/src/client/app/map/map.component.ts[11, 9]: " should be '
ERROR: /Users/matthew/code/AtC/cognicity-rem-analysis/src/client/app/map/map.component.ts[14, 16]: " should be '


ERROR: /Users/matthew/code/AtC/cognicity-rem-analysis/src/client/app/map/map.module.ts[3, 48]: trailing whitespace
ERROR: /Users/matthew/code/AtC/cognicity-rem-analysis/src/client/app/map/map.module.ts[4, 70]: trailing whitespace
ERROR: /Users/matthew/code/AtC/cognicity-rem-analysis/src/client/app/map/map.module.ts[5, 77]: trailing whitespace
ERROR: /Users/matthew/code/AtC/cognicity-rem-analysis/src/client/app/map/map.module.ts[9, 45]: trailing whitespace
ERROR: /Users/matthew/code/AtC/cognicity-rem-analysis/src/client/app/map/map.module.ts[10, 71]: trailing whitespace


ERROR: /Users/matthew/code/AtC/cognicity-rem-analysis/src/client/app/map/navigator/navigator.component.ts[94, 1]: space indentation expected
ERROR: /Users/matthew/code/AtC/cognicity-rem-analysis/src/client/app/map/navigator/navigator.component.ts[93, 17]: block is empty
ERROR: /Users/matthew/code/AtC/cognicity-rem-analysis/src/client/app/map/navigator/navigator.component.ts[1, 43]: trailing whitespace
ERROR: /Users/matthew/code/AtC/cognicity-rem-analysis/src/client/app/map/navigator/navigator.component.ts[2, 30]: trailing whitespace
ERROR: /Users/matthew/code/AtC/cognicity-rem-analysis/src/client/app/map/navigator/navigator.component.ts[5, 23]: trailing whitespace
ERROR: /Users/matthew/code/AtC/cognicity-rem-analysis/src/client/app/map/navigator/navigator.component.ts[11, 34]: trailing whitespace
ERROR: /Users/matthew/code/AtC/cognicity-rem-analysis/src/client/app/map/navigator/navigator.component.ts[12, 20]: trailing whitespace
ERROR: /Users/matthew/code/AtC/cognicity-rem-analysis/src/client/app/map/navigator/navigator.component.ts[76, 2]: trailing whitespace
ERROR: /Users/matthew/code/AtC/cognicity-rem-analysis/src/client/app/map/navigator/navigator.component.ts[81, 16]: trailing whitespace
ERROR: /Users/matthew/code/AtC/cognicity-rem-analysis/src/client/app/map/navigator/navigator.component.ts[83, 19]: trailing whitespace
ERROR: /Users/matthew/code/AtC/cognicity-rem-analysis/src/client/app/map/navigator/navigator.component.ts[88, 12]: trailing whitespace
ERROR: /Users/matthew/code/AtC/cognicity-rem-analysis/src/client/app/map/navigator/navigator.component.ts[17, 5]: " should be '
ERROR: /Users/matthew/code/AtC/cognicity-rem-analysis/src/client/app/map/navigator/navigator.component.ts[17, 13]: " should be '
ERROR: /Users/matthew/code/AtC/cognicity-rem-analysis/src/client/app/map/navigator/navigator.component.ts[18, 5]: " should be '
ERROR: /Users/matthew/code/AtC/cognicity-rem-analysis/src/client/app/map/navigator/navigator.component.ts[20, 13]: " should be '
ERROR: /Users/matthew/code/AtC/cognicity-rem-analysis/src/client/app/map/navigator/navigator.component.ts[20, 21]: " should be '
ERROR: /Users/matthew/code/AtC/cognicity-rem-analysis/src/client/app/map/navigator/navigator.component.ts[21, 13]: " should be '
ERROR: /Users/matthew/code/AtC/cognicity-rem-analysis/src/client/app/map/navigator/navigator.component.ts[22, 17]: " should be '
ERROR: /Users/matthew/code/AtC/cognicity-rem-analysis/src/client/app/map/navigator/navigator.component.ts[22, 26]: " should be '
ERROR: /Users/matthew/code/AtC/cognicity-rem-analysis/src/client/app/map/navigator/navigator.component.ts[24, 13]: " should be '
ERROR: /Users/matthew/code/AtC/cognicity-rem-analysis/src/client/app/map/navigator/navigator.component.ts[25, 17]: " should be '
ERROR: /Users/matthew/code/AtC/cognicity-rem-analysis/src/client/app/map/navigator/navigator.component.ts[25, 25]: " should be '
ERROR: /Users/matthew/code/AtC/cognicity-rem-analysis/src/client/app/map/navigator/navigator.component.ts[26, 17]: " should be '
ERROR: /Users/matthew/code/AtC/cognicity-rem-analysis/src/client/app/map/navigator/navigator.component.ts[34, 13]: " should be '
ERROR: /Users/matthew/code/AtC/cognicity-rem-analysis/src/client/app/map/navigator/navigator.component.ts[34, 21]: " should be '
ERROR: /Users/matthew/code/AtC/cognicity-rem-analysis/src/client/app/map/navigator/navigator.component.ts[35, 13]: " should be '
ERROR: /Users/matthew/code/AtC/cognicity-rem-analysis/src/client/app/map/navigator/navigator.component.ts[36, 17]: " should be '
ERROR: /Users/matthew/code/AtC/cognicity-rem-analysis/src/client/app/map/navigator/navigator.component.ts[36, 26]: " should be '
ERROR: /Users/matthew/code/AtC/cognicity-rem-analysis/src/client/app/map/navigator/navigator.component.ts[38, 13]: " should be '
ERROR: /Users/matthew/code/AtC/cognicity-rem-analysis/src/client/app/map/navigator/navigator.component.ts[39, 17]: " should be '
ERROR: /Users/matthew/code/AtC/cognicity-rem-analysis/src/client/app/map/navigator/navigator.component.ts[39, 25]: " should be '
ERROR: /Users/matthew/code/AtC/cognicity-rem-analysis/src/client/app/map/navigator/navigator.component.ts[40, 17]: " should be '
ERROR: /Users/matthew/code/AtC/cognicity-rem-analysis/src/client/app/map/navigator/navigator.component.ts[48, 13]: " should be '
ERROR: /Users/matthew/code/AtC/cognicity-rem-analysis/src/client/app/map/navigator/navigator.component.ts[48, 21]: " should be '
ERROR: /Users/matthew/code/AtC/cognicity-rem-analysis/src/client/app/map/navigator/navigator.component.ts[49, 13]: " should be '
ERROR: /Users/matthew/code/AtC/cognicity-rem-analysis/src/client/app/map/navigator/navigator.component.ts[50, 17]: " should be '
ERROR: /Users/matthew/code/AtC/cognicity-rem-analysis/src/client/app/map/navigator/navigator.component.ts[50, 26]: " should be '
ERROR: /Users/matthew/code/AtC/cognicity-rem-analysis/src/client/app/map/navigator/navigator.component.ts[52, 13]: " should be '
ERROR: /Users/matthew/code/AtC/cognicity-rem-analysis/src/client/app/map/navigator/navigator.component.ts[53, 17]: " should be '
ERROR: /Users/matthew/code/AtC/cognicity-rem-analysis/src/client/app/map/navigator/navigator.component.ts[53, 25]: " should be '
ERROR: /Users/matthew/code/AtC/cognicity-rem-analysis/src/client/app/map/navigator/navigator.component.ts[54, 17]: " should be '
ERROR: /Users/matthew/code/AtC/cognicity-rem-analysis/src/client/app/map/navigator/navigator.component.ts[62, 13]: " should be '
ERROR: /Users/matthew/code/AtC/cognicity-rem-analysis/src/client/app/map/navigator/navigator.component.ts[62, 21]: " should be '
ERROR: /Users/matthew/code/AtC/cognicity-rem-analysis/src/client/app/map/navigator/navigator.component.ts[63, 13]: " should be '
ERROR: /Users/matthew/code/AtC/cognicity-rem-analysis/src/client/app/map/navigator/navigator.component.ts[64, 17]: " should be '
ERROR: /Users/matthew/code/AtC/cognicity-rem-analysis/src/client/app/map/navigator/navigator.component.ts[64, 26]: " should be '
ERROR: /Users/matthew/code/AtC/cognicity-rem-analysis/src/client/app/map/navigator/navigator.component.ts[66, 13]: " should be '
ERROR: /Users/matthew/code/AtC/cognicity-rem-analysis/src/client/app/map/navigator/navigator.component.ts[67, 17]: " should be '
ERROR: /Users/matthew/code/AtC/cognicity-rem-analysis/src/client/app/map/navigator/navigator.component.ts[67, 25]: " should be '
ERROR: /Users/matthew/code/AtC/cognicity-rem-analysis/src/client/app/map/navigator/navigator.component.ts[68, 17]: " should be '
ERROR: /Users/matthew/code/AtC/cognicity-rem-analysis/src/client/app/map/navigator/navigator.component.ts[78, 21]: " should be '
ERROR: /Users/matthew/code/AtC/cognicity-rem-analysis/src/client/app/map/navigator/navigator.component.ts[76, 2]: Missing semicolon
ERROR: /Users/matthew/code/AtC/cognicity-rem-analysis/src/client/app/map/navigator/navigator.component.ts[14, 3]: Implement lifecycle hook interface AfterContentInit for method ngAfterContentInit in class NavigatorComponent (https://angular.io/styleguide#style-09-01)


ERROR: /Users/matthew/code/AtC/cognicity-rem-analysis/src/client/app/map/navigator/timeline/timeline.component.ts[1, 43]: trailing whitespace
ERROR: /Users/matthew/code/AtC/cognicity-rem-analysis/src/client/app/map/navigator/timeline/timeline.component.ts[4, 22]: trailing whitespace
ERROR: /Users/matthew/code/AtC/cognicity-rem-analysis/src/client/app/map/navigator/timeline/timeline.component.ts[11, 3]: trailing whitespace
ERROR: /Users/matthew/code/AtC/cognicity-rem-analysis/src/client/app/map/navigator/timeline/timeline.component.ts[16, 58]: trailing whitespace
ERROR: /Users/matthew/code/AtC/cognicity-rem-analysis/src/client/app/map/navigator/timeline/timeline.component.ts[17, 61]: trailing whitespace
ERROR: /Users/matthew/code/AtC/cognicity-rem-analysis/src/client/app/map/navigator/timeline/timeline.component.ts[31, 21]: trailing whitespace
ERROR: /Users/matthew/code/AtC/cognicity-rem-analysis/src/client/app/map/navigator/timeline/timeline.component.ts[37, 50]: trailing whitespace
ERROR: /Users/matthew/code/AtC/cognicity-rem-analysis/src/client/app/map/navigator/timeline/timeline.component.ts[38, 54]: trailing whitespace
ERROR: /Users/matthew/code/AtC/cognicity-rem-analysis/src/client/app/map/navigator/timeline/timeline.component.ts[39, 48]: trailing whitespace
ERROR: /Users/matthew/code/AtC/cognicity-rem-analysis/src/client/app/map/navigator/timeline/timeline.component.ts[40, 50]: trailing whitespace
ERROR: /Users/matthew/code/AtC/cognicity-rem-analysis/src/client/app/map/navigator/timeline/timeline.component.ts[43, 14]: trailing whitespace
ERROR: /Users/matthew/code/AtC/cognicity-rem-analysis/src/client/app/map/navigator/timeline/timeline.component.ts[45, 2]: trailing whitespace
ERROR: /Users/matthew/code/AtC/cognicity-rem-analysis/src/client/app/map/navigator/timeline/timeline.component.ts[31, 14]: " should be '
ERROR: /Users/matthew/code/AtC/cognicity-rem-analysis/src/client/app/map/navigator/timeline/timeline.component.ts[15, 3]: Implement lifecycle hook interface AfterViewInit for method ngAfterViewInit in class TimelineComponent (https://angular.io/styleguide#style-09-01)


ERROR: /Users/matthew/code/AtC/cognicity-rem-analysis/tools/config/project.config.ts[68, 49]: trailing whitespace

[17:13:48] Finished 'tslint' after 3.8 s
[17:13:48] Starting 'build.assets.prod'...
[17:13:50] Finished 'build.assets.prod' after 1.73 s
[17:13:50] Starting 'build.html_css'...
Node#moveTo was deprecated. Use Container#append.
[17:14:06] Finished 'build.html_css' after 16 s
[17:14:06] Starting 'copy.prod'...
[17:14:06] Finished 'copy.prod' after 41 ms
[17:14:06] Starting 'build.js.prod'...
dist/tmp/app/map/navigator/navigator.component.ts(2,20): error TS7016: Could not find a declaration file for module 'leaflet'. '/Users/matthew/code/AtC/cognicity-rem-analysis/node_modules/leaflet/dist/leaflet-src.js' implicitly has an 'any' type.
[17:14:14] TypeScript: 1 semantic error
[17:14:14] TypeScript: emit succeeded (with errors)

npm ERR! Darwin 16.7.0

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.