Closed (fixed)
Project:
Bynder
Version:
8.x-2.x-dev
Component:
Code
Priority:
Major
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
10 Apr 2020 at 06:27 UTC
Updated:
13 Aug 2020 at 11:34 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
mo_farhaz commentedplease review it.
Comment #3
gambryThere are many more errors then the one in the IS.
Attached the scan of version 2.2. I checked and some of them exists on 3.x branch too, but I don't have the branch checked out with me at the moment so I can't scan it and compare.
Comment #4
phoang commentedComment #5
phoang commentedComment #6
dave reidMoved to another issue I meant to reply on
Comment #7
gambryThis issue still needs work as per comments on #3.
Also re-publish the .txt file with latest deprecations report.
Comment #8
nitesh624Comment #9
nitesh624Comment #10
nitesh624Comment #11
nitesh624Comment #12
nitesh624Comment #13
mbovan commentedMade additional fixes.
Edit: After
composer require --dev drupal/core-dev:^8and rerunning drupal-check it reports no errors. The same applies when I scan the module with the Upgrade Status module.Comment #14
berdirthese file system methods require at least 8.7
this is an exception class, not a service. would be quite awkward to update the code everywhere to pass this in.
It's also at the end of optional arguments
Let's just use the MessengerTrait here and als in several other classes that need it.
switch to $this->t() when you touch it, make sure we include the StringTranslationTrait if it's not already there from base classes (should be for plugins)
Comment #15
nitesh624Working on it will update by today EOD.
Comment #16
nitesh624Comment #17
nitesh624Fixed below as per suggestion in #14
core_version_requirement: ^8.7 || ^9in *.info.yml files.BynderException.php filet()with$this->t()Comment #18
berdirlooks like this reverted the jquery_ui dependency, that's not correct.
this was removed before, which is fine as it's not needed anymore. I can't see how anyone would rely on that.
Comment #19
mbovan commentedUpdates:
core_version_requirementis available since 8.7.7, set the requirement to that.MessengerTraitnow.Comment #20
mbovan commentedRegarding the tooltip change there is a separate issue #3151012: Make the jquery_ui_tooltip contrib module dependency optional. I left a comment about the optional dependency #3151012-comment-3.
Comment #21
berdirlets keep this as a strict dependency for now. We can use the other issue to make it optional.
Means we also need a composer.json entry for this and an update function to enable the module if it's present.
Comment #22
nitesh624Thanks for review I will address the above changes in next 6-7 hours
Comment #23
nitesh624Updates:
protected $messageLevel = 'error';from/src/Exception/BynderException.phpcore_version_requirementtocore_version_requirement: ^8.7.7 || ^9Comment #24
mbovan commentedUpdates: fixed remaining usages of
$messageLevelfrom #23, addedmatch_limitkey in the form displays, added$defaultThemeproperty in the browser tests, small fixes...Tests need to be fixed but that is out of scope here.
Comment #25
mbovan commentedChecked tests in more details.
All tests pass now except
Drupal\Tests\bynder\Functional\UsageTestwhich requiresentity_usage:1.xto pass.Comment #26
berdirCommitted this.
Comment #28
berdirComment #29
mbovan commentedHere is the patch that makes Bynder 2.x branch Drupal 9 compatible.
All the tests are passing locally.
Comment #32
berdirAh, I forgot one thing about the update function in 3.x, we need to avoid conflicts between the branches. I'll update that to 8300. It won't hurt if it runs twice and in this case, it doesn't matter, but future updates might then be skipped if people update later from 2.x to 3.x.
another thing I missed. match_limit actually requires 8.8, tests at least would fail on 8.7.
another thing I missed.
usually it's better to keep the libraries.module integration to not break it on 8.9, but, as I see, this never implemented the necessary hook_library_info() alter, because the lookup doesn't just magically work then, unlike the new D8.9 feature.
Given that, I'm fine to remove this, but the new method can return FALSE, so I extended the is_file() check below to do $path && file_exists($path) to avoid a file_exists(FALSE) check.
I pushed the version and library check directly to 8.x-3.x and cherry-picked it into the 8.x-2.x commit.
Comment #34
akucherov commentedBerdir, your last commit results in a bad yaml configs, see: https://git.drupalcode.org/project/bynder/-/commit/c2d670eb6845dc1bf4843...
Comment #37
berdir@akucherov: Ooops, nice catch! I've pushed a fix to 8.x-2.x a while ago and now also to 8.x-3.x as I didn't realize the same mistake was there as well.