-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Add battery operating time for APC UPS devices #14230
base: master
Are you sure you want to change the base?
Add battery operating time for APC UPS devices #14230
Conversation
It fetches the date of the last battery replacement, builds the difference with current date and stores that difference as seconds. The limits are 4 years (low/yellow) and 5 years (high/red).
6217118
to
686591f
Compare
As expected, the tests will fail. Is there any recommendation how to proceed. I could revert to a draft requested but I don’t think this would really help … For people not involved: There was a similar pull request that also had been approved and merged, but lead to this failing tests and was thus reverted. The feature though is not only required by us, it also raised interest by other users. |
|
I am not exactly deep into the topic, so I have to ask some questions: Which file do you mean with "instead" … and is there any other example which I can use for orientation?
Test output? When and where do I see it? |
|
PLEASE NOTE: This pull request leads to a failing test because the difference mentioned below is calculated by using the current date. Thus the difference in the file tests/data/apc_managementmoduleaosv6.8.8-appv6.8.8.json will always be wrong after at least one day has passed after the last commit. This somewhat seems to be a flaw within the test framework (or so I suppose).
Description:
With this feature, the date of last battery change is determined and used for building the difference to today. That difference is stored as minutes and displayed as years + minutes as »Battery Operating Time«. The limits are 4 years (warning/yellow) and 5 years (critical/red) – values from our own experience.
Time display in GUI (device main page):
DO NOT DELETE THE UNDERLYING TEXT
Please note
Testers
If you would like to test this pull request then please run:
./scripts/github-apply <pr_id>
, i.e./scripts/github-apply 5926
After you are done testing, you can remove the changes with
./scripts/github-remove
. If there are schema changes, you can ask on discord how to revert.