We love your input! We want to make contributing to this project as easy and transparent as possible, whether it's:
- Reporting a bug
- Discussing the current state of the code
- Submitting a fix
- Proposing new features
We use GitHub to host code, to track issues and feature requests, as well as accept pull requests.
We Use GitHub Flow, so all code changes happen through Pull Requests. Pull requests are the best way to propose changes to the codebase.
It's usually best to open an issue first to discuss a feature or bug before opening a pull request. Doing so can save time and help further ascertain the crux of an issue.
- See if there is an existing issue
- Fork the repo and create your branch from
main
. - If you've added code that should be tested, add tests.
- Ensure the test suite passes.
- Issue that pull request!
In short, when you submit code changes, your submissions are understood to be under the same Apache License 2.0 that covers the project. Feel free to contact the maintainers if that's a concern.
Report bugs using GitHub's issues
We use GitHub issues to track public bugs. Report a bug by opening a new issue; it's that easy!
Great Bug Reports tend to have:
- A quick summary and/or background
- Steps to reproduce
- Be specific!
- Give sample code if you can.
- What you expected would happen
- What actually happens
- Notes (possibly including why you think this might be happening, or stuff you tried that didn't work)
If you are modifying code, make sure it has no warnings when building. The project uses dotnet format formatter in conjunction with rules defined in .editorconfig file. Please ensure to run it using
./build.sh format
before submitting a PR.
By contributing, you agree that your contributions will be licensed under its Apache License 2.0.
The client uses generated stubs from upstream Qdrant proto definitions, which are downloaded from qdrant/qdrant.
The generated files do not form part of the checked in source code. Instead, they are generated
and emitted into the src/Qdrant.Client/obj/Release
, and included in compilation.
Ensure the following are installed and available in the PATH
.
- Dotnet 8.0.x
- Docker for tests
-
Set the
<QdrantVersion>
value in Directory.Build.props todev
. In order to download thedev
Docker image for testing and use thedev
branch for fetching the proto files. -
Download and generate the latest client stubs by running the following command from the project root:
For Windows
.\build.bat build --overwrite-protos
For OSX/Linux
./build.sh build --overwrite-protos
This will
- Pull down all the dependencies for the build process and the project.
- Run the format and default build task.
For testing, ensure Docker is running and run the following command.
.\build.bat test
For OSX/Linux
./build.sh test
-
Implement new Qdrant methods in
QdrantClient.cs
with associated tests in tests/Qdrant.Client.Tests/. -
If there are any new complex/frequently used properties in the proto definitions, add implicit converters to
src/Qdrant.Client/Grpc
following the existing patterns. -
Submit your pull request and get those approvals.
Once the new Qdrant version is live:
-
Set the
<QdrantVersion>
value in Directory.Build.props to the released Qdrant version. For eg:v1.13.0
. -
Merge the pull request.
-
MinVer is used for versioning the package using Git tags. To create a new release
git tag 1.6.0
git push --tags
- Create a new release on GitHub from the tag. The CI will upload a NuGet package artifact after the release.