Updated: Comment #0
Part of #2105863: [meta] Images, toolkits and operations. This was stated first time in #2103635-21: Remove effects from ImageInterface.
Problem/Motivation
Image processing has now several layers of abstraction:
| Level | Class | Effect/operation method | Abstraction |
|---|---|---|---|
| Image style | ImageEffectInterface |
applyEffect() |
Toolkit agnostic |
| Image | ImageInterface |
apply() |
Toolkit agnostic |
| Toolkit | ImageToolkitInterface |
apply() |
Toolkit dependent |
| Toolkit operation | ImageToolkitOperationInterface |
apply() |
Toolkit dependent |
The higher image style level has a different naming from the others.
Proposed resolution
Unify naming by renaming ImageEffectInterface::applyEffect() to ImageEffectInterface::apply().
Remaining tasks
N/A
User interface changes
No changes.
API changes
Renamed ImageEffectInterface::applyEffect() to ImageEffectInterface::apply().
Related Issues
| Comment | File | Size | Author |
|---|---|---|---|
| #46 | interdiff_25_45.txt | 9.21 KB | prem suthar |
| #45 | 2109343-45.patch | 8.31 KB | prem suthar |
| #25 | unify-image-effect-naming-2109343-25.patch | 9.14 KB | mandar.harkare |
| #21 | unify-image-effect-naming-2109343-21.patch | 6.61 KB | mandar.harkare |
| #20 | Unify-effect-operation-verb-naming-in-image-style-2109343-20.patch | 7.81 KB | Studiographene |
Issue fork drupal-2109343
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #1
sumeet.pareek commentedI think this simple patch should do it.
Comment #2
yesct commented@Sumeet.Pareek did you do this using an IDE with a refactor function, or grepping and doing other unix string replacements?
I'm wondering if we can give a hint for how someone could review this. maybe by grepping for any remaining "applyEffect"
Comment #3
claudiu.cristea@Sumeet.Pareek thank you for contributing.
@YesCT will review as soon it turns green. Thank you!
Comment #5
sumeet.pareek commented@YesCT, @claudiu.cristea - Being new to D8 contrib, this is what I did -
Looking at the failed test results, I see that I missed renaming at one occasion
I am attaching a new patch (should I have uploaded a new interdiff instead?) and have grep-ed again after my changes to confirm I have not missed anything this time (I had not double checked the last time).
Question - How should I have run changes on my local checkout only relevant to the changes I have made to catch this earlier (other that grep-ing of course)? I tried many things here - https://drupal.org/node/645286 but each resulted in various errors and I ended up not being able to run tests locally.
Thanks for all the help. Silly things I ask today should lead to better contributions in the future :-)
Comment #6
claudiu.cristea@Sumeet.Pareek, it's OK to add the new patch as that one is tested by the testbot. But you should add also an interdiff to each new patch otherwise changes cannot be tracked by human reviewers.
Will review later the patch.
Comment #7
mondrake5: rename-method-2109343-5.patch queued for re-testing.
Comment #8
jhedstromPatch no longer applies. Bumping to 8.1.x, as I think interface/API changes are out for 8.0?
Comment #9
ErrolSilver commentedComment #10
ErrolSilver commentedReroll attached.
Comment #12
ErrolSilver commentedComment #13
yesct commented@ErrolSilver
Thank you for trying to reroll this.
did #10 apply for you locally?
patch from #5 is a year old.
Might be better to try and redo the changes from there by hand since it has been so long.
Comment #14
balsamaI was mentoring Errol - we did get the patch to apply locally, but afterwards realized this issue is for the 8.1.x branch (and we were working from 8.0.x). After that, we ran out of time, but hopefully he can re-roll it again this week.
Comment #15
ErrolSilver commentedComment #16
ErrolSilver commentedReroll attached
Comment #20
Studiographene commentedPatch re rerolled!
Comment #21
mandar.harkare commentedNot sure what was wrong in last patch. Trying one more time.
Comment #22
mandar.harkare commentedPlease review.
Comment #25
mandar.harkare commentedOne more patch.
Comment #27
mondrake@mandar.harkare thank you for your work, but the version of this issue is 8.1.x-dev which means tests will fail because that branch was spinned off long ago, and tests would only work against 8.0.x-dev.
In any case, I think this issue should be postponed now, since this is an API change which is unlikely to be accepted at this point of 8.0.0 development, and would need anyway a BC layer.
Comment #28
mandar.harkare commentedYup @mondrake, sounds good.
Cheers!
Comment #44
quietone commentedComment #45
prem suthar commentedAs Per the Issue tag i have re-rolled the patch again the #25 for Drupal version 11.x Dev
Comment #46
prem suthar commentedHere i have added the inter-diff for the 25# To 45#.
Comment #47
prem suthar commentedComment #48
smustgrave commentedShould be made into MR.
Comment #50
prem suthar commentedMove the Patch Code To MR. As per #48
Comment #51
smustgrave commentedFailing a check.
Comment #52
smustgrave commented