Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

link infowindows with cartodb_id #8127

Merged
merged 7 commits into from
Jun 23, 2016
Merged

link infowindows with cartodb_id #8127

merged 7 commits into from
Jun 23, 2016

Conversation

matallo
Copy link
Contributor

@matallo matallo commented Jun 23, 2016

@javisantana
Copy link
Contributor

not sure if I'm the best to review this one since I don't know so much about the queryModel

return m.get('name') === 'cartodb_id';
});

if (cartdb_id) {
Copy link
Contributor

Choose a reason for hiding this comment

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

So, what would/should happen if isEmptyTemplate and there's no cartodb_id column in the results? This scenario could happen if the node results is not available yet for example.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

it would apply the changes in the map infowindow from the attributes passed in the change event

@viddo
Copy link
Contributor

viddo commented Jun 23, 2016

Looks legit, added a small comment re: a detail that this change introduce I wasn't sure about though.

Also, while I was explained offline why this change was necessary I'd prefer to have a test case that outlines and asserts the scenario.

@matallo
Copy link
Contributor Author

matallo commented Jun 23, 2016

yeah, tests on their way, right now they are broken :/

@matallo
Copy link
Contributor Author

matallo commented Jun 23, 2016

🚀

@matallo matallo merged commit 7bd6eae into master Jun 23, 2016
@matallo matallo deleted the rambo-cartodbid branch October 19, 2017 10:02
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.

None yet

3 participants