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

feat: set entity timestamp (at source) if not provided #36

Merged

Conversation

mfiedorowicz
Copy link
Member

This pull request includes several changes to the netboxlabs/diode/sdk/ingester.py file, test coverage improvements in tests/test_ingester.py, and an update to the .github/CODEOWNERS file. The most important changes include adding a check for None timestamps, updating the code owners, and adding new test cases for entity instantiation.

Codebase improvements:

Test coverage improvements:

  • tests/test_ingester.py: Added import for timestamp_pb2 from google.protobuf.
  • tests/test_ingester.py: Added a test case test_entity_instantiation_with_no_timestamp_provided to ensure that an entity is instantiated correctly when no timestamp is provided.
  • tests/test_ingester.py: Added a test case test_entity_instantiation_with_timestamp_provided to validate entity instantiation with a provided timestamp.

Code ownership:

  • .github/CODEOWNERS: Updated the code owners to include @ltucker along with existing owners @leoparente and @mfiedorowicz.

Signed-off-by: Michal Fiedorowicz <mfiedorowicz@netboxlabs.com>
Signed-off-by: Michal Fiedorowicz <mfiedorowicz@netboxlabs.com>
@mfiedorowicz mfiedorowicz requested a review from ltucker January 24, 2025 21:03
@mfiedorowicz mfiedorowicz self-assigned this Jan 24, 2025
Copy link

github-actions bot commented Jan 24, 2025

Coverage

Coverage Report
FileStmtsMissCover
TOTAL3240100%

Tests Skipped Failures Errors Time
83 0 💤 0 ❌ 0 🔥 0.822s ⏱️

@mfiedorowicz mfiedorowicz merged commit a446fe7 into develop Jan 24, 2025
6 checks passed
@mfiedorowicz mfiedorowicz deleted the feat-set-entity-current-timestamp-if-not-provided branch January 24, 2025 21:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants