-
Notifications
You must be signed in to change notification settings - Fork 5
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
docs on 6.0.1 #270
docs on 6.0.1 #270
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## master #270 +/- ##
==========================================
- Coverage 79.09% 79.07% -0.02%
==========================================
Files 22 22
Lines 2057 2060 +3
==========================================
+ Hits 1627 1629 +2
- Misses 430 431 +1
|
4a1d343
to
1ceb452
Compare
187527d
to
89e1a49
Compare
a71967c
to
6e9bd1a
Compare
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.
Nice, some nitpick
@@ -103,6 +112,10 @@ def either_id(self) -> EitherId: | |||
|
|||
|
|||
class TimeIntervalConfig(yaml.YAMLObject): | |||
""" | |||
Configuration parameter for setting the time interval |
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.
Configuration parameter for setting the time interval | |
Configuration parameter for setting a time interval |
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.
done
@@ -167,6 +180,10 @@ def __repr__(self) -> str: | |||
|
|||
|
|||
class FileSizeConfig(yaml.YAMLObject): | |||
""" | |||
Configuration parameter for setting the file size |
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.
Configuration parameter for setting the file size | |
Configuration parameter for setting a file size |
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.
done
|
||
Valid values: local|remote |
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.
I prefer for these to not be in docs, they are always visible from the code, and we run the risk of them falling out of sync.
Valid values: local|remote |
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.
done
database: str | ||
table: str | ||
|
||
|
||
@dataclass | ||
class RawStateStoreConfig(RawDestinationConfig): | ||
""" | ||
Configuration of the State Store based on CDF RAW |
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.
Configuration of the State Store based on CDF RAW | |
Configuration of a state store based on CDF RAW |
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.
done
upload_interval: TimeIntervalConfig = TimeIntervalConfig("30s") | ||
|
||
|
||
@dataclass | ||
class LocalStateStoreConfig: | ||
""" | ||
Configuration of the State Store when using locally |
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.
Configuration of the State Store when using locally | |
Configuration of a state store using a local JSON file |
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.
done
cognite/extractorutils/util.py
Outdated
cognite_client: | ||
heartbeat_waiting_time: | ||
added_message: | ||
extraction_pipeline_ext_id: Id of the extraction pipeline |
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.
extraction_pipeline_ext_id: Id of the extraction pipeline | |
extraction_pipeline_ext_id: External ID of the extraction pipeline |
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.
done
cognite/extractorutils/util.py
Outdated
heartbeat_waiting_time: | ||
added_message: | ||
extraction_pipeline_ext_id: Id of the extraction pipeline | ||
cognite_client: Assets to create |
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.
cognite_client: Assets to create | |
cognite_client: Client to use when communicating with CDF |
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.
done
cognite/extractorutils/util.py
Outdated
added_message: | ||
extraction_pipeline_ext_id: Id of the extraction pipeline | ||
cognite_client: Assets to create | ||
heartbeat_waiting_time: Interval of the execution of the Thread |
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.
heartbeat_waiting_time: Interval of the execution of the Thread | |
heartbeat_waiting_time: Target interval between heartbeats, in seconds |
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.
done
cognite/extractorutils/util.py
Outdated
@add_extraction_pipeline( | ||
extraction_pipeline_ext_id=<INSERT EXTERNAL ID>, | ||
cognite_client=<INSERT COGNITE CLIENT OBJECT>, | ||
logger=<INSERT LOGGER>, |
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.
I see this was from the earlier text as well, but it does not seem to me that we expect a logger argument here?
logger=<INSERT LOGGER>, |
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.
Good catch, no there isn't, right now there is only the added message
parameter, wich is a str
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.
done
docs/source/docs.rst
Outdated
.. ``throttle`` - Tools for throttling | ||
.. ----------------------------------- | ||
|
||
.. automodule:: cognite.extractorutils.throttle | ||
:members: | ||
:undoc-members: | ||
:inherited-members: | ||
:show-inheritance: | ||
.. .. automodule:: cognite.extractorutils.throttle | ||
.. :members: | ||
.. :undoc-members: | ||
.. :inherited-members: | ||
.. :show-inheritance: |
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.
I think we refactored this module out in a previous release, could you double check that and remove it if we did?
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.
It was removed, I left there just so you can see it and maybe tell me something that I don't know. I also left the cognite.extractorutils.uploader_extractor
, commented, just so we know that there is something there but it's not documented, do you want me to remove?
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.
I think we should just remove it
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.
done
30d7143
to
58c10b9
Compare
[DOG-713]
DOG-713