-
Notifications
You must be signed in to change notification settings - Fork 23
Upgrade to SilverStripe 4 #150
base: master
Are you sure you want to change the base?
Upgrade to SilverStripe 4 #150
Conversation
abdcdb8
to
208bc34
Compare
I'm not really sure why Scrutinizer is not happy with composer, Travis seems to have installed properly. Though I'm working on the test failures ;) |
So the tests now pass locally because the module is not the root of the install but in the case of Travis it's the root which causes the DocumentationParserTest to fail in a couple spots. I'm torn as to whether adjust the tests or Travis (somehow). |
I had a quick look at the test failures, and they're not really great assertions anyway to be honest. I think we should get rid of the |
I agree about removing the We could use regex to find the path with or without the |
In short the url remapping would either match Travis'es |
Great that you've got Travis passing. There's a conflict you'll need to resolve now as well. I'll just go and make sure that the master branch is ready for SilverStripe 4.x compat, then if you could rebase onto it that'd be awesome! Thanks again for the PR. |
BTW you may need to update the Scrutinizer configuration file. Here's a working example for the new Scrutinizer build engine (you may need to adjust src/code folder names): checks:
php: true
build:
nodes:
analysis:
tests:
override: [php-scrutinizer-run]
filter:
paths: ["src/*", "tests/*"] |
Fixed pathing for the css and js requirements Updated composer type to a vendor module Updated the requirement for mnapoli/front-yaml to be compatible with SS4 Removed unsupported language file Updated translations Updated namespaces in language files
Fixed issue when under DevelopmentAdmin where the url parameters would not line up properly Replaced get_class() to determine type with the new getType method Relocated templates to match controller namespace
through DevelopmentAdmin Fixed include paths in the DocumentationViewer_DocumentationPage template Fixed undefined variable notice
Changed branch alias to 3.x-dev
Adjusted composer requirements
Updated tests to account for the removal of DOCSVIEWER_PATH and DOCSVIEWER_DIR Fixed test failure in DocumentationPageTest where the path on Travis would not match the normal install path
2a48a06
to
0df9585
Compare
Re-based, though Scrutinizer did not run at all based on this force push now? It was failing seemingly due to a composer issue. |
@UndefinedOffset yeah you'll need to update the Scrutinizer configuration to match the example I posted above. The config that's in this module already uses the old Scrutinizer build system which has an outdated version of Composer that isn't compatible with the recipe or vendor plugins that SilverStripe 4 uses. I've reopened the PR to see if it will re-trigger Scrutinizer, but doesn't look like it has. |
Well the updated config seems to have triggered Scrutinizer :) it looks like Travis failed :( because it lost connection to the DB during tests? Which is a new one lol... |
Upgraded to support SilverStripe 4.3+. Per @robbieaverill's recommendation in #133 I've removed the search functionality and related code from the module. I've also changed how the routing works to be registered with
DevelopmentAdmin
since I couldn't get the old routing to work at all without doing that. Perhaps it was something with how I set the after, not really sure either way having it registered withDevelopmentAdmin
solves the routing.As well exposing images for example from the documentation since the core now uses the public folder requires some more configuration on a per-case basis, meaning you must mark the folder path to be exposed like normal.