Skip to content

Release SDK version 8.0.0#2509

Merged
haakonvt merged 7 commits intopysdk-release-v8from
various-v8-fixes
Mar 13, 2026
Merged

Release SDK version 8.0.0#2509
haakonvt merged 7 commits intopysdk-release-v8from
various-v8-fixes

Conversation

@haakonvt
Copy link
Copy Markdown
Contributor

@haakonvt haakonvt commented Mar 12, 2026

@haakonvt haakonvt marked this pull request as ready for review March 12, 2026 14:39
@haakonvt haakonvt requested review from a team as code owners March 12, 2026 14:39
@gemini-code-assist
Copy link
Copy Markdown
Contributor

Summary of Changes

Hello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request finalizes the release of SDK version 8.0.0. It includes an important enhancement to the URL resolution mechanism, allowing the SDK to handle both relative and absolute URLs more robustly. Additionally, a small documentation typo has been rectified, and new tests have been introduced to validate the updated URL handling logic.

Highlights

  • SDK Version Update: The SDK version has been updated from 8.0.0rc2 to 8.0.0 across relevant configuration and version files.
  • URL Resolution Enhancement: The resolve_url utility function now supports full HTTP/HTTPS URLs in addition to relative paths, improving flexibility in API calls.
  • Documentation Correction: A minor typo ('destsinations' to 'destinations') was corrected in the docstrings for the delete method within the hosted extractors API.
  • New Unit Tests: Comprehensive unit tests were added for the resolve_url function to ensure correct behavior for various URL formats and retryability.

🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console.

Changelog
  • cognite/client/_api/hosted_extractors/destinations.py
    • Corrected a typo in the docstring for the delete method.
  • cognite/client/_sync_api/hosted_extractors/destinations.py
    • Updated the auto-generated file hash.
    • Corrected a typo in the docstring for the delete method.
  • cognite/client/_version.py
    • Updated the __version__ string to 8.0.0.
  • cognite/client/utils/_url.py
    • Modified resolve_url to accept full HTTP/HTTPS URLs, relative paths, and raise a ValueError for invalid formats.
  • pyproject.toml
    • Updated the project version to 8.0.0.
  • tests/tests_unit/test_utils/test_url.py
    • Added a new test class TestResolveUrl with parameterized tests for resolve_url.
    • Included test cases for relative paths, full HTTP/HTTPS URLs, and retryability.
    • Added a test to verify ValueError is raised for invalid URL paths.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for GitHub and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request finalizes the 8.0.0 release by updating the version number, fixing a typo, and enhancing resolve_url to support absolute URLs, which is now covered by new unit tests.

The pull request title 'Release SDK version 8.0.0' does not follow the Conventional Commits specification as defined in the repository style guide (lines 169-181). To adhere to the guidelines, please use a compliant title for future releases, for example: chore(release): 8.0.0.

@codecov
Copy link
Copy Markdown

codecov Bot commented Mar 13, 2026

Codecov Report

❌ Patch coverage is 92.30769% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 93.48%. Comparing base (4a4bb27) to head (36037e2).
⚠️ Report is 9 commits behind head on pysdk-release-v8.

Files with missing lines Patch % Lines
cognite/client/_cognite_client.py 66.66% 1 Missing ⚠️
cognite/client/_sync_cognite_client.py 75.00% 1 Missing ⚠️
Additional details and impacted files
@@                Coverage Diff                @@
##           pysdk-release-v8    #2509   +/-   ##
=================================================
  Coverage             93.47%   93.48%           
=================================================
  Files                   478      478           
  Lines                 48097    48118   +21     
=================================================
+ Hits                  44959    44983   +24     
+ Misses                 3138     3135    -3     
Files with missing lines Coverage Δ
...nite/client/_api/hosted_extractors/destinations.py 93.22% <ø> (ø)
...client/_sync_api/hosted_extractors/destinations.py 97.50% <ø> (ø)
cognite/client/_version.py 100.00% <100.00%> (ø)
cognite/client/utils/_url.py 100.00% <100.00%> (+3.22%) ⬆️
tests/tests_unit/test_utils/test_url.py 100.00% <100.00%> (ø)
cognite/client/_cognite_client.py 92.15% <66.66%> (-0.78%) ⬇️
cognite/client/_sync_cognite_client.py 91.08% <75.00%> (-0.67%) ⬇️

... and 4 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

doctrino
doctrino previously approved these changes Mar 13, 2026
@haakonvt haakonvt self-assigned this Mar 13, 2026
@haakonvt haakonvt added risk-review-ongoing Risk review is in progress waiting-for-team Waiting for the submitter or reviewer of the PR to take an action labels Mar 13, 2026
@haakonvt
Copy link
Copy Markdown
Contributor Author

🦄

@haakonvt haakonvt enabled auto-merge March 13, 2026 14:42
@doctrino doctrino self-requested a review March 13, 2026 14:42
Copy link
Copy Markdown
Contributor

@amorken amorken left a comment

Choose a reason for hiding this comment

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

🎉

@haakonvt haakonvt merged commit ee4b616 into pysdk-release-v8 Mar 13, 2026
45 of 55 checks passed
@haakonvt haakonvt deleted the various-v8-fixes branch March 13, 2026 15:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

risk-review-ongoing Risk review is in progress waiting-for-team Waiting for the submitter or reviewer of the PR to take an action

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants