-
Notifications
You must be signed in to change notification settings - Fork 336
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
Obvius2020 #520
Obvius2020 #520
Conversation
The upgrade of pg-promise is needed per discussion in a recent PR. This does not completely fix the issues but allows current developers to work with this. This will be completely resolved once PR is merged into this branch (after approved). The upgrade found a mistake I made in DB usage. You should not be doing a dropConnection() as this does a stopDB() that invalidates DB connection. pg-promise now detects and errors in this case. Thus, they were removed.
The new test files have several days of data that are hourly. This means OED can graph the data after refreshing views because it has multiple days. The switch to hourly data fixes a temporary issue that the the code assumes each point spans one hour (this needs to be changed as we merge in the new pipeline code). It is recommended to look at meter number 4 as it has the best data. To see the data reasonably, you need to move the right endpoint and redraw (we need to look into this issue elsewhere as not related to obvius). You will lose one day of the three days due to how OED currently graphs data. Finally, you need to be logged in as admin to see the meters since display is disabled when obvius meters are added. You can change this for desired meter(s) on the meter page as admin.
We expect that the first three items will just be arrays whose values are 0.
improve warning message. update test README for config upload.
This PR works fine. I want to thank @NoraCodes for important earlier work on the code in this pull request (and @lindavin who has done the recent work). I also note that @mm413 worked on this a little before. I have merged in the current development. I made a couple of other edits while I did that but they should be minor. There are some issue(s) left that I hope will be resolved when earlier submitted but pending PRs are in development and merged here (waiting to do that). One is that Meter.js mapRow is missing identifier. I will do another round of full testing at that time. Here are comments on code not changed in the PR that I cannot enter in that file/line:
|
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.
Just a few files need updating and the general comment I left should be addressed.
I want to note that a few items will need to be addressed but are outside this PR:
|
The new timezone for meters needed to be added as a null argument to the meter creation. Note that obviusConfig.js in testing has the same issue but it is not working in other ways so it should be fixed later (if kept).
This PR brings in the previously done Obvius2020 pipeline, with the added work of properly creating meters from a .ini configuration file.
Fixes #163.
Note merging this changes the database configuration. Note merging this changes the node modules.