Function extraction (Move towards generic custom data support for all entities) #12095
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Overview
Basic code clean up
(reviewer's commit from 28bbc8d)
Before
Code not re-usable
After
Code re-usable
Technical Details
@mattwire this is a review commit of your patch here
28bbc8d
In general I think your patch makes sense as an extraction & I thought it worth splitting this part off & getting it merged so we could build on it. I still have thoughts about whether this is the best place for the extracted function (back to our traits experiments) but I think a refactoring can have several steps & this is a step in the right direction.
Changes I made from yours
a) they didn't seem to match what was being passed in from the membership form and
b) it seemed that subName would be more often used
Comments
@mattwire if you confirm that you think this sub-commit is good to go I will merge as a reviewers's commit