Skip to content

Conversation

balthazar
Copy link
Contributor

Only invalidate the data if it has been set as an override.
Also log a limit of 20 data items instead of the full list.

});
};

const dataBlackList = ['zoomLevels'];
Copy link
Collaborator

Choose a reason for hiding this comment

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

Comment please why is this black listed?

overs.forEach((value, valuePath) => {
recursiveSet(props, valuePath, value);
if (valuePath[0] === 'data') {
props.data = [...props.data];
Copy link
Collaborator

Choose a reason for hiding this comment

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

This looks like we are copying a possibly one million item array? Can we slice it to length 20? Add a comment explaining this...


const dataBlackList = ['zoomLevels'];

const transformData = data => {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Function header please, explain what kind of transformation we are doing

};

/**
* Log a layer properties to Seer
Copy link
Collaborator

Choose a reason for hiding this comment

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

layer => layer's

@balthazar balthazar merged commit 91d5666 into master May 9, 2017
@balthazar balthazar deleted the seer-fixes branch May 9, 2017 20:44
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.

2 participants