Closed (fixed)
Project:
PHP FFmpeg
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
2 Aug 2016 at 10:45 UTC
Updated:
29 Aug 2016 at 17:50 UTC
Jump to comment: Most recent, Most recent file
Make the module available for Drupal 8
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | d8_port-2777531-4.interdiff.txt | 40.49 KB | s_leu |
| #4 | d8_port-2777531-4.patch | 48.15 KB | s_leu |
| #2 | d8_port-2777531-2.patch | 38.01 KB | s_leu |
Comments
Comment #2
s_leu commentedHere's a first patch.
Comment #3
berdirGood start.
no need to repeat the module prefix in the config keys, they are already namespaced.
really needed or copied from somewhere?
you can remove the file if there is nothing left in here. although technically, all modules should have a hook_help() implementation, so keeping it is fine too.
no @file on classes anymore.
No need for that standard Class XY thing that phpstorm ads. just keep the second line.
wondering if we should have a prefix, no idea what those cache ids will look like.
also remove
you can inject those into the factory. to do that with the logger, you can define it as a service too, core has examples.
same for the config, inject the config factory.
I would remove the prefix here as well.
you can do this using #type number and set #step to 1 and #max/#min accordingly.
standard is going to be extremely slow. lets try to change to testing.
we still have the adapter, so lets keep this test.
Should be quite easy to convert this to a unit test that uses mocks.
Comment #4
s_leu commentedComment #5
berdirwrong file extension.
a kernel tests works too I suppose, although a unit test here would be nicer IMHO
Comment #6
berdirWorking on this in a PR now, to have tests run: https://github.com/FloeDesignTechnologies/drupal-php-ffmpeg/pull/1
Comment #7
pbuyle commentedAwesome!
I've not worked with Drupal 8 much but this looks good to me. Anything missing or do you consider this RTBC?
Also, would you be interested becoming maintainer for the Drupal 8 version?
Comment #8
pbuyle commentedCurrently the port does not seem to support Monolog but retains configuration for a Monolog channel. I'm not convinced Monolog support is a must-have in Drupal8, so removing it from the settings should be enough.
Comment #9
berdirThe logger adapter is removed because Drupal watchdog already implements the psr logger interface.
We inject a watchdog channel logger, someone could alter the service definition and log it to another place, but I think it is more likely for a drupal site to switch out the dblog module completely and log everything somewhere else?
I think it's pretty much ready, still need to do some final tests, however. I just pushed a small commit with a problem that I noticed that broke the simpletest UI, that is also fixed now. Tests in the PR are passing, so that's good. I can clean up those commits a bit if you want. Committing as a single patch/commit is also fine with me.
Sure, I can help with maintaining, can't promise much since I have a ton of modules where I'm involved. But I'll try to follow eventual 8.x issues and help with reviews/commits.
Comment #10
pbuyle commentedI've seen injection of the logger. Thanks to the service injection and the service override in Drupal, it can easily be replaced if wanted. So Monolog support in the module would not be relevant. We just need to remove the code for the
monolog_channelsetting (in the settings form and settings definition yaml files).This is a very low maintenance module (the module is simple, and there isn't many users anyway). I'll add you as maintainer. I can still take care of the merge if you want.
Comment #11
pbuyle commentedLe'ts not forget to update the README (and module description on drupal.org) too.
Comment #12
berdirOk, updated the README, removed the monolog setting and added the missing probe service.
I think we're good to go?
Do you want me to merge this to d.o? What is your process with the github repository, is drupal.org the main repository and the other is then updated? (I can't push to that I guess)
Comment #13
pbuyle commentedYes, we are good to go.
I would like to keep the repository on d.o the main one. The GitHub one should be a mirror. But I'm fine as long as both repo are kept fully in sync. I added you as collaborator on GitHub, so you can now commit there too. Which mean I'm okay with you handling the merging. If not done, I'll handle it myself in the coming day.
Once this is done, I'll make a 8.x-1.0 release of the module.
Comment #15
berdirOk, I pushed the code to drupal.org and github, looks like I can't create releases, so assigning to you for that.
Would be great if you could do that asap, then I can already switch to an official release (I don't care about dev or alpha or stable, as long as there's anything) in our project, which will make updating easier.
Comment #16
pbuyle commentedI made a RC release (and a dev one too). If nothing comes up before, I'll make it the 8.x-1.0 release around September 1st.
Comment #17
pbuyle commented@berdir Do you want MD Systems to be added as supporting organization for the development of the D8 version ?
Comment #18
berdirYes please :)
Comment #19
berdirI'd say we can close this issue now?
Comment #20
pbuyle commentedYes off course.
Thank you for the port.
Comment #22
pbuyle commentedVersion 8.x-1.0 released. Again, thanks Berdir, s_leu and MD System for the port to Drupal 8.