cognite-sdk-python icon indicating copy to clipboard operation
cognite-sdk-python copied to clipboard

Improve the error message when using InstanceId.load with a tuple of wrong length

Open MortGron opened this issue 6 months ago • 1 comments

Description

Curren error message talks about missing external ID key

Checklist:

  • [x] Tests added/updated.
  • [ ] Documentation updated. Documentation is generated from docstrings - these must be updated according to your change. If a new method has been added it should be referenced in cognite.rst in order to generate docs based on its docstring.
  • [x] Changelog updated in CHANGELOG.md.
  • [x] Version bumped. If triggering a new release is desired, bump the version number in _version.py and pyproject.toml per semantic versioning.

MortGron avatar Jun 25 '25 14:06 MortGron

Codecov Report

:white_check_mark: All modified and coverable lines are covered by tests. :white_check_mark: Project coverage is 90.65%. Comparing base (a9d591a) to head (74dc4b0). :warning: Report is 107 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #2179   +/-   ##
=======================================
  Coverage   90.65%   90.65%           
=======================================
  Files         159      159           
  Lines       24135    24138    +3     
=======================================
+ Hits        21880    21883    +3     
  Misses       2255     2255           
Files with missing lines Coverage Δ
cognite/client/_version.py 100.00% <100.00%> (ø)
cognite/client/utils/_identifier.py 88.65% <100.00%> (+0.40%) :arrow_up:

... and 2 files with indirect coverage changes

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

codecov[bot] avatar Jun 25 '25 14:06 codecov[bot]

/gemini review

thorkildcognite avatar Nov 16 '25 22:11 thorkildcognite