Skip to content

Releases: product-definition-center/pdc-client

PDC Client 1.8.0-4

08 Dec 08:36
Compare
Choose a tag to compare

Notable Changes

All errors are reported by pdc_client on stderr output and exit code is non-zero if an error occurs.

It possible to override default plugin paths with PDC_CLIENT_PLUGIN_PATH environment variable. E.g.

export PDC_CLIENT_PLUGIN_PATHS="$HOME/pdc-plugins:/usr/share/pdc-client/plugins"
pdc --help

Simpler access to a specific page with pdc --page.

Method PDCClient.get_paged() in Python API is deprecated and can be replaced by results() method. Both methods return iterator simplifying accessing to pages with results.

client = PDCClient(server)

# Old way (deprecated)
for result in client.get_paged(client.products):
    ...

# New way
for result in client.products.results():
    ...

Simpler access to endpoints with dashes in name.

client = PDCClient(server)

# Old way
branches = client['component-branches']

# New way
branches = client.component_branches

Changelog

  • Add the page argument on pdc
  • Get endpoints containing dash as attributes
  • Override plugin paths with PDC_CLIENT_PLUGIN_PATH
  • Update documentation
  • Add documentation link to README file
  • Add description of page_size=-1 in help doc
  • Add PDCClient tests and fix the discovered bugs
  • Close plugin files when not needed
  • Fix printing errors and exit code for pdc_client
  • Install bytecode for plugins only for correct version of Python

PDC Client 1.7.0-3

08 Dec 08:40
Compare
Choose a tag to compare

Option insecure is deprecated (can be still used but a warning printed on console). The old option should be replaced with ssl-verify in personal configuration files (~/.config/pdc/*.json). The new value is negation of the old one, e.g. "insecure":false becomes "ssl-verify":true.

The version was bumped from 1.2.0 to 1.7.0 to avoid conflicts with internal and related projects.

Changelog

  • Add "product" command
  • Add "product-version" command
  • Add "release-variant" command
  • Add "base-product" command
  • Add content-delivery-repo export/import sub-commands
  • Allow deleting multiple group resource perms at once
  • Allow deleting multiple repos at once
  • Allow deleting release variants
  • Fix SSL command line options
  • Fix configuration name in README
  • Fix content-delivery-repo list ordering
  • Fix passing ordering parameter
  • Fix reading "develop" option from settings
  • Fix the bug about the include-shadow para in repo clone
  • Increase pdc content-deliver-repo list verbosity
  • Make error reporting less verbose
  • Omit installing plugins with Python packages
  • Omit printing long HTML with error
  • Print table with minimum width for content-deliver-repo list
  • Remove the arch parameter from option
  • Replace a custom test runner with standard setup.py test
  • Simplify reporting server errors
  • Sort commands in pdc --help
  • Support SSL cert when insecure is false
  • Unify json output serialization
  • Update test data for content-deliver-repo
  • Update value type for "Shadow" field
  • Allow overriding 'dest' option