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

Remove "beta" warning for Units catalog [POFSP-195] #1522

Merged
merged 11 commits into from
Nov 27, 2023

Conversation

polomani
Copy link
Contributor

@polomani polomani commented Nov 22, 2023

Description

@polomani polomani requested review from a team as code owners November 22, 2023 14:23
Copy link

codecov bot commented Nov 22, 2023

Codecov Report

Merging #1522 (964bcaa) into master (534dc3d) will increase coverage by 0.12%.
The diff coverage is 100.00%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1522      +/-   ##
==========================================
+ Coverage   91.71%   91.83%   +0.12%     
==========================================
  Files         120      120              
  Lines       15589    15579      -10     
==========================================
+ Hits        14297    14307      +10     
+ Misses       1292     1272      -20     
Files Coverage Δ
cognite/client/_api/units.py 92.00% <100.00%> (-2.29%) ⬇️
cognite/client/_version.py 100.00% <100.00%> (ø)

... and 5 files with indirect coverage changes

@haakonvt haakonvt force-pushed the update-units-api-spec-ref branch from f8192d9 to 85f4d78 Compare November 23, 2023 11:16
@@ -41,7 +38,7 @@ def retrieve(self, external_id: MutableSequence[str], ignore_unknown_ids: bool =
def retrieve(
self, external_id: str | MutableSequence[str], ignore_unknown_ids: bool = False
) -> Unit | UnitList | None:
"""`Retrieve one or more unit <https://pr-50.units-api.preview.cogniteapp.com/#tag/Units/operation/retrieve_units_by_ids_api_v1_projects__project__units_byids_post>`_
"""`Retrieve one or more unit <https://developer.cognite.com/api#tag/Units/operation/byIdsUnits>`_
Copy link
Contributor

Choose a reason for hiding this comment

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

None of these urls seem to work yet?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

no, but they will be there once we merge https://github.com/cognitedata/service-contracts/pull/2375

Copy link
Contributor Author

Choose a reason for hiding this comment

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

now they work @haakonvt

@polomani polomani changed the title Remove "beta" warning for Units catalog Remove "beta" warning for Units catalog [POFSP-195] Nov 24, 2023
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, two x nit

@@ -98,25 +95,22 @@ def __init__(
config: ClientConfig,
api_version: str | None,
cognite_client: CogniteClient,
warning: FeaturePreviewWarning,
) -> None:
super().__init__(config, api_version, cognite_client)
Copy link
Contributor

Choose a reason for hiding this comment

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

You can remove this entire init method now.

CHANGELOG.md Outdated Show resolved Hide resolved
@polomani polomani merged commit f4c00fe into master Nov 27, 2023
8 checks passed
@polomani polomani deleted the update-units-api-spec-ref branch November 27, 2023 15:13
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