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

introduce instance mappings #132

Merged
merged 31 commits into from
Aug 9, 2023
Merged

introduce instance mappings #132

merged 31 commits into from
Aug 9, 2023

Conversation

danyilq
Copy link
Contributor

@danyilq danyilq commented Jul 31, 2023

  • Please check if the PR fulfills these requirements
  • The commit message follows our guidelines
  • Tests for the changes have been added (for bug fixes/features)
  • Docs have been added / updated (for bug fixes / features)
  • What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)
    Introduces new class MarqoInstanceMappings that allows user to specify url for each index to use for index-specific api requests. Moves certain methods from Client class to Index class and deprecates those used in Client

  • What is the current behavior? (You can also link to an open issue here)

  • What is the new behavior (if this is a feature change)?

  • Does this PR introduce a breaking change? (What changes might users need to make in their application due to this PR?)

  • Other information:

src/marqo/client.py Outdated Show resolved Hide resolved
src/marqo/client.py Outdated Show resolved Hide resolved
src/marqo/client.py Show resolved Hide resolved
src/marqo/client.py Outdated Show resolved Hide resolved
src/marqo/client.py Outdated Show resolved Hide resolved
src/marqo/_httprequests.py Outdated Show resolved Hide resolved
src/marqo/instance_mappings.py Show resolved Hide resolved
src/marqo/instance_mappings.py Outdated Show resolved Hide resolved
Copy link
Collaborator

@pandu-k pandu-k left a comment

Choose a reason for hiding this comment

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

We need tests to ensure all the new index-level endpoints work:
Index.get_loaded_models(), etc.
Feel free to copy/paste/modify the existing tests to make this faster

src/marqo/marqo_cloud_instance_mappings.py Outdated Show resolved Hide resolved
tests/v0_tests/test_marqo_cloud_instance_mapping.py Outdated Show resolved Hide resolved
src/marqo/marqo_cloud_instance_mappings.py Outdated Show resolved Hide resolved
@danyilq
Copy link
Contributor Author

danyilq commented Aug 2, 2023

We need tests to ensure all the new index-level endpoints work: Index.get_loaded_models(), etc. Feel free to copy/paste/modify the existing tests to make this faster

@pandu-k Those are already implemented as tests and were tested they work correctly both on V2 on local setup

src/marqo/client.py Outdated Show resolved Hide resolved
src/marqo/client.py Outdated Show resolved Hide resolved
src/marqo/client.py Show resolved Hide resolved
src/marqo/index.py Outdated Show resolved Hide resolved
src/marqo/instance_mappings.py Outdated Show resolved Hide resolved
tests/marqo_test.py Outdated Show resolved Hide resolved
tests/marqo_test.py Outdated Show resolved Hide resolved
tests/marqo_test.py Show resolved Hide resolved
tests/marqo_test.py Outdated Show resolved Hide resolved
tests/marqo_test.py Outdated Show resolved Hide resolved
tests/v0_tests/test_add_documents.py Show resolved Hide resolved
tests/marqo_test.py Outdated Show resolved Hide resolved
tests/marqo_test.py Outdated Show resolved Hide resolved
tests/v0_tests/test_index.py Outdated Show resolved Hide resolved
tests/v0_tests/test_index.py Show resolved Hide resolved
tests/v0_tests/test_marqo_cloud_instance_mapping.py Outdated Show resolved Hide resolved
tests/v0_tests/test_marqo_cloud_instance_mapping.py Outdated Show resolved Hide resolved
src/marqo/cloud_helpers.py Outdated Show resolved Hide resolved
src/marqo/index.py Outdated Show resolved Hide resolved
src/marqo/index.py Outdated Show resolved Hide resolved
src/marqo/index.py Outdated Show resolved Hide resolved
src/marqo/index.py Show resolved Hide resolved
tests/v0_tests/test_index.py Show resolved Hide resolved
tests/v0_tests/test_sentence_chunking.py Outdated Show resolved Hide resolved
tox.ini Outdated Show resolved Hide resolved
tests/v0_tests/test_telemetry.py Outdated Show resolved Hide resolved
tests/v0_tests/test_tensor_search.py Outdated Show resolved Hide resolved
@danyilq danyilq temporarily deployed to py-marqo-test-suite August 6, 2023 23:59 — with GitHub Actions Inactive
@danyilq danyilq temporarily deployed to py-marqo-test-suite August 7, 2023 00:13 — with GitHub Actions Inactive
src/marqo/cloud_helpers.py Outdated Show resolved Hide resolved
tox.ini Outdated Show resolved Hide resolved
tests/marqo_test.py Show resolved Hide resolved
tests/marqo_test.py Outdated Show resolved Hide resolved
tests/marqo_test.py Show resolved Hide resolved
tests/scripts/create_test_suffix.py Show resolved Hide resolved
tests/scripts/delete_all_indexes.py Outdated Show resolved Hide resolved
tests/scripts/run_cloud_tests.py Outdated Show resolved Hide resolved
tests/v0_tests/test_client.py Show resolved Hide resolved
@danyilq danyilq temporarily deployed to py-marqo-test-suite August 8, 2023 07:15 — with GitHub Actions Inactive
pyproject.toml Outdated Show resolved Hide resolved
tests/marqo_test.py Outdated Show resolved Hide resolved
@danyilq danyilq temporarily deployed to py-marqo-test-suite August 8, 2023 08:04 — with GitHub Actions Inactive
@danyilq danyilq temporarily deployed to py-marqo-test-suite August 8, 2023 08:13 — with GitHub Actions Inactive
pandu-k
pandu-k previously approved these changes Aug 8, 2023
@danyilq danyilq temporarily deployed to py-marqo-test-suite August 8, 2023 08:33 — with GitHub Actions Inactive
pandu-k
pandu-k previously approved these changes Aug 8, 2023
farshidz
farshidz previously approved these changes Aug 8, 2023
@danyilq danyilq dismissed stale reviews from farshidz and pandu-k via a711a95 August 8, 2023 09:26
@danyilq danyilq temporarily deployed to py-marqo-test-suite August 8, 2023 09:28 — with GitHub Actions Inactive
@danyilq danyilq temporarily deployed to py-marqo-test-suite August 8, 2023 10:39 — with GitHub Actions Inactive
tests/marqo_test.py Outdated Show resolved Hide resolved
@danyilq danyilq temporarily deployed to py-marqo-test-suite August 8, 2023 12:09 — with GitHub Actions Inactive
pandu-k
pandu-k previously approved these changes Aug 8, 2023
@danyilq danyilq temporarily deployed to py-marqo-test-suite August 8, 2023 12:12 — with GitHub Actions Inactive
@danyilq danyilq temporarily deployed to py-marqo-test-suite August 8, 2023 12:16 — with GitHub Actions Inactive
@danyilq danyilq merged commit 8b7e172 into mainline Aug 9, 2023
3 checks passed
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