-
Notifications
You must be signed in to change notification settings - Fork 71
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
Support for Silverstripe 5. Add property/return type definitions. Rename master/slave #152
Support for Silverstripe 5. Add property/return type definitions. Rename master/slave #152
Conversation
f783751
to
b3fcf67
Compare
b3fcf67
to
1f4d189
Compare
Just noticed that this PR was a thing: I might reconsider my names. |
Thanks for the work on this, @chrispenny! Will take it for a spin this week. Re: the names, how about |
It would be also great to do the Travis to Github Actions change in a separate PR to be able to see the status here directly. I can possibly pick that up myself. |
@michalkleiner sorry, I forgot to update the description. Yup, I ended up going with I can give you access to the fork if you'd like to be able to see the actions (and can't already). |
@michalkleiner the other option is that if I close this PR, move the branch into this repo, and reopen, then the actions will display in the PR. I'm confident that they're functioning where they are though - we've had to go through this pain a fair few times as we switch off travis. |
Co-authored-by: Michal Kleiner <[email protected]>
Co-authored-by: Michal Kleiner <[email protected]>
Co-authored-by: Michal Kleiner <[email protected]>
Co-authored-by: Michal Kleiner <[email protected]>
Co-authored-by: Michal Kleiner <[email protected]>
Thanks for picking up all of those errors, @michalkleiner! I've upgraded our build process, our test suite is green again, and my CMS tests are working :D |
If there is no more feedback to come, I'll look to merge/tag this next week. |
New major & PHP 8.1
This is going to be a new major, and now is our chance to be more declarative with property and return type requirements.
If developers have extended our base classes, then yes, there might be a lot of breaking changes for them - but it should be as simple as updating signatures. There have not been any programmatic logic changes.
Github actions
Travis is no longer free for open source. Switching to Silverstripe's Github action workflow.
Workflow (might not be visible to all) is running behat and PHPUnit tests:
https://github.com/silverstripeltd/silverstripe-display-logic/actions/
Behat
Some major changes in the new behat modules, so I bit of effort went into upgrading these.
Master / slave
I think it's reasonably well accepted that we should stop using this wording.
master
renamed todispatcher
slave
renamed toresponder
This would be another breaking change for developers who have extended our base classes.
Edit: And in fact, UncleCheese had already raised a PR to address this in version 2 (#148).
Testing
My testing has been limited to forms within the CMS.