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

Merge branch 'feature-influx2' of https://github.com/breadlysm/speedtest-to-influxdb into feature-influx2 #18

Merged
merged 13 commits into from
Jun 18, 2021

Conversation

breadlysm
Copy link
Owner

While not completely necessary, I rewrote the config module. This will make for a smoother addition of influx2.

It now functions from a more global scope and is initialized during app startup.
This has a few benefits.

  1. Config options are a lot more manageable and easily expanded. Still currently using env variables but now could easily be loaded from a settings file.
  2. Config data is no longer stored in memory. The config settings are always accessed dynamically.
    (It was bothering me to see full configs in clear text while debugging.)
  3. Cleaner config requests.

Downsides, The config request lines are a bit longer.

breadlysm added 13 commits June 18, 2021 00:40
Config now sits as a global variable within speedflux. It can access settings more dynamically and allows for quicker adding of new settings.

Most functions are currently broken until code rewrite is complete
Refactored to match the new layout of config and logs.
Refactored to bring logs into global scope. no longer need to import logs into every file. Importing speedflux and using .LOG has same function
Now uses the global scopes for config and logging. Influx initiation is also done on a global scope now too.
speedflux can utilize the config, logging, and influx DB anywhere in the code by just importing speedflux.
fixed brand name
@breadlysm breadlysm linked an issue Jun 18, 2021 that may be closed by this pull request
@breadlysm breadlysm added this to the Support InfluxDB 2.0+ milestone Jun 18, 2021
@breadlysm breadlysm added enhancement New feature or request refactor Code improvement. No new features labels Jun 18, 2021
@breadlysm breadlysm self-assigned this Jun 18, 2021
@breadlysm breadlysm merged commit d29447c into feature-support-influx2-wip Jun 18, 2021
@breadlysm breadlysm deleted the breadlysm/issue12 branch June 18, 2021 16:07
@breadlysm breadlysm linked an issue Jun 18, 2021 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request refactor Code improvement. No new features
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add new config options for influx2 Refactor config to be more accessible and expandable
1 participant