Skip to content

feat: log warning for Gen 1-only operations - #1063

Merged
veronika-alraheem merged 1 commit into
mainfrom
1318-gen1-warnings
Dec 3, 2026
Merged

veronika-alraheem merged 1 commit into
mainfrom
1318-gen1-warnings

Conversation

@veronika-alraheem

Copy link
Copy Markdown
Contributor

PR summary

Emit a log warning for operations only available for Gen 1.
Fixes i1318

PR Checklist

Please make sure that your PR fulfills the following requirements:

  • The commit message follows the
    Angular Commit Message Guidelines.
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)

PR Type

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • New tests
  • Build/CI related changes
  • Documentation content changes
  • Other (please describe)

What is the current behavior?

Calls to Gen 1-only operations execute without any user-facing warning that they are unavailable for Gen 2.

What is the new behavior?

  • A new gen1_only_rule covers the Gen 1-only operations. When prepare_request finds it for an operation, it logs a warning and still sends the request.
  • Setting CLOUDANT_SDK_GEN1_ERRORS=true raises an UnsupportedOperationError.

Does this PR introduce a breaking change?

  • Yes
  • No

Other information

Comment thread ibmcloudant/cloudant_base_service.py Resolved
@veronika-alraheem
veronika-alraheem merged commit e52be4a into main Dec 3, 2026
10 checks passed
@veronika-alraheem
veronika-alraheem deleted the 1318-gen1-warnings branch December 3, 2026 10:44
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