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

Added support for custom field mappings #664

Merged
merged 12 commits into from
Jul 12, 2024
Merged

Commits on Jul 11, 2024

  1. Added the ability to set & map custom fields, using a new CMDT Logger…

    …FieldMapping__mdt and a new instance methods LogEntryEventBuilder.setField() & setFields()
    jongpie committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    3fbc7bf View commit details
    Browse the repository at this point in the history
  2. [WIP] Fixed a test failure for field mappings + moved the test method…

    … to a new dedicated class in extra-tests, along with a few custom fields to do a proper test (instead of using fields/overwriting existing field values)
    jongpie committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    e008839 View commit details
    Browse the repository at this point in the history
  3. [WIP] Fixed some issues in LoggerFieldMapper that would cause things …

    …to fail in a few scenarios
    
    Mappings for some objects (but not all objects) would cause failures
    
    String values that exceed the target field's length would cause failures
    
    Field mappings for incompatible data types (e.g., String --> Datetime) would cause failures
    jongpie committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    d24edf3 View commit details
    Browse the repository at this point in the history
  4. [WIP] Updated naming convention of new validation rules from Snake_Ca…

    …se to PascalCase
    
    Some legacy/older validation rules use Snake_Case, but overall, PascalCase is used for all metadata in Nebula Logger
    jongpie committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    84f4874 View commit details
    Browse the repository at this point in the history
  5. Updated several config classes to consistently have test-visible priv…

    …ate methods before non-test-visible private methods
    jongpie committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    6bd774d View commit details
    Browse the repository at this point in the history
  6. [WIP] Moved new class LoggerFieldMapper to be part of the configurati…

    …on layer (instead of the log management layer)
    
    It's only used by the log management layer, but since it (generically) manages field mappings, it's really part of the configuration layer
    jongpie committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    33dfdef View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    991c5d9 View commit details
    Browse the repository at this point in the history
  8. Added some CMDT records to the extra-tests directory that map the inc…

    …luded custom fields (also stored in the extra-tests directory)
    
    These CMDT records are just to help with functionally/manually testing in a scratch org - they won't be included in any of the packages
    jongpie committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    8800d79 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    2eea131 View commit details
    Browse the repository at this point in the history

Commits on Jul 12, 2024

  1. Updated setFields() method name to be an overload of setField()

    This approach is more consistent with the singular naming convention used by other builder method overloads, like setRecord()
    jongpie committed Jul 12, 2024
    Configuration menu
    Copy the full SHA
    4148d97 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    7495f96 View commit details
    Browse the repository at this point in the history
  3. [skip ci] Updated README.md to add details about custom field mapping…

    …s, and cleaned up/updated some other README contents
    
    Also added .github/FUNDING.yml so the repo has a sponsor button
    jongpie committed Jul 12, 2024
    Configuration menu
    Copy the full SHA
    d4787c6 View commit details
    Browse the repository at this point in the history