-
Notifications
You must be signed in to change notification settings - Fork 208
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
WIP: Mapknitter Rails Upgrade #669
base: main
Are you sure you want to change the base?
Conversation
right_aws is no longer maintained, was throwing an error
render :text will be deprecated and poses a security risk
1785ec0
to
0148e7a
Compare
@uploaded_data = Rack::Test::UploadedFile.new(file_location.to_s, 'demo.png', "image/png") | ||
@file ||= File.open(File.expand_path(Rails.root + 'test/fixtures/demo.png', __FILE__)) | ||
@uploaded_data = ActionDispatch::Http::UploadedFile.new(tempfile: @file, filename: File.basename(@file), type: "image/png") | ||
PaperTrail.enabled = true | ||
end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change is causing the controller tests to fail
@alaxalves
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't understand how it's working in main but not here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe some new Rails 5 class related thing
@alaxalves Image placement has again stopped working here |
@kaustubh-nair Can you update |
* Add new system tests and fix minor asset loading * modify test * Add chromedriver to travis * Add sudo * Add dependencies to dockerfile * Properly installing chrome and chromedriver
* WIP action cable setup * basic action cable setup complete * minor change * minor changes * few changes * initial working functionality complete * Refactoring code * Adding Foreman gem * Scheduling Puma and Passenger servers * WIP action cable setup * basic action cable setup complete * minor change * minor changes * few changes * initial working functionality complete * Refactoring code * Adding Foreman gem * Scheduling Puma and Passenger servers * few minor fix * added a few tests * Refactoring connection module * Using strong params in requests * added documentation * added more docs * added tests * Using puma as dependency and correct image controller * added a few tests * a few changes * remove unnecessary render * few test fixes
* few bug fixes * separate editing channels for different maps * test fixes * rubocop fixes
I believe we merged rails 5.2 upgrade on another PR...closing this |
This PR tracks the entire upgrade, not only Rails 5.2. We'll need this branch when Rails 6 is shipped. |
Since me and @kaustubh-nair have been using development branch to get our work reviewed and merged faster, we have opened this PR to keep comparing with
main
branch.Make sure these boxes are checked before your pull request (PR) is ready to be reviewed and merged. Thanks!
rake test
@publiclab/reviewers
for help, in a comment belowIf tests do fail, click on the red
X
to learn why by reading the logs.Please be sure you've reviewed our contribution guidelines at https://publiclab.org/contributing-to-public-lab-software
Thanks!