Skip to content

DM-4584 Zoom support for density plot#48

Merged
tgoldina merged 2 commits intodevfrom
dm-4584-densityplot-zoom
Mar 31, 2016
Merged

DM-4584 Zoom support for density plot#48
tgoldina merged 2 commits intodevfrom
dm-4584-densityplot-zoom

Conversation

@tgoldina
Copy link
Copy Markdown
Contributor

When zooming decimated data, a request should go to the server to fetch zoomed data. If the result is not decimated, further zoom does not require server call, but restoring the original does. Hence we need to remember if the unzoomed data were decimated or not.


}


Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. getInitState() is not needed since it returns {}. export function reducer(state={}, action={}) should be fine.
  2. console.error should change to logError instead.
  3. Is any reason that some places the function expressions are used and other places function declarations are used?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The reason for logError is that is shows stack traces by default and give us a place to upgrade our error logging when we want. It is a very simple function but all error logging should go through it.

A little more when used from a promise... when passing an error that is passed to the catch you really want to see the error stack where the error occurred, not the stack trace of the catch. That is what logError does.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for the comments. I followed your suggestions.

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.

3 participants