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

Fix deprecated route options #614

Closed
wants to merge 1 commit into from

Conversation

soullivaneuh
Copy link
Contributor

This PR fix deprecated routing config throwing related errors:

The "pattern" is deprecated since version 2.2 and will be removed in 3.0. Use the "path" option in the route definition instead.

The "_method" requirement is deprecated since version 2.2 and will be removed in 3.0. Use the setMethods() method instead or the "methods" option in the route definition.

The "_scheme" requirement is deprecated since version 2.2 and will be removed in 3.0. Use the setSchemes() method instead or the "schemes" option in the route definition.

We have to bump symfony/framework-bundle to ~2.2 version. Not a big deal because 2.1 is not maintained anymore.

@soullivaneuh
Copy link
Contributor Author

Not sure failing tests are due to my PR. Can you check that?

Thanks.

@willdurand
Copy link
Collaborator

@soullivaneuh could you please rebase your PR? Tests should be back to green now, at least on the master branch.

@soullivaneuh
Copy link
Contributor Author

Done. 👍

@willdurand
Copy link
Collaborator

Now you can fix your code because tests are failling :p

@soullivaneuh
Copy link
Contributor Author

Damn it! I'll take a look. ;-)

@soullivaneuh
Copy link
Contributor Author

@willdurand I can't figure why test failed.

Not sure if is the test that are outdated or a real error. Can you take a look and give me your advice please?

@soullivaneuh
Copy link
Contributor Author

ping @willdurand

@willdurand
Copy link
Collaborator

don't exactly know what happens to be honest..

@magnetik
Copy link
Collaborator

magnetik commented Jun 4, 2015

It looks like it's only the order of the method that have changed (for some reason ?). We can either find why the order changed, or change the expected results.

@soullivaneuh soullivaneuh force-pushed the deprecated-routes branch 2 times, most recently from 6e58b74 to 1c82b7c Compare June 4, 2015 08:04
@soullivaneuh
Copy link
Contributor Author

@magnetik I suspected that too and you I right. I fixed one test by reverting some test data.

See here: https://github.com/nelmio/NelmioApiDocBundle/pull/614/files#diff-bb9610de031bd0610a5f213da720a4c7L91

But I have no idea of why test fixtures order changed. I review my modifications twice and didn't find any mistake...

@willdurand Have you already saw this?

I'll work on other tests right now.

@soullivaneuh
Copy link
Contributor Author

@willdurand Test fixed by reverting data on expected results.

Good to merge if OK with that.

@phansys
Copy link
Contributor

phansys commented Jun 4, 2015

@soullivaneuh, I had the same issue with the test's order in #616. I still haven't any clue about the reason.

@soullivaneuh
Copy link
Contributor Author

Ok now all fails except on SF 2.6.

@willdurand I think you have magic trolling random test suites... :-D

@soullivaneuh
Copy link
Contributor Author

@willdurand Branch rebased since #640. Should be OK now. 👍

@willdurand
Copy link
Collaborator

Could you please rebase your PR one more time?

@soullivaneuh
Copy link
Contributor Author

Are you kidding me? :-)

Sure I will. 👍

@soullivaneuh
Copy link
Contributor Author

@willdurand It's done. But I don't know if test are working. Didn't resolve anything since last time...

@soullivaneuh
Copy link
Contributor Author

@willdurand Again the same fails...

Routing order changed with Symfony 2.,7, not for other. Can't figure out why.

@lsmith77
Copy link
Collaborator

would be nice to get this wrapped up ...

@soullivaneuh
Copy link
Contributor Author

@lsmith77 I agree. If you have any clue about failing test, I'm hearing! :-)

@teohhanhui
Copy link
Contributor

Would be good if we can get this merged...

@NeuralClone
Copy link

I tend to agree with @lsmith77, @soullivaneuh, and @teohhanhui. It'd be nice to have this merged or have an update on when it might happen. I recently updated to Symfony 2.7.x and I'm getting tons of these messages from this bundle.

@soullivaneuh
Copy link
Contributor Author

@NeuralClone We got some strange issue on Travis test for the moment. If you have any clue to solve it I would be glad to apply a patch quickly.

@NeuralClone
Copy link

@soullivaneuh I've taken a closer look at this and I'm having trouble figuring out why the tests are failing as well. I don't think it's anything you've introduced, though. I'm not seeing any obvious mistakes in your changes, and the same tests aren't passing in the master branch for me. Exact same reasons for the failures as well. If they're passing for other people, I'm questioning what it is they're doing differently.

Unfortunately, I realize this doesn't really come any closer to helping to resolve this. I wish I had something more concrete to report. I'll keep playing with it when I have some free time. :)

@teohhanhui
Copy link
Contributor

IMO the failing tests shouldn't block this PR, since it's the fault of the maintainers themselves... In other words, it's not this PR's responsibility to fix it.

@NeuralClone
Copy link

At the very least I think a new PR should be created to fix the tests since the problems with them seem to go beyond the scope of what this PR is trying to achieve. And this PR doesn't appear to have introduced the problems in the first place.

@soullivaneuh
Copy link
Contributor Author

And this PR doesn't appear to have introduced the problems in the first place.

This is the problem. Those erros didn't appear until this PR. But I can't just figure out why.

@teohhanhui
Copy link
Contributor

This is the problem. Those erros didn't appear until this PR. But I can't just figure out why.

The builds have been failing for quite some time now... https://travis-ci.org/nelmio/NelmioApiDocBundle/builds

@soullivaneuh
Copy link
Contributor Author

@teohhanhui Maybe. But see job details, errors are not the same.

@NeuralClone NeuralClone mentioned this pull request Sep 14, 2015
@mvhirsch
Copy link

ping @soullivaneuh

@soullivaneuh
Copy link
Contributor Author

@mvhirsch The PR is ready. buggy tests are not completely related.

@willdurand
Copy link
Collaborator

merged, thanks

@willdurand willdurand closed this Oct 22, 2015
@soullivaneuh
Copy link
Contributor Author

merged, thanks

@willdurand Are you sure? Seems to be only closed here.

@willdurand
Copy link
Collaborator

yep. it is merged by hand, not pushed yet though.

@soullivaneuh
Copy link
Contributor Author

Okay thanks.

@soullivaneuh soullivaneuh deleted the deprecated-routes branch October 22, 2015 12:59
@NeuralClone
Copy link

Indeed. Thank you for merging this. :)

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.

None yet

8 participants