Support from Acquia helps fund testing for Drupal Acquia logo

Comments

alexpott’s picture

Title: Cleanup aftter FieldConfig » Cleanup after FieldConfig
alexpott’s picture

Can we also do https://www.drupal.org/node/2312093#comment-9164319 points 1 - 2 as well. Thanks.

andypost’s picture

FileSize
1.88 KB

fix all (3) pointed

Berdir queued 3: 2343483-1.patch for re-testing.

andyceo queued 3: 2343483-1.patch for re-testing.

yched’s picture

+++ b/core/lib/Drupal/Core/Field/FieldConfigBase.php
@@ -32,7 +32,7 @@
-   * The name of the field attached to the bundle by this field.
+   * The machine name of the field attached to the bundle.

Can we use the same text than for FieldStorageConfig::$field_name ?

  /**
   * The field name.
   *
   * This is the name of the property under which the field values are placed in
   * an entity: $entity->{$field_name}. The maximum length is
   * Field:NAME_MAX_LENGTH.
   *
   * Example: body, field_main_image.
   *
   * @var string
   */
andypost’s picture

FileSize
625 bytes
2.49 KB

fixed #6

yched’s picture

@andypost: no, I meant the other way around: do not touch FieldStorageConfig, and put in FieldConfigBase the same text that appears in FieldStorageConfig.

andypost’s picture

FileSize
1.85 KB

done, here's one

yched’s picture

Status: Needs review » Reviewed & tested by the community

Sorry for letting this slide. #9 is good to go.
Thanks @andypost !

alexpott’s picture

Category: Task » Bug report
Status: Reviewed & tested by the community » Needs work
Issue tags: +Needs tests, +Needs issue summary update

This looks like we have no test coverage then.

yched’s picture

Status: Needs work » Reviewed & tested by the community
FileSize
1.12 KB

The

- $class::fieldSettingsFromConfigData($record['settings']);
+ $class::fieldSettingsToConfigData($record['settings']);

part got fixed (with the missing tests) in #2437785: FieldConfigStorageBase::mapToStorageRecord() calls the wrong field type method

This leaves just the doc fixes here. Reroll, and back to RTBC.

yched’s picture

Title: Cleanup after FieldConfig » Doc cleanup after FieldConfig
alexpott’s picture

Status: Reviewed & tested by the community » Fixed

Documentation is not frozen in beta. Committed 374f838 and pushed to 8.0.x. Thanks!

  • alexpott committed 374f838 on 8.0.x
    Issue #2343483 by andypost, yched: Doc cleanup after FieldConfig
    

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.