Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add metadata entity transform for global value sets #3862

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

rossreicks
Copy link

Added Support for Global Value Sets in AddValueSetEntries Task

Description

Enhanced the AddValueSetEntries task to support Global Value Sets in addition to Standard Value Sets. This allows users to programmatically add new entries to Global Value Sets while maintaining existing functionality for Standard Value Sets.

Features

  • Adds ability to create new entries in Global Value Sets
  • Supports global entry fields including:
    • fullName
    • label
    • default
  • Prevents duplicate entries (skips if entry already exists)
  • Maintains consistent behavior with Standard Value Sets

Example Usage

task: add_global_value_set_entries
options:
     api_names: CustomValueSet__c
     entries:
            fullName: NewValue
            label: New Value Label
            default: true

Testing

Added comprehensive test suite covering:

  • Basic entry addition
  • Multiple entry handling
  • Duplicate entry prevention
  • Default value handling

Notes

This is my first PR to cumulus so, hello!

@rossreicks rossreicks requested a review from a team as a code owner December 17, 2024 23:05
Copy link

Thanks for the contribution! Before we can merge this, we need @rossreicks to sign the Salesforce Inc. Contributor License Agreement.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant