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

Geospatial - added missing allowDimensionalityMismatch parameter #1531

Merged
merged 11 commits into from
Jan 8, 2024

Conversation

skepticalcat
Copy link
Contributor

Description

Geospatial API comes with parameter "allowDimensionalityMismatch" for search_features and stream_features, which was missing in the python SDK.
Added the parameter.

Checklist:

  • 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.
  • Changelog updated in CHANGELOG.md.
  • Version bumped. If triggering a new release is desired, bump the version number in _version.py and pyproject.toml per semantic versioning.

@skepticalcat skepticalcat requested review from a team as code owners November 29, 2023 09:46
Copy link

codecov bot commented Nov 29, 2023

Codecov Report

Merging #1531 (4f6e638) into master (5eeaac4) will decrease coverage by 0.01%.
The diff coverage is 100.00%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1531      +/-   ##
==========================================
- Coverage   91.73%   91.73%   -0.01%     
==========================================
  Files         120      120              
  Lines       15904    15903       -1     
==========================================
- Hits        14590    14588       -2     
- Misses       1314     1315       +1     
Files Coverage Δ
cognite/client/_api/geospatial.py 89.40% <100.00%> (-0.07%) ⬇️
cognite/client/_version.py 100.00% <100.00%> (ø)

... and 3 files with indirect coverage changes

Copy link
Contributor

@haakonvt haakonvt left a comment

Choose a reason for hiding this comment

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

Good work, especially on test coverage! A few comments:

cognite/client/_api/geospatial.py Outdated Show resolved Hide resolved
cognite/client/_api/geospatial.py Outdated Show resolved Hide resolved
cognite/client/_api/geospatial.py Outdated Show resolved Hide resolved
cognite/client/_api/geospatial.py Outdated Show resolved Hide resolved
tests/tests_integration/test_api/test_geospatial.py Outdated Show resolved Hide resolved
tests/tests_integration/test_api/test_geospatial.py Outdated Show resolved Hide resolved
* improved docstrings
* passing bool params directly to api because it works
* split large tests
Copy link
Contributor

@haakonvt haakonvt left a comment

Choose a reason for hiding this comment

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

Lgtm! Great additions! Left one or two suggestions that I leave up to you ;)

implemented inputs from review:
* changed exception handling in tests to use with pytest.raises
@haakonvt
Copy link
Contributor

@skepticalcat ping 😄

@skepticalcat skepticalcat merged commit d8c40dd into master Jan 8, 2024
8 checks passed
@skepticalcat skepticalcat deleted the geospat_add_allowDimensionalityMismatch branch January 8, 2024 11:03
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.

2 participants