Skip to content

Conversation

erlendvollset
Copy link
Collaborator

  • Add support for streams
  • Add basic support for records
  • Raise FeaturePreviewWarning on all invocations of stream/record methods
  • Use new warn_on_all_method_invocations decorator across the board

Description

Please describe the change you have made.

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.

Copy link
Contributor

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 in your pull request via creating an issue comment (i.e. comment on the pull request page) using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands.

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 issue 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.

@erlendvollset erlendvollset force-pushed the streams-and-records branch 2 times, most recently from 344b827 to 6cfb164 Compare August 12, 2025 14:58
Copy link

codecov bot commented Aug 12, 2025

Codecov Report

❌ Patch coverage is 81.47059% with 63 lines in your changes missing coverage. Please review.
✅ Project coverage is 90.66%. Comparing base (500e257) to head (44708f7).
⚠️ Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
cognite/client/_api/data_modeling/records.py 43.18% 25 Missing ⚠️
...gnite/client/data_classes/data_modeling/records.py 85.36% 12 Missing ⚠️
...ite/client/data_classes/data_modeling/instances.py 76.31% 9 Missing ⚠️
cognite/client/_api/data_modeling/streams.py 80.55% 7 Missing ⚠️
cognite/client/data_classes/data_modeling/ids.py 54.54% 5 Missing ⚠️
...gnite/client/data_classes/data_modeling/streams.py 93.15% 5 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2246      +/-   ##
==========================================
- Coverage   90.81%   90.66%   -0.15%     
==========================================
  Files         166      170       +4     
  Lines       24636    24866     +230     
==========================================
+ Hits        22373    22546     +173     
- Misses       2263     2320      +57     
Files with missing lines Coverage Δ
cognite/client/_api/agents/agents.py 100.00% <100.00%> (ø)
cognite/client/_api/data_modeling/__init__.py 100.00% <100.00%> (ø)
...nite/client/_api/hosted_extractors/destinations.py 94.44% <100.00%> (+1.11%) ⬆️
cognite/client/_api/hosted_extractors/jobs.py 88.57% <100.00%> (+0.10%) ⬆️
cognite/client/_api/hosted_extractors/mappings.py 96.00% <100.00%> (+1.35%) ⬆️
cognite/client/_api/hosted_extractors/sources.py 95.08% <100.00%> (+1.05%) ⬆️
cognite/client/_api/simulators/__init__.py 100.00% <100.00%> (ø)
cognite/client/_api/simulators/integrations.py 96.66% <100.00%> (-0.11%) ⬇️
cognite/client/_api/simulators/logs.py 100.00% <100.00%> (ø)
cognite/client/_api/simulators/models.py 98.27% <100.00%> (-0.06%) ⬇️
... and 15 more

... and 3 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.

@erlendvollset erlendvollset force-pushed the streams-and-records branch 2 times, most recently from de116c6 to 4eb65aa Compare August 14, 2025 10:32
@erlendvollset erlendvollset marked this pull request as ready for review August 14, 2025 10:32
@erlendvollset erlendvollset requested review from a team as code owners August 14, 2025 10:32
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.

1 participant