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: Prepare opendata_collector_module for release #161

Merged
merged 2 commits into from
Jan 28, 2025

Conversation

nortaljevgenikr
Copy link
Contributor

@nortaljevgenikr nortaljevgenikr commented Jan 27, 2025

for opendata_collector module:

  • dependencies (incl. test ones) updated
  • tests now pass
  • tests are run by github actions
  • additionally tested with bandit, detect-secrets, safety, pip-audit tools - OK

Refs: OPMONDEV-191

run_tests.sh Outdated
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I didn't find where this file is currently used, so maybe it should be deleted?

Copy link
Contributor

Choose a reason for hiding this comment

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

It probably was the main way to test the code before we switched to GitHub actions. You could check if there is anything in our Jenkins pipelines that use it. If not, I think we could delete it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

didn't find this file mentioned anywhere, therefore deleted it.

Copy link
Contributor Author

@nortaljevgenikr nortaljevgenikr Jan 27, 2025

Choose a reason for hiding this comment

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

regarding changes in this file (and also related test and documentation changes): see #63

Ie. initially it was intended that the 'opendata_collector' MongoDB user is supposed to be created manually by admin.

To me it made sense to "normalize" this behavior and make things happen automatically like for other metrics modules.

There might be considerations against that (that i'm not aware of) - in that case i'll revert this part.

Copy link
Contributor

Choose a reason for hiding this comment

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

I think in this case it would be better to keep the behavior so that the opendata_collector MongoDB user is not created automatically. The reason for it is that this module is likely not something most setups will install. It is meant to collect data from other Metrics instances, so it would be best if the default installation path didn't add anything specific to this module.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

got it, done.

fix type checking error
bump vcrpy test requirement
enable od-collector tests for github actions
bump lib versions
fix cron example
fail under 60pct of coverage
update run_tests.sh
add opendata_collector role for mongo
enable dependabot for opendata_collector_module

refs: OPMONDEV-191
@nortaljevgenikr nortaljevgenikr force-pushed the OPMONDEV-191-od-collector-updates branch from a3558dd to 28ad56b Compare January 27, 2025 07:36
@nortaljevgenikr nortaljevgenikr changed the title Opmondev 191 od collector updates feat: Prepare opendata_collector_module for release Jan 27, 2025
@nortaljevgenikr nortaljevgenikr marked this pull request as ready for review January 27, 2025 08:01
Copy link
Contributor

@raits raits left a comment

Choose a reason for hiding this comment

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

Overall looks good, but lets revert the changes related to MongoDB user creation and documentation.

Copy link
Contributor

Choose a reason for hiding this comment

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

I think in this case it would be better to keep the behavior so that the opendata_collector MongoDB user is not created automatically. The reason for it is that this module is likely not something most setups will install. It is meant to collect data from other Metrics instances, so it would be best if the default installation path didn't add anything specific to this module.

run_tests.sh Outdated
Copy link
Contributor

Choose a reason for hiding this comment

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

It probably was the main way to test the code before we switched to GitHub actions. You could check if there is anything in our Jenkins pipelines that use it. If not, I think we could delete it.

@nortaljevgenikr nortaljevgenikr requested a review from raits January 27, 2025 09:42
Copy link
Contributor

@raits raits left a comment

Choose a reason for hiding this comment

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

Looks good to me.

@nortaljevgenikr nortaljevgenikr merged commit 94a1347 into develop Jan 28, 2025
11 checks passed
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.

None yet

2 participants