Skip to content

Conversation

@cgpoh
Copy link
Owner

@cgpoh cgpoh commented May 28, 2025

No description provided.

@cgpoh cgpoh requested a review from Copilot May 28, 2025 03:40
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR upgrades the DataHub integration by updating import paths, revising API signatures, and bumping the package version.

  • Updated import paths for Kafka source configuration and reports in both tests and source files
  • Modified the API of get_schema_metadata to include a new boolean parameter
  • Increased the package version from 2.0.1 to 2.1.0 in setup.py

Reviewed Changes

Copilot reviewed 13 out of 13 changed files in this pull request and generated 1 comment.

File Description
tests/apicurio/test_schema_registry.py Adjusted import paths and updated tests to pass an explicit boolean argument to get_schema_metadata
src/apicurio_kafka/apicurio_schema_registry.py Updated import paths and modified get_schema_metadata() signature; added stub methods for subject-related functionality
setup.py Bumped version number to 2.1.0
Comments suppressed due to low confidence (1)

tests/apicurio/test_schema_registry.py:122

  • Consider adding a unit test that covers the scenario when the 'is_subject' parameter is true, to ensure that both code paths are properly tested.
schema_metadata = apicurio_schema_registry.get_schema_metadata("test", "", False)


def get_schema_metadata(
self, topic: str, platform_urn: str
self, topic: str, platform_urn: str, is_subject: bool
Copy link

Copilot AI May 28, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please update the docstring for get_schema_metadata to clearly document the purpose and expected usage of the new 'is_subject' parameter.

Copilot uses AI. Check for mistakes.
@cgpoh cgpoh merged commit fab14dc into main May 28, 2025
1 check passed
@cgpoh cgpoh deleted the upgrade-datahub branch May 29, 2025 03:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants