Feature : 2.4.0 -- Feature/standard value sets #29
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.
Motivation and Context
When generating recipes based on source code, there tends to be references to standardValueSets that require extra efforts to get their associated picklist values in a faker function because the OOTB standard value sets are picklists WITHOUT any necessary xml markup capturing what values make up the picklist.
This feature created a dedicated field api name to picklist values to allow for local management of OOTB standardPicklistValues.
It's not an exhaustive list but is a start and can be easily added on to.
Any Technical Decisions to Note??
It took some fiddling to get there but the approach is simple --> if 'available picklist values' do not exist, then pass the field api name to the standard value set map, if nothing comes back from there, it is more than likely a global value set or a not-yet detailed standard value set
Type of Change
How Has This Been Tested?
Test Details
Existing unit test structure allowed for adjustments and experimentation with how the solution would be solved.
New unit tests were added that leveraged expected mock XML markup that had no picklist value detail, and based on that scenario, would be sent to the standard value set map and, if an expected OOTB api name listed, would return expected picklist options
Checklist
Changelog for branch: feature/standardValueSets
Generated on: 2025-08-01
Summary
Changes at a glance
Added Files
Modified Files
Deleted Files
Renamed Files