Skip to content

NiFi 2.13.0, Python 3.11+, parameter context fixes

Latest

Choose a tag to compare

@Chaffelson Chaffelson released this 04 Dec 17:40
v1.9.0
252c615

Breaking Changes (please review before upgrading)

  • Python 3.9 and 3.10 are no longer supported. Both have reached end of life upstream. NiPyAPI now requires Python 3.11 or later and is tested on 3.11 to 3.15. Users on 3.9 or 3.10 should stay on NiPyAPI 1.8.x; pip on those versions will not install 1.9.0.
  • Raised the minimum urllib3 to 2.8.0 and requests to 2.33.0, the first releases that fix their open security advisories.
  • Three generated models are removed because the NiFi 2.13.0 specification no longer defines them: nipyapi.nifi.models.StreamingOutput, nipyapi.registry.models.Link and nipyapi.registry.models.UriBuilder. Registry link fields now use typed link models such as BucketLink. No nipyapi helper used them; code that imports them directly needs updating.

Behaviour Changes

  • ci.cleanup(delete_orphaned_contexts=True): now deletes only the parameter contexts the deleted process group used: those bound to it or to its descendant groups, and the contexts they inherit, once nothing else uses them. Previously it deleted every unbound parameter context on the instance, including contexts unrelated to the group. A group with no parameter context now deletes no contexts, and a context that another context still inherits is kept.
  • list_orphaned_contexts: the list is now in deletion order. Each context comes before every context it inherits, and otherwise contexts are ordered by name. Which contexts are listed is unchanged.

New Features

  • apply_parameter_provider / fetch_and_apply_parameter_provider: new parameter_names argument applies only the named parameters from each selected group. NiFi applies exactly the parameters sent, so on a synchronized context a parameter left out of a later apply is removed. Unknown names, an empty list, and a selected group that stages none of the names raise ValueError before anything is applied.
  • nipyapi ci apply_parameter_provider: new CI command that fetches and applies a parameter provider, optionally limited to named groups and parameters, and can connect the applied context to a process group with connect_parameter_provider_group aliases.

Bug Fixes

  • ci.cleanup(delete_orphaned_contexts=True): a context inherited by another orphaned context could be attempted first, rejected by NiFi with 409 Conflict, logged as a warning and left behind. Contexts are now deleted inheritors first.

Supported Versions

  • Bumped the supported and tested NiFi and Registry version from 2.12.0 to 2.13.0, and regenerated both clients. New operations are getting and exporting a process group inside a connector's managed flow, and stopping the source components of a process group.

Maintenance

  • Raised the minimum certifi to 2026.10.19 so installs pick up a current CA bundle.
  • Generated client files no longer carry the OpenAPI spec version in their header, so a NiFi version bump only changes the files whose API changed. The version is still reported by the generated configuration.py.

Full changelog: see docs/history.rst (1.9.0).