Giter VIP home page Giter VIP logo

photoringsql's People

Contributors

nonameable avatar

Stargazers

 avatar

Watchers

 avatar  avatar

photoringsql's Issues

Selecting the first dimension value in the left widget causes server error

When a user selects the first or maybe one of the very first dimension values in the left widget, a weird border condition is met which triggers an error in the server that tries to bring the next batch of photos. This is an issue with the way the next batch of photos is selected. I suggest a clean reimplementation of this feature, since the code is quite difficult to follow.

image

getIndexOfDimensionID dimension_id = 4 center =3
getDimensionCounts name
obtained dimension counts from DB. Size: 490
getPreviousPhotos  dimension_id:1
returnPreviousPhotosFromDimensionID   dimension_id=1
/Users/damaderu/Documents/uniandes/temp/photoringSQL/node_modules/mysql/lib/protocol/Parser.js:80
        throw err; // Rethrow non-MySQL errors
        ^
TypeError: Cannot read property 'dimension_name' of undefined
    at Query._callback (/Users/damaderu/Documents/uniandes/temp/photoringSQL/server.js:124:32)
    at Query.Sequence.end (/Users/damaderu/Documents/uniandes/temp/photoringSQL/node_modules/mysql/lib/protocol/sequences/Sequence.js:88:24)
    at Query._handleFinalResultPacket (/Users/damaderu/Documents/uniandes/temp/photoringSQL/node_modules/mysql/lib/protocol/sequences/Query.js:139:8)
    at Query.EofPacket (/Users/damaderu/Documents/uniandes/temp/photoringSQL/node_modules/mysql/lib/protocol/sequences/Query.js:123:8)
    at Protocol._parsePacket (/Users/damaderu/Documents/uniandes/temp/photoringSQL/node_modules/mysql/lib/protocol/Protocol.js:279:23)
    at Parser.write (/Users/damaderu/Documents/uniandes/temp/photoringSQL/node_modules/mysql/lib/protocol/Parser.js:76:12)
    at Protocol.write (/Users/damaderu/Documents/uniandes/temp/photoringSQL/node_modules/mysql/lib/protocol/Protocol.js:39:16)
    at Socket.<anonymous> (/Users/damaderu/Documents/uniandes/temp/photoringSQL/node_modules/mysql/lib/Connection.js:103:28)
    at Socket.emit (events.js:182:13)
    at addChunk (_stream_readable.js:277:12)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: `node server.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/damaderu/.npm/_logs/2018-09-11T15_26_23_366Z-debug.log

Cumbersome navigation due to dimension tags in the ring

The dimension tags of the ring for each dimension (name, birth_date, age, pts, etc) overlap with the photos that are currently shown on the matrix. A user might click on one of these tags when she actually intended to click on one of the players. This triggers a change in dimension, making navigation cumbersome.
image

Clicking the button to go the previous dimension causes server error

Sometimes when a user tries to go back to the previous dimension, a similar border condition is encountered and a server error is thrown. This is an issue with the way we are bringing the next batch of photos. This issue is hard to reproduce but occurs often.

image

This is the server console output:

getIndexOfDimensionID dimension_id = 24 center =23
getDimensionCounts name
obtained dimension counts from DB. Size: 490
getPreviousPhotos  dimension_id:1
returnPreviousPhotosFromDimensionID   dimension_id=1
/Users/damaderu/Documents/uniandes/temp/photoringSQL/node_modules/mysql/lib/protocol/Parser.js:80
        throw err; // Rethrow non-MySQL errors
        ^

TypeError: Cannot read property 'dimension_name' of undefined
    at Query._callback (/Users/damaderu/Documents/uniandes/temp/photoringSQL/server.js:124:32)
    at Query.Sequence.end (/Users/damaderu/Documents/uniandes/temp/photoringSQL/node_modules/mysql/lib/protocol/sequences/Sequence.js:88:24)
    at Query._handleFinalResultPacket (/Users/damaderu/Documents/uniandes/temp/photoringSQL/node_modules/mysql/lib/protocol/sequences/Query.js:139:8)
    at Query.EofPacket (/Users/damaderu/Documents/uniandes/temp/photoringSQL/node_modules/mysql/lib/protocol/sequences/Query.js:123:8)
    at Protocol._parsePacket (/Users/damaderu/Documents/uniandes/temp/photoringSQL/node_modules/mysql/lib/protocol/Protocol.js:279:23)
    at Parser.write (/Users/damaderu/Documents/uniandes/temp/photoringSQL/node_modules/mysql/lib/protocol/Parser.js:76:12)
    at Protocol.write (/Users/damaderu/Documents/uniandes/temp/photoringSQL/node_modules/mysql/lib/protocol/Protocol.js:39:16)
    at Socket.<anonymous> (/Users/damaderu/Documents/uniandes/temp/photoringSQL/node_modules/mysql/lib/Connection.js:103:28)
    at Socket.emit (events.js:182:13)
    at addChunk (_stream_readable.js:277:12)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: `node server.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/damaderu/.npm/_logs/2018-09-11T15_42_00_130Z-debug.log

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.