Closed (fixed)
Project:
Block field
Version:
8.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
23 Mar 2019 at 19:50 UTC
Updated:
24 Apr 2020 at 07:47 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
michaellander commentedComment #3
primsi commentedReopening this, because it seems that there are a few issues that need addressing:
Seems like the functional tests rely on some classes that are not available in stark theme, so going with classy.
Regarding the ConfigurablePluginInterface change, as far as I can see we don't need DependentPluginInterface, because calculateDependencies was empty, so I removed it.
Also added the changes for info files, as per https://www.drupal.org/node/3070687
Didn't address the match_limit issues as per @Berdir's comment here: https://www.drupal.org/project/geolocation/issues/3107798#comment-13443022
Comment #4
berdirlooks good.
Comment #5
lisa.rae commentedOne minor issue, after applying the patch and rescanning:
21/21 [▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓] 100%
------ -------------------------------------------------------------
Line tests/src/Functional/BlockFieldTest.php
------ -------------------------------------------------------------
165 Call to deprecated function entity_get_display():
in drupal:8.8.0 and is removed from drupal:9.0.0. Use
EntityDisplayRepositoryInterface::getViewDisplay() instead.
------ -------------------------------------------------------------
[ERROR] Found 1 error
Comment #6
swatichouhan012 commentedHii, after applying patch i found no deprecation is remaining in the module. re uploading patch because of composer failure.
Comment #7
berdirit doesn't make sense to require only 8.7 and remove this from test modules, which is something that's only possible since 8.8.2 or so. Test modules should have the same core_version_requirement key
Comment #8
swatichouhan012 commentedadded same core_version_requirement and core version in test module and also fixed dependency name prefixed wit project name.
Comment #9
berdirThis change isn't correct, the module requires 8.7.7 which also means you need to remove the core key, same in the test modules. So before it was correct in the block_field.info.yml and the test modules should have the same.
Comment #10
swatichouhan012 commented@Berdir thanks for review patch, i have updated version in new patch.
Comment #11
berdirLooks good now I think.
Comment #12
lisa.rae commentedRerolls patch to address test using deprecated method entity_get_display().
Comment #13
lisa.rae commentedComment #14
berdirthis seems to include quite a few unrelated changes, the alter hooks, category negate?
This means we need to require 8.8 if this really needs to be in this patch? looks like extra, new test coverage?
Also missing spaces on the comment.
Comment #15
berdirYeah, this went from 4kb to 16kb, that's a lot of extra stuff.
Comment #16
lisa.rae commentedDisregard patch #12 above, not sure where my head was at. It is not needed, patch #10 addresses issues on this project.
Comment #17
berdirBack to RTBC then. You likely tested a combined patch, that's always tricky with this D9 issues. it does mean that the issue that adds that test coverage and uses entity_get_display() for that will need to be rerolled and require 8.8 then once this is in.
Comment #18
berdirThanks everyone, committed #10.
Comment #21
hugovk commentedThanks all for this! Good to see this is ready for D9!
I see https://www.drupal.org/project/block_field/issues/3043558 is for tracking the beta release, please may I ask for a new alpha release?
It would be great to see block_field show as green in the Upgrade Status list :)
https://www.drupal.org/project/upgrade_status
Also, please could you add a "Drupal 9" section to this project's "Project information"?
For example, compare with: https://www.drupal.org/project/upgrade_status
Comment #22
hugovk commentedAnd here's official guidance for this: https://www.drupal.org/docs/9/how-to-prepare-your-drupal-7-or-8-site-for...