Skip to content

Conversation

eduardoChaucaGallegos
Copy link
Contributor

@eduardoChaucaGallegos eduardoChaucaGallegos commented Jul 16, 2025

Description

  • The ensure_* functions were copied from python-api to sgutils.py, as they are being removed from python-api but are likely still in use elsewhere in the codebase.

  • A deprecation warning was added to each function to indicate they will be removed in a future version.

Copy link

codecov bot commented Jul 16, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 79.79%. Comparing base (0158a91) to head (585de58).
⚠️ Report is 15 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1042   +/-   ##
=======================================
  Coverage   79.78%   79.79%           
=======================================
  Files         198      198           
  Lines       20773    20773           
=======================================
+ Hits        16574    16576    +2     
+ Misses       4199     4197    -2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@eduardoChaucaGallegos eduardoChaucaGallegos requested a review from a team July 17, 2025 14:40
@julien-lang julien-lang requested a review from Copilot July 17, 2025 14:45
Copilot

This comment was marked as outdated.

Copy link
Contributor

@julien-lang julien-lang left a comment

Choose a reason for hiding this comment

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

Good start, Thanks!

Copy link
Contributor

@carlos-villavicencio-adsk carlos-villavicencio-adsk left a comment

Choose a reason for hiding this comment

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

Good call

@julien-lang julien-lang requested a review from Copilot July 18, 2025 09:33
Copilot

This comment was marked as outdated.

@julien-lang julien-lang requested a review from Copilot July 18, 2025 09:45
Copy link
Contributor

@Copilot 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 copies deprecated ensure_* utility functions from python-api to the local sgutils.py module as a temporary bridge while these functions are being phased out. The functions are marked with deprecation warnings to encourage migration to built-in Python string methods.

  • Removes dependency on external python-api sgutils module
  • Adds local implementations of ensure_binary, ensure_str, and ensure_text functions
  • Implements comprehensive deprecation warnings for both module-level and function-level usage

@eduardoChaucaGallegos eduardoChaucaGallegos merged commit 7124ac2 into master Sep 10, 2025
25 checks passed
@eduardoChaucaGallegos eduardoChaucaGallegos deleted the ticket/SG-39698-deprecation-warning-sgutils branch September 10, 2025 13:22
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.

3 participants