1. 14 Jun, 2016 1 commit
  2. 09 Jun, 2016 1 commit
  3. 13 May, 2016 1 commit
    • Karel Březina's avatar
      (PE-15587) Set noop flag on a report to true only if all its resource events are noop · b6c2243f
      Karel Březina authored
      This commit improves the algorithm which tries to recognize that puppet run was started with --noop param. Originally, any noop resource event caused that the whole report was marked as noop. However, a noop puppet run would have all resource events in noop state. With this commit, all resource events need to be noop to mark the whole report as noop.
      
      The current implementation is not able to recognize an unchanged noop puppet run since it doesn't contain any events. So, this improvement is just a workaround. To be able to recognize noop puppet runs properly, puppet needs to report in which mode was the run started. This problem is logged as PUP-6294.
      b6c2243f
  4. 21 Apr, 2016 1 commit
    • lafont's avatar
      Add a basic checking of the "query" parameter · 3e46965b
      lafont authored
      To be compatible with Puppet 4.0.0 where recursive types
      are not possible, the type checked here is not accurate.
      Ideally, the type should be:
      
        Variant[String[1], StringTree]
      
      where StringTree is defined (recursively) by:
      
        StringTree = Array[Variant[String, StringTree]]
      3e46965b
  5. 31 Mar, 2016 1 commit
  6. 07 Mar, 2016 1 commit
  7. 16 Feb, 2016 3 commits
  8. 26 Jan, 2016 1 commit
  9. 21 Jan, 2016 1 commit
  10. 13 Jan, 2016 1 commit
  11. 18 Dec, 2015 1 commit
    • Ryan Senior's avatar
      (PDB-2256) Fix terminus bug with large binary catalog data · 0b96f28b
      Ryan Senior authored
      The terminus includes code to help users diagnose the source of data
      that cannot be converted to UTF-8. There are several sources of this,
      but one is having an incorrect (or known) character set for portions of
      the catalog. When this invalid character data is large, it would cause
      the terminus to hang trying to include debugging information.
      
      This patch changes the terminus to only look for the first instance of
      bad data. It will also avoid doing the extra calculations needed for the
      error context unless debug mode is enabled. When not in debug mode there
      should be no impact on performance.
      0b96f28b
  12. 17 Dec, 2015 1 commit
    • Ryan Senior's avatar
      (PDB-2256) Fix terminus bug with large binary catalog data · fef7418b
      Ryan Senior authored
      The terminus includes code to help users determine the source of data
      that cannot be converted to UTF-8. There are several sources of this,
      but one is having an incorrect (or known) character set for portions of
      the catalog. When this invalid character data is large, it would cause
      the terminus to hang trying to include debugging information.
      
      This patch changes the terminus to only look for the first instance of
      bad data. It will also avoid doing the extra calculations needed for the
      error context unless debug mode is enabled. When not in debug mode there
      should be no impact on performance.
      fef7418b
  13. 09 Nov, 2015 1 commit
  14. 03 Nov, 2015 2 commits
  15. 30 Oct, 2015 8 commits
  16. 29 Oct, 2015 1 commit
  17. 19 Oct, 2015 1 commit
  18. 16 Oct, 2015 1 commit
    • Wyatt Alt's avatar
      (PDB-2007) array params with undef don't sort · de722882
      Wyatt Alt authored
      This fixes a discrepancy between JVM puppetserver and Puppet with respect to our
      terminus, where manifests like
      
      @@notify { "test":
          tag => [undef, "a", "b"],
      }
      
      would fail due to inability to compare symbols and strings. With this patch, we
      sort by string representation rather than sorting the array directly.
      de722882
  19. 13 Oct, 2015 3 commits
  20. 06 Oct, 2015 1 commit
  21. 05 Oct, 2015 1 commit
    • Andrew Roetker's avatar
      (PDB-1810) Add code-id field to catalogs · a823ddd3
      Andrew Roetker authored
      This commit adds the code-id field to catalogs, adding a migrations to
      add the column to the catalogs schema, adding storage of the field, and
      adding querying of the field to PuppetDB. This commit also updates the
      terminus to add the field to catalogs on submission. This commit
      consolidates some of the wireformat logic in catalogs.clj, aligning it
      more with what we have in PuppetDB on the reports side of things.
      We expect code-id will be null for FOSS PuppetDB for the forseable
      future.
      a823ddd3
  22. 16 Sep, 2015 1 commit
  23. 15 Sep, 2015 1 commit
    • Ryan Senior's avatar
      (PDB-135) Improve and reduce the number of UTF-8 warnings · d9ae1d76
      Ryan Senior authored
      Prior to this commit, any non-ASCII character found in a catalog would
      be replaced by /ufffd and a warning would be issued saying it found an
      invalid character. The code now takes into account the force_encoding
      done by to_pson and attempts to force_encode it back to UTF-8. For most
      cases this should be sufficient.
      
      There are times when binary data can appear in a catalog. In this case,
      we have characters that we can't represent in UTF-8. For this we
      continue to give users a warning. This warning now includes the command
      being submitted and the node the command is for. If users have debug
      logging enabled, context is given around where this bad character data
      occurred. Up to 100 characters before/after this bad data is included in
      the Puppet debug log.
      d9ae1d76
  24. 02 Sep, 2015 1 commit
  25. 13 Aug, 2015 1 commit
    • Andrew Roetker's avatar
      (PDB-1855) Remove non-unchanged resources in terminus spec test · cd2d94d8
      Andrew Roetker authored
      This commit ensures that non-unchanged resources are removed from the
      unchanged resources terminus test to ensure that there is only one
      unchanged resource in our resources list such that we don't get bogged
      down by ordering issues which can be different on different versions of
      ruby.
      cd2d94d8
  26. 12 Aug, 2015 1 commit
  27. 11 Aug, 2015 1 commit
    • Andrew Roetker's avatar
      (PDB-1851) Create new "resource-centric" wire-format for reports · 388272d7
      Andrew Roetker authored
      Previously PuppetDB report's wire-format used a flattened
      `resource_events`, where resources and events where merged together in
      the terminus and stored under the same model in PuppetDB.
      This commit adds a new report wire-format which uses a list of
      `resources` which each have a field `events` which is a list of events
      associated with the resource.
      388272d7
  28. 19 Jun, 2015 1 commit
    • Wyatt Alt's avatar
      (PDB-1629) fix relationships on resource aliases · 8cd5e0c8
      Wyatt Alt authored
      This corrects a bug where the terminus would scan for resource alias names
      using the wrong key, which would cause the list of aliases to fall through to
      an empty list.
      
      Correcting this made it clear that we were also incorrectly assuming that
      aliases within resources presented as arrays.
      8cd5e0c8