Skip to content

v0.4.1: Critical Hotfix - Lifecycle Environments Organization-Scoping

Choose a tag to compare

@rorymcmahon rorymcmahon released this 03 Oct 02:21
· 11 commits to main since this release
bee8e53

🚨 Critical Hotfix v0.4.1

This hotfix addresses a critical issue where the lifecycle environments organization-scoping fix was missing from the v0.4.0 PyPI release.

🐛 Issue Fixed

The v0.4.0 PyPI package contained the old list_lifecycle_environments() function without organization-scoping, causing:

  • Incorrect global results instead of organization-specific data
  • Missing field filtering support
  • API correctness issues with incomplete data

✅ Hotfix Applied

Breaking Change

  • list_lifecycle_environments(organization_id, per_page, include_fields) now requires organization_id parameter
  • Uses correct Katello endpoint: /organizations/{id}/environments
  • Returns accurate, organization-specific lifecycle environment data

New Features

  • Added missing field filtering support for lifecycle environments
  • Essential fields by default: id, name, label, description, library, organization, prior, successor
  • Full flexibility with include_fields="all" or custom field lists

Technical

  • Perfect 10.00/10 pylint score maintained
  • Comprehensive changelog documentation
  • Proper API correctness for Katello organization-scoped resources

🎯 Usage

# Get lifecycle environments for organization ID 1
list_lifecycle_environments("1")

# Get all fields
list_lifecycle_environments("1", include_fields="all")

# Custom fields
list_lifecycle_environments("1", include_fields="id,name,description")

📦 Installation

pip install foreman-mcp-server==0.4.1

⚠️ Breaking Change Notice

This is a breaking change but necessary for API correctness. Users must now provide the organization_id parameter to get accurate, organization-specific results.

Use list_organizations() to find available organization IDs.