-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Rails 6 #3439
Comments
Also curious about this. |
I'm attempting to use it on a greenfield Rails 6 app, but there is a dependency conflict with ActionPack.
Hopefully this is a trivial fix and that we can update refinerycms-core to work with ActionPack 6. I'll update this issue as I learn more. |
Here's the branch I created: https://github.com/joebutler2/refinerycms/pull/new/rails-6-support Currently there are 15 failing tests. I'll look into it tomorrow. https://gist.github.com/joebutler2/54c455633ae5fb9288fc0ec8e0a25c00 |
I'm requesting help on this now. Progress has been made but there are a number of gems we had to upgrade in tandem. Right now, I'm working through a failing test that's related to how image uploads work in Selenium. The feature works fine when manually testing it in the generated dummy app. Here is a screenshot of the error occurring in Selenium (a la Here is the stacktrace from test failure (note the line numbers will be off since I adjusted the formatting and added debug code locally)
When I tested it manually I used the same image that is used in the automated test. Here's the branch, if anyone has the time to help out (or pair program!) it would be appreciated. https://github.com/joebutler2/refinerycms/commits/rails-6-support |
Quick suggestion: it’s failing on the test for a valid mime type.
I would (temporarily) add to the test something to tell you what the image mime type is recognized as.
For the sake of completeness, if nothing else, I would also carry through the change from “whitelisted” to “allowed” to the validation.
I will try to have a closer look/test but I am about to go away for three weeks, so might not get the time.
…--
Anita Graham
[email protected]
0411 645 149
From: Joe <[email protected]>
Reply to: refinery/refinerycms <[email protected]>
Date: Saturday, 21 September 2019 at 4:38 am
To: refinery/refinerycms <[email protected]>
Cc: Subscribed <[email protected]>
Subject: Re: [refinery/refinerycms] Rails 6 (#3439)
I'm requesting help on this now. Progress has been made but there are a number of gems we had to upgrade in tandem.
Right now, I'm working through a failing test that's related to how image uploads work in Selenium. The feature works fine when manually testing it in the generated dummy app.
Here is a screenshot of the error occurring in Selenium (a la save_and_open_screenshot).
Here is the stacktrace from test failure (note the line numbers will be off since I adjusted the formatting and added debug code locally)
Shared Example Group: "uploads images" called from ./images/spec/features/refinery/admin/images_spec.rb:16
# ./images/spec/support/shared_examples/image_uploader.rb:29:in `block (3 levels) in <top (required)>'
# ./core/spec/support/database_cleaner.rb:18:in `block (2 levels) in <top (required)>'
When I tested it manually I used the same image that is used in the automated test. spec/fixtures/image-with-dashes.jpg
Here's the branch, if anyone has the time to help out (or pair program!) it would be appreciated.
https://github.com/joebutler2/refinerycms/commits/rails-6-support
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
@joebutler2 In the meantime I added a line to the test which failed for you:
I guess you could check that |
I've submitted a PR (#3440) to refinery/refinerycms which incidentally gives a more specific message when an image with an invalid mime-type is uploaded. This might be helpful finding the source of the test failure. btw: what was the actual error. There isn't enough stacktrace there to see the error message. The screenshot shows the error you would expect to get if you had tried to upload a file that wasn't an image file. So, the screenshot isn't of a failing test. |
@anitagraham thank you for helping out. It turns out most of those errors were due to my local environment. This is now an open pull request #3441. As of right now there is only one failure in CI, and that's in the pages extension when running mysql in ruby 2.4.2 (link to failed build). The other errors in the build are the same ones we are currently seeing in master. Here is the stack trace for that failure:
As for handling the dependencies, the branch featured in that PR should contain most of the dependency updates. My local environment mirrors what heroku currently supports (some specific to me). Ruby 2.5.5 and postgresql 11.5, and Rails 6.0. We also need to update the Once we fix both of these failed builds, refinery should be good to go for Rails 6 apps. Of course, I'll report and help fix any bugs that arise. If anyone wants to help with either one of those pull requests, I would love to collaborate and possibly do remote pair programming (via Tuple or Floobits). /cc @aiomaster @angarc |
I re-triggered the build for PR #3441 and that failing test passed. So from my point of view, that branch should be good to merge into master, although my preference is to fix master ASAP. I'm dedicating some time right now to look into the failure in master. Also, I still need to figure out why the build failed for updating Hopefully, we can resolve these broken builds in the next couple of days, then refinery will support Rails 6! |
Quick update: The updates to If we could get someone to merge that in and release a patch version of the gem (@bricesanchez @aiomaster), then we can wrap up the pull request for I'm also hopeful that updating the Thanks everyone who has helped out! Hopefully we can wrap this up in the coming days! |
I compiled the updated version of I'm hoping to get them resolved quickly! |
I was able to resolve the Now once refinery/refinerycms-i18n#80 is merged and the patch version of the gem is released we will be very close to having RefineryCMS support Rails 6! Also, I updated this gist to the remaining dependency conflicts, hopefully, we can wrap it up tomorrow! |
Was able to resolve all of the dependency conflicts locally (with a custom rubygem server). Now there is a loading issue with The PR for I'll keep working on the pull request while figuring the rest out. I'll stop updating this issue going forward, if you want to see notifications / progress watch #3441. |
Also see #3446 |
Fixed by #3446 |
Hi,
do you see some show stoppers regarding rails 6 upgrade?
Is there interest?
Was some work already done somewhere?
Thanks!
The text was updated successfully, but these errors were encountered: