- Issue created by @larowlan
- Status changed to Postponed
9 months ago 2:45am 16 February 2024 - π¦πΊAustralia mstrelan
Postponed on π Convert DataType plugin discovery to attributes Fixed
- Status changed to Active
9 months ago 10:58am 2 March 2024 - π¦πΊAustralia kim.pepper πββοΈπ¦πΊSydney, Australia
π Convert DataType plugin discovery to attributes Fixed is in so this is unblocked.
- Merge request !6874Fixes #3420981 Convert FieldType plugin discovery to attributes β (Closed) created by kim.pepper
- Status changed to Needs review
9 months ago 11:34pm 3 March 2024 - Status changed to Needs work
9 months ago 12:13am 4 March 2024 - π¦πΊAustralia mstrelan
Can we update the docs for hook_field_info_alter in field.api.php here too? There are references to the annotation class but we should update to the attribute class.
- Status changed to Needs review
9 months ago 12:26am 4 March 2024 - π¦πΊAustralia kim.pepper πββοΈπ¦πΊSydney, Australia
#6 Done.
I was also questioning how these worked with
Annotation\FieldType
as they weren't defined anywhere I can see:public readonly array $config_dependencies = [], public readonly array $column_groups = [], public readonly array $serialized_property_names = [],
- Status changed to Needs work
9 months ago 12:44am 4 March 2024 - π¦πΊAustralia mstrelan
#7 I think we can remove those. They are the additional keys mentioned at the top of the attribute/annotation class. Since the attribute values get converted to an array they don't need to be defined.
- π¦πΊAustralia mstrelan
Actually I think if we need to remove them then we need an alter hook to add the values in.
- π¨πSwitzerland berdir Switzerland
What I'm doing in the entity type issue is add an explicit additional key where you can put it arbitrary settings.
But some of these we probably should define if they're part of the official API.
serialized property names is part of a security issue that went in a while ago, column_groups is afaik mostly used for content _translation, not sure about config dependencies. It's used in \Drupal\Tests\field\Kernel\TestItemWithDependenciesTest, would probably need to check the issue that added this to see what the real use cases are.
- Status changed to Needs review
7 months ago 4:32am 17 April 2024 - π¦πΊAustralia kim.pepper πββοΈπ¦πΊSydney, Australia
@Berdir #10 i had a look at π Convert entity type discovery to PHP attributes Needs review and doesn't look this you are doing this anymore?
I have left the properties in for now.
Re: config_dependencies I found this in the docs for
\Drupal\Core\Config\Entity\ConfigDependencyManager
* Classes for configurable plugins are a special case. They can either declare * their configuration dependencies using the calculateDependencies() method * described in the paragraph above, or if they have only static dependencies, * these can be declared using the 'config_dependencies' annotation key.
- Status changed to RTBC
7 months ago 1:51pm 22 April 2024 - πΊπΈUnited States smustgrave
Applied the MR searched for @FieldType all instances have been replaced
Verified $deriver is there (something had to check from previous attribute tickets)
Tests are all green, showing nothing broke.Believe this is good
- Status changed to Needs work
7 months ago 10:59pm 22 April 2024 - Status changed to Needs review
7 months ago 1:24am 23 April 2024 - π¦πΊAustralia kim.pepper πββοΈπ¦πΊSydney, Australia
Addressed feedback so back to NR
- Status changed to Needs work
7 months ago 11:45am 25 April 2024 The Needs Review Queue Bot β tested this issue. It no longer applies to Drupal core. Therefore, this issue status is now "Needs work".
This does not mean that the patch necessarily needs to be re-rolled or the MR rebased. Read the Issue Summary, the issue tags and the latest discussion here to determine what needs to be done.
Consult the Drupal Contributor Guide β to find step-by-step guides for working with issues.
- First commit to issue fork.
- Status changed to Needs review
7 months ago 12:44pm 25 April 2024 - Status changed to RTBC
7 months ago 1:52pm 25 April 2024 - πΊπΈUnited States smustgrave
All feedback appears to be addressed here.
- π¬π§United Kingdom alexpott πͺπΊπ
Committed and pushed cf09596544 to 11.x and 4afc682d90 to 10.3.x. Thanks!
-
alexpott β
committed 4afc682d on 10.3.x
Issue #3420981 by kim.pepper, quietone, mstrelan, Berdir, alexpott:...
-
alexpott β
committed 4afc682d on 10.3.x
- Status changed to Fixed
7 months ago 2:49pm 25 April 2024 -
alexpott β
committed cf095965 on 11.x
Issue #3420981 by kim.pepper, quietone, mstrelan, Berdir, alexpott:...
-
alexpott β
committed cf095965 on 11.x
Automatically closed - issue fixed for 2 weeks with no activity.