-
Notifications
You must be signed in to change notification settings - Fork 43
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
Doc - How easy is it to upgrade from the old version of the package with the new version? #61
Comments
And is it possible to make both work at the same time ? |
Hey! Thanks for asking this question, it's probably useful for me to put an answer here so other people can see too. I haven't spent any time on working out an upgrade tutorial yet. My thinking was I'd probably want this new package to get to I'd originally envisaged a gradual upgrade process, but unfortunately as I've been pushed to put more and more information into the schemas this is now looking unlikely - as basically you need the schema for everything else to work. I've upgraded one of my production APIs. That involved going through and converting all the old classes to the new classes rather than it being a gradual swap over. My main tip for upgrading is this: the test suite has barely changed at all. I do TDD so the thing that made that upgrade easier was I had a solid set of tests that I could run after the upgrade to make sure everything passed. If you're planning to upgrade at some point, then making sure you've got a great set of tests in the meantime really helps.
No. The new package is using v4 of the Once I get One thing I want to make really clear here is that the old package ( Feel fre to drop more questions or thoughs on this issue! |
Hello, are there any updates on how to upgrade from the old cloudcreativity package to the new one? Best regards Patrick |
Hello, I really would like to upgrade my growing project to the new package. Do you have a guide or tutorial for me on how to do this efficiently? Thank you very much. :) |
Up :) |
Hi. This is on my radar. I need to focus on getting Laravel 9 support out in the next week, then I can think about putting together some sort of upgrade guide. Just to reiterate a point I've made above... The test suite has barely changes between the two packages, so having a great set of tests really helps with the upgrade. Just putting that out there now because if you haven't got a great set of tests, then putting some time into that pre-upgrade will be really useful. |
Up :) Thanks in advance! |
Yep, haven't forgotten. FYI I'm currently working on this issue: Then I can turn my attention to this issue, as this issue follows on from that one. I am slightly limited on Open Source time at the moment but am trying to keep things progressing. |
@lindyhopchris Chris, thanks for the update and awesome news regarding the #632 issue progress. Cheers. |
For info, if you're on the old package As explained in the upgrade guide, this unlocks being able to install both the old and the new packages in the same application. You can't mix classes from both packages in a single API, but it allows you to have one API using the old package, and one using the new package. The upgrade guide for the old package to get it onto the alpha release is here: I don't have any applications using the old package any more, so I really need people to try out the alpha release and let me know if there are any problems with it, or anything that should be in the upgrade guide that isn't. If you find any problems, report them as issues in the cloudcreativity/laravel-json-api repo, making it clear you're using the 5.0 alpha release. |
I recently did an upgrade of an application from v2 -> v3 -> v4 -> v5 and everything went relatively smoothly. This application has pretty decent test coverage that uses a lot of the JSONAPI helpers. I did not have to do anything outside of the upgrade guides. Once the listed changes were completed all tests continue to pass. The only hiccup I hit was doing the v3 to v4 upgrade. We were using The only thing that wasn't addressed was usage of I went through the install docs for each version and they all reference this Neomerx class, so I presume it is correct to keep using it. I'd recommend adding a note about it in the v5 documentation to remove confusion. Before
After
|
Is there (or Will there) be any tutorial for upgrading ?
Thank
The text was updated successfully, but these errors were encountered: