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

Feature/kak/update dependencies #1088

Merged

Conversation

flibbertigibbet
Copy link
Contributor

@flibbertigibbet flibbertigibbet commented Nov 12, 2018

Overview

Update project dependencies for ansible roles, python packages, and Javascript packages.

Notes

Turf exports have changed to provide a top-level default function instead of simply exporting the function. I couldn't find a straightforward way to transform the browserify build to rename the export, so the calls to turf distance and pointOnLine have changed instead.

Attempting to update the Postgresql support ansible role version resulted in provisioning failures, perhaps due to the role changing to default to 9.5, so that role is behind a version still.

Testing Instructions

  • Rebuild VMs (may need to destroy first, due to dependency changes)
  • Site should still function as expected
  • To test turf distance functionality: set origin on home page; distances should populate on destinations
  • To test turf 'pointOnLine`: drag a trip linestring to add intermediate stops

Connects azavea/urban-apps#173

Copy link
Contributor

@KlaasH KlaasH left a comment

Choose a reason for hiding this comment

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

👍 Once I got my OTP machine up and running, everything I tried worked fine.

src/gulpfile.js Outdated
.pipe(gulpFilter(filter));

if (extraFiles && extraFiles.length > 0) {
return result.pipe(addsrc(extraFiles));
Copy link
Contributor

Choose a reason for hiding this comment

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

I was expecting this to just tack on the method (i.e. result = result.pipe...) rather than return, but when there's only one conditional filter it works either way.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good point. This check is necessary now, by the way, due to empty collections now resulting in an error if sent to the pipe.

src/bower.json Outdated
"js-storage": "~1.0.1",
"handlebars": "~4.0.12",
"jquery": "~3.3.1",
"leaflet": "~1.3.4",
Copy link
Contributor

Choose a reason for hiding this comment

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

This one stands out as a significant jump. Surprising that it didn't break anything.

Copy link
Contributor Author

@flibbertigibbet flibbertigibbet Nov 14, 2018

Choose a reason for hiding this comment

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

The Leaflet dependency depends on the version of leaflet used in the Carto JS library, which has been updated.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

...although I see now the bugfix version is slightly different, so I'll make those match.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Pinned back to the previous cartodb.js and opened #1089

Downgrade postgres support library role and psycopg2 binary versions.
Upgrading resulted in app VM not connecting to DB.
Now "default" on the module.
@flibbertigibbet flibbertigibbet merged commit 022da2a into azavea:develop Nov 15, 2018
@flibbertigibbet flibbertigibbet deleted the feature/kak/update-dependencies branch November 15, 2018 14:49
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