Uploaded image for project: 'Puppet'
  1. Puppet
  2. PUP-7583

Replace `to_yaml_properties` with `encode_with`

    Details

    • Type: Task
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: PUP 5.0.0
    • Component/s: None
    • Labels:
    • Template:
    • Acceptance Criteria:
      Hide

      Puppet does not rely on `to_yaml_properties` to filter fields of objects from serialization

      Show
      Puppet does not rely on `to_yaml_properties` to filter fields of objects from serialization
    • Epic Link:
    • Sub-team:
    • Team:
      Agent
    • Story Points:
      1
    • Sprint:
      Agent 2017-06-14
    • Release Notes:
      Not Needed
    • Release Notes Summary:
      This is a release-unnoteworthy internal concern.
    • QA Risk Assessment:
      No Action

      Description

      We use to_yaml_properties to filter attributes from objects when serializing to yaml (at least in report and simple_graph). This method is deprecated in ruby and the current way to do this is to define encode_with.

      Replace use of `to_yaml_properties` with `encode_with` in puppet.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              moses Moses Mendoza
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Zendesk Support