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: ingestion logs and migrations #167

Merged
merged 15 commits into from
Sep 12, 2024

Conversation

mfiedorowicz
Copy link
Member

@mfiedorowicz mfiedorowicz commented Sep 12, 2024

  • add migrations
  • store and retrieve ingestions logs (using protojson for consistent bi-directional marshalling/unmarshalling from/to proto)
  • improve apply change set error handling

to be replaced with migrations

Signed-off-by: Michal Fiedorowicz <mfiedorowicz@netboxlabs.com>
Signed-off-by: Michal Fiedorowicz <mfiedorowicz@netboxlabs.com>
Signed-off-by: Michal Fiedorowicz <mfiedorowicz@netboxlabs.com>
this is to allow us correctly marshal/unmarshal protobuf messages into json and back into protobuf when retrieving ingestion logs

Signed-off-by: Michal Fiedorowicz <mfiedorowicz@netboxlabs.com>
Signed-off-by: Michal Fiedorowicz <mfiedorowicz@netboxlabs.com>
Signed-off-by: Michal Fiedorowicz <mfiedorowicz@netboxlabs.com>
Signed-off-by: Michal Fiedorowicz <mfiedorowicz@netboxlabs.com>
Signed-off-by: Michal Fiedorowicz <mfiedorowicz@netboxlabs.com>
Signed-off-by: Michal Fiedorowicz <mfiedorowicz@netboxlabs.com>
Signed-off-by: Michal Fiedorowicz <mfiedorowicz@netboxlabs.com>
Signed-off-by: Michal Fiedorowicz <mfiedorowicz@netboxlabs.com>
Signed-off-by: Michal Fiedorowicz <mfiedorowicz@netboxlabs.com>
Copy link

github-actions bot commented Sep 12, 2024

Go test coverage

STATUS ELAPSED PACKAGE COVER PASS FAIL SKIP
🟢 PASS 1.22s github.com/netboxlabs/diode/diode-server/ingester 4.6% 9 0 0
🟢 PASS 0.01s github.com/netboxlabs/diode/diode-server/netbox 0.0% 0 0 0
🟢 PASS 1.57s github.com/netboxlabs/diode/diode-server/netboxdiodeplugin 3.4% 40 0 0
🟢 PASS 1.44s github.com/netboxlabs/diode/diode-server/reconciler 11.2% 50 0 0
🟢 PASS 1.46s github.com/netboxlabs/diode/diode-server/reconciler/changeset 32.7% 81 0 0
🟢 PASS 1.02s github.com/netboxlabs/diode/diode-server/server 85.7% 14 0 0
🟢 PASS 1.01s github.com/netboxlabs/diode/diode-server/version 100.0% 1 0 0

Total coverage: 80.0%

Signed-off-by: Michal Fiedorowicz <mfiedorowicz@netboxlabs.com>
@leoparente
Copy link
Contributor

Entity still not being parsed, right?

Signed-off-by: Michal Fiedorowicz <mfiedorowicz@netboxlabs.com>
@leoparente leoparente self-requested a review September 12, 2024 19:04
Copy link
Contributor

@leoparente leoparente left a comment

Choose a reason for hiding this comment

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

Overall, LGTM. Great work with migrations!

Signed-off-by: Michal Fiedorowicz <mfiedorowicz@netboxlabs.com>
@mfiedorowicz
Copy link
Member Author

Entity still not being parsed, right?

Added appropriate assertions in tests 🔬

@mfiedorowicz mfiedorowicz merged commit 3171be5 into develop Sep 12, 2024
6 checks passed
@mfiedorowicz mfiedorowicz deleted the ingestion-logs-protojson-migrations branch September 12, 2024 19:29
@orb-ci
Copy link

orb-ci commented Sep 26, 2024

🎉 This PR is included in version 0.6.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@orb-ci
Copy link

orb-ci commented Sep 26, 2024

🎉 This PR is included in version 0.6.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants