Skip to content

SK-2838: add deprecated usage samples to samples/deprecated/#250

Open
saileshwar-skyflow wants to merge 22 commits into
mainfrom
saileshwar/SK-2838-move-deprecated-samples-to-deprecated-folder-in-samples
Open

SK-2838: add deprecated usage samples to samples/deprecated/#250
saileshwar-skyflow wants to merge 22 commits into
mainfrom
saileshwar/SK-2838-move-deprecated-samples-to-deprecated-folder-in-samples

Conversation

@saileshwar-skyflow

@saileshwar-skyflow saileshwar-skyflow commented May 21, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Adds a new samples/deprecated/ folder with sample files demonstrating deprecated API usage, each with a clear migration guide.
  • Three deprecated patterns are covered:
    • update_log_level() → migrate to set_log_level()
    • FileUploadRequest positional args → migrate to keyword arguments
    • 'redaction' key in detokenize data → migrate to 'redaction_type'

Details

Sample file Deprecated usage Recommended replacement
update_log_level.py client.update_log_level(LogLevel.INFO) client.set_log_level(LogLevel.INFO)
file_upload_positional_args.py FileUploadRequest(table, skyflow_id, column_name, ...) FileUploadRequest(table, column_name=..., skyflow_id=...)
detokenize_redaction_key.py {'token': ..., 'redaction': RedactionType.X} {'token': ..., 'redaction_type': RedactionType.X}

Each sample follows the same structure as existing samples in samples/vault_api/ — step-by-step comments, a docstring with before/after migration snippet, and standard SkyflowError handling.

saileshwar-skyflow and others added 22 commits January 27, 2026 21:40
* SK-2504: add support for custom token uri
…rules-and-fix-hardcoded-values-in-python-v2-sdk

SK-2496: extract hard coded values to constants
* SK-2526: upgrate urllib3 and setuptools libraries
* SK-2548 update config validation

* SK-2548 fix the unit test cases
…e fixes (#242)

* SK-2833: Add backward-compatible deprecation shims for update_log_level and FileUploadRequest (#244)

* SK-2813: Fix and clean up SDK sample files (#243)
@saileshwar-skyflow saileshwar-skyflow changed the base branch from release/26.1.4 to main June 15, 2026 10:43
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