Clarify the "shape matching" bits: namespaces, `CODEOWNERS` and as issue queue component

Created on 29 May 2024, 7 months ago
Updated 12 September 2024, 3 months ago

Problem/Motivation

SdcPropToFieldTypePropMatcher is doing a lot.

Proposed resolution

πŸ‘† Descoped because as of πŸ“Œ Support complex SDC prop shapes: introduce (Storable)PropShape to compute field type storage settings Fixed , we can significantly reduce what it is that SdcPropToFieldTypePropMatcher does.

Per https://wimleers.com/xb-week-3, titled , this represents an area in the codebase of its own.

In this MR (πŸ™ please check the commit history, I carefully crafted the commit history to make it easier to review + provided comments on the MR to contextualize specific bits):

  1. First capture the intent: clearer CODEOWNERS + issue queue components: https://git.drupalcode.org/project/experience_builder/-/merge_requests/2...
  2. Then move the crufty old classes into a directory structure that matches that first step: https://git.drupalcode.org/project/experience_builder/-/merge_requests/2...
  3. OUT OF SCOPE: renaming classes β€” that'd be too painful to review, that can easily happen later πŸ‘
  4. Remove all the ancient test expectations from SdcPropToFieldTypePropTest that πŸ“Œ Support complex SDC prop shapes: introduce (Storable)PropShape to compute field type storage settings Fixed made obsolete/irrelevant (because unused): https://git.drupalcode.org/project/experience_builder/-/merge_requests/2...
  5. (Then update test expectations etc. to get it to green)
  6. Remove the now obsolete types from `FieldForComponentSuggester`.: https://git.drupalcode.org/project/experience_builder/-/merge_requests/2...
  7. Similarly, update adapter_matches_field_type expectations in SdcPropToFieldTypePropTest to expect only the single `StorablePropShape` expression.
  8. πŸ”₯πŸͺ¦Dead code removal thanks to πŸ“Œ Support complex SDC prop shapes: introduce (Storable)PropShape to compute field type storage settings Fixed in the first place and then the above commits having removed reliance on lower-level infrastructure, that is then now finally dead. πŸ‘ˆ This is where SdcPropToFieldTypePropMatcher became a LOT simpler!
  9. Docs expanded/improved: https://git.drupalcode.org/project/experience_builder/-/merge_requests/2...

Result: 34 files, +253, βˆ’1017.

User interface changes

None.

πŸ“Œ Task
Status

Fixed

Component

Shape matching

Created by

πŸ‡¦πŸ‡ΊAustralia larowlan πŸ‡¦πŸ‡ΊπŸ.au GMT+10

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024