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

Environment Variable Configuration #2

Merged
merged 6 commits into from
Jun 6, 2024
Merged

Conversation

emily-emily
Copy link
Contributor

Problem

Some parameters should be definable via environment variables, but this is not yet handled.

Solution

Added support for providing API key, controller host, and additional request headers through environment variables.

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update
  • Infrastructure change (CI configs, etc)
  • Non-code change (docs, etc)
  • None of the above: (explain here)

Test Plan

Test cases are written in src/pinecone.rs.

Copy link
Contributor

@ssmith-pc ssmith-pc left a comment

Choose a reason for hiding this comment

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

Nice work, it's coming along!

Left a couple comments, some easy ones and some to think about :)

pinecone_sdk/Cargo.toml Outdated Show resolved Hide resolved
pinecone_sdk/src/utils/errors.rs Outdated Show resolved Hide resolved
pinecone_sdk/src/pinecone.rs Outdated Show resolved Hide resolved
pinecone_sdk/src/pinecone.rs Show resolved Hide resolved
Copy link
Contributor

@austin-denoble austin-denoble left a comment

Choose a reason for hiding this comment

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

Great work! Left some +1s on the feedback from @ssmith-pc, and also some considerations around tests.

pinecone_sdk/src/pinecone.rs Show resolved Hide resolved
pinecone_sdk/src/utils/errors.rs Outdated Show resolved Hide resolved
pinecone_sdk/src/pinecone.rs Show resolved Hide resolved
pinecone_sdk/Cargo.toml Outdated Show resolved Hide resolved
pinecone_sdk/src/pinecone.rs Show resolved Hide resolved
@emily-emily emily-emily merged commit 5aa32ed into main Jun 6, 2024
2 checks passed
@emily-emily emily-emily deleted the emily/environment-variables branch June 6, 2024 21:11
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