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

fully externalize exporter; untested #530

Closed
wants to merge 4 commits into from

Conversation

jywarren
Copy link
Member

Integrating work from publiclab/mapknitter-exporter#5 to get all Ruby/Gdal/ImageMagick exporting code out of the core app!

@jywarren
Copy link
Member Author

Hmm, the second failure is: assert File.exist?('public/warps/saugus-landfill-incinerator/1-geo.tif')

I wonder if this has to do with the change in slug and id?

@@ -1,3 +1,5 @@
require "mapknitterExporter"
Copy link
Member Author

Choose a reason for hiding this comment

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

Hmm, @icarito i'm seeing File does not exist: mapknitterExporter from this. I copied the Sinatra app config... any ideas?

@jywarren
Copy link
Member Author

Hi @sashadev-sky -- note that this might touch your work on tracking external status... just FYI!

def generate_perspectival_distort(pxperm, path)
Exporter.generate_perspectival_distort(pxperm, path, nodes_array, id, image_file_name, image, height, width)
MapKnitterExporter.generate_perspectival_distort(pxperm, path, nodes_array, image_file_name, image.url(:original), height, width, Rails.root)
Copy link

Choose a reason for hiding this comment

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

Line is too long. [145/80]

@@ -1,3 +1,5 @@
require "mapknitterExporter"
Copy link

Choose a reason for hiding this comment

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

Prefer single-quoted strings when you don't need string interpolation or special symbols.

@@ -37,6 +37,8 @@ group :dependencies do
gem "autoprefixer-rails"
gem "uglifier"

# switch to main version once ready:
gem "mapknitter-exporter", git: 'https://github.com/publiclab/mapknitter-exporter', glob: '*.gemspec'
Copy link

Choose a reason for hiding this comment

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

Line is too long. [103/80]

@@ -37,6 +37,8 @@ group :dependencies do
gem "autoprefixer-rails"
gem "uglifier"

# switch to main version once ready:
gem "mapknitter-exporter", git: 'https://github.com/publiclab/mapknitter-exporter', glob: '*.gemspec'
Copy link

Choose a reason for hiding this comment

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

Prefer single-quoted strings when you don't need string interpolation or special symbols.

@codeclimate
Copy link

codeclimate bot commented Apr 17, 2019

Code Climate has analyzed commit 62daf27 and detected 5 issues on this pull request.

Here's the issue category breakdown:

Category Count
Style 5

View more on Code Climate.

@sashadev-sky
Copy link
Member

@jywarren noted!

@sashadev-sky
Copy link
Member

Hmm, the second failure is: assert File.exist?('public/warps/saugus-landfill-incinerator/1-geo.tif')

I wonder if this has to do with the change in slug and id?

could this be carried over from the potential problem we were discussing in this PR? #341

@grvsachdeva
Copy link
Member

hey @jywarren @sashadev-sky, anything you want to update on this PR?

@sashadev-sky
Copy link
Member

@gauravano good catch! Not sure, a @jywarren will have to advise!

@jywarren
Copy link
Member Author

So, I think actually we'll be going directly to the Cloud exporter in #693, so we'll get that working fully with a UI, then start stripping out the exporter code from this project entirely! cc @ViditChitkara @divyabaid16

@jywarren jywarren closed this Jul 26, 2019
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