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

test rails 5.0 #495

Closed
wants to merge 2 commits into from
Closed

test rails 5.0 #495

wants to merge 2 commits into from

Conversation

mtparet
Copy link
Contributor

@mtparet mtparet commented Oct 17, 2016

  • update rubies to last version
  • test rails 5.0

@iNecas
Copy link
Member

iNecas commented Oct 17, 2016

I suppose we should get it also fixed at the same PR, right?

@mtparet
Copy link
Contributor Author

mtparet commented Oct 17, 2016

Indeed this is the goal. Also this will permit to check PRs/issues (and perhaps we could merge these in this one if needed) against Rails 5. #465 #481 #479 #473

@iNecas
Copy link
Member

iNecas commented Oct 27, 2016

Ok, let's get this in to make the train moving

@iNecas
Copy link
Member

iNecas commented Oct 27, 2016

The only thing is all the tests are failling on all rails versions now

@mtparet
Copy link
Contributor Author

mtparet commented Oct 27, 2016

Yes, tests should passed before merging. (some works are required)

@iNecas iNecas mentioned this pull request Oct 27, 2016
@raisin
Copy link

raisin commented Nov 4, 2016

Rails 5.x.x.x has introduced several changes that impact apipie compatibility. 11 compatibility issues need to be resolved before apipie will pass all the specs that have been written.

The following (forked) branch resolves 8 of these 11 issues. It isn't the most elegant code, but it illustrates how to fix these 8 issues.

https://github.com/raisin/apipie-rails/tree/raisin-rails-5.x-compatibility

If no one is actively working on this, I can improve the code and make it worthy of a pull request. However, a decision needs to be made on how to handle Rails version based forks in the code. Should one gem handle all Rails versions. Or, should a separate gem be created to handle Rails 5.x.x.x?

Here is a breakdown of the remaining 3 issues, which correspond to 7 failing specs.

For 2 of the remaining 3 issues, I wrote comments describing the problem within the branch linked above. These 2 issues correspond to 2 failing specs each for a total of 4 failing specs.

  1. One issue is caused by the failure of api!. Using the equivalent version that does not grab information from routes.rb fixes these two specs. Since work was underway in Fix route discovery with api! for Rails 5 #465, which was merged, I didn't attempt to fix this.
  2. The other issue is caused by the use of the get parameter :method. :method cannot be used as a url parameter in Rails since it is a reserved keyword. Fixing this problem may require renaming a large number of variables; so, it would be best for a maintainer to look at this problem.

That leaves 1 issue that corresonds to 3 failing specs.
spec/controllers/users_controller_spec.rb:295 represents the problem. I worked on this issue but didn't make progress. It would help to get feedback from someone familiar with apipie internals. It appears that a broadcast is made to multiple threads. It is unclear why that's being done. This spec checks that nested parameters are properly invalidated. Is the recursive check of nested parameters using multiple threads?

@mtparet
Copy link
Contributor Author

mtparet commented Feb 17, 2017

Closing in favour of #527

@mtparet mtparet closed this Feb 17, 2017
@iNecas
Copy link
Member

iNecas commented Feb 17, 2017

Aand it has been merged, the release will follow over the weekend

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