Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

deprecate: Added deprecations for methods superseded by query_points #843

Merged
merged 2 commits into from
Nov 8, 2024

Conversation

hh-space-invader
Copy link
Contributor

@hh-space-invader hh-space-invader commented Nov 7, 2024

Show deprecation message to methods that are suppressed by query_points (recommend, discover, search, context search)

All Submissions:

  • Contributions should target the dev branch. Did you create your branch from dev?
  • Have you followed the guidelines in our Contributing document?
  • Have you checked to ensure there aren't other open Pull Requests for the same update/change?

New Feature Submissions:

  1. Does your submission pass tests?
  2. Have you installed pre-commit with pip3 install pre-commit and set up hooks with pre-commit install?

Changes to Core Features:

  • Have you added an explanation of what your changes do and why you'd like us to include them?
  • Have you written new tests for your core changes, as applicable?
  • Have you successfully ran tests with your changes locally?

Copy link

netlify bot commented Nov 7, 2024

Deploy Preview for poetic-froyo-8baba7 ready!

Name Link
🔨 Latest commit 3f4d4ce
🔍 Latest deploy log https://app.netlify.com/sites/poetic-froyo-8baba7/deploys/672c8af590b2840008500b48
😎 Deploy Preview https://deploy-preview-843--poetic-froyo-8baba7.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@joein joein requested a review from I8dNLo November 7, 2024 08:46
Comment on lines 1055 to 1060
warnings.warn(
"`search_matrix_pairs` method is deprecated and will be removed in the future."
" Use `query_points` instead.",
DeprecationWarning,
stacklevel=2,
)
Copy link
Member

Choose a reason for hiding this comment

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

we've just introduced it, we don't want to deprecate it yet :')

Comment on lines 1108 to 1113
warnings.warn(
"`search_matrix_offsets` method is deprecated and will be removed in the future."
" Use `query_points` instead.",
DeprecationWarning,
stacklevel=2,
)
Copy link
Member

Choose a reason for hiding this comment

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

same as with search_matrix_pairs

@joein joein mentioned this pull request Nov 7, 2024
@joein joein self-requested a review November 7, 2024 11:59
@joein joein merged commit f9fbc90 into dev Nov 8, 2024
14 checks passed
@hh-space-invader hh-space-invader deleted the deprecate-api-methods branch November 14, 2024 08:27
joein pushed a commit that referenced this pull request Jan 16, 2025
…843)

* deprecate: Added deprecations for methods superseded by query_points

* deprecate: Undeprecate search_matrix_offsets and search_matrix_pairs
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