-
Notifications
You must be signed in to change notification settings - Fork 6
[CDF-26171] 👷 Infieldv2 yaml #2171
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
Conversation
☂️ Python Coverage
Overall Coverage
New Files
Modified FilesNo covered modified files...
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2171 +/- ##
==========================================
+ Coverage 84.25% 84.28% +0.02%
==========================================
Files 262 263 +1
Lines 25850 25892 +42
==========================================
+ Hits 21781 21822 +41
- Misses 4069 4070 +1
🚀 New features to boost your workflow:
|
|
|
||
| root_location_external_id: str | None = None | ||
| feature_toggles: FeatureToggles | None = None | ||
| classic_asset_external_id: str | None = None |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| classic_asset_external_id: str | None = None |
not going to be used in v2, can be removed.
| feature_toggles: FeatureToggles | None = None | ||
| classic_asset_external_id: str | None = None | ||
| app_instance_space: str | None = None | ||
| app_data_set: str | None = None |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| app_data_set: str | None = None |
not going to be used in v2, can be removed.
|
|
||
| appInstanceSpace: my_app_instance_space | ||
|
|
||
| appDataSet: my_infield_dataset |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| appDataSet: my_infield_dataset |
not going to be used in v2, can be removed.
| notificationsEndpointExternalId: notifications_endpoint_001 | ||
| attachmentsEndpointExternalId: attachments_endpoint_001 | ||
|
|
||
| classicAssetExternalId: root_asset_external_id_123 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| classicAssetExternalId: root_asset_external_id_123 |
not going to be used in v2, can be removed.
| datasetIds: | ||
| - 12345 | ||
| - 67890 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| datasetIds: | |
| - 12345 | |
| - 67890 |
not going to be used in v2, can be removed.
| datasetIds: | ||
| - 12345 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| datasetIds: | |
| - 12345 |
not going to be used in v2, can be removed.
| datasetIds: | ||
| - 12345 | ||
| - 67890 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| datasetIds: | |
| - 12345 | |
| - 67890 |
not going to be used in v2, can be removed.
| datasetIds: | ||
| - 12345 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| datasetIds: | |
| - 12345 |
not going to be used in v2, can be removed.
| class ObservationConfig(BaseModelResource): | ||
| external_id: str | ||
| root_location_external_ids: list[str] | None = None | ||
| field_configurations: dict[str, Any] | None = None |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| class ObservationConfig(BaseModelResource): | |
| external_id: str | |
| root_location_external_ids: list[str] | None = None | |
| field_configurations: dict[str, Any] | None = None |
Not in use in V2
| observationConfig: | ||
| externalId: observation_config_001 | ||
| rootLocationExternalIds: | ||
| - location_001 | ||
| - location_002 | ||
| fieldConfigurations: | ||
| field_1: | ||
| type: text | ||
| label: Description | ||
| required: true | ||
| field_2: | ||
| type: number | ||
| label: Temperature | ||
| unit: celsius |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| observationConfig: | |
| externalId: observation_config_001 | |
| rootLocationExternalIds: | |
| - location_001 | |
| - location_002 | |
| fieldConfigurations: | |
| field_1: | |
| type: text | |
| label: Description | |
| required: true | |
| field_2: | |
| type: number | |
| label: Temperature | |
| unit: celsius |
not going to be used in v2, can be removed.
ronpal
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👷
Description
Context Cognite Toolkit have
pydanticclasses for all resources we support. This class is used to validate user input and give good error messages if they mistype.This PR add the
InfieldCDMv1YAMLclass that will be used when supporting the new infield configuration format.I built the
InfieldLocationConfigYAMLbased on theInfeildLocationConfigin theInFieldsystem model, and I used the #2159 for all theJSONObjects.Changelog