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

OP-312 telemetry module #876

Merged

Conversation

goto-eof
Copy link
Contributor

@goto-eof goto-eof commented Aug 26, 2021

See OP-312.

added Telemetry popup + configuration
renamed SmsSender class to SmsDaemon

This PR is paired with informatici/openhospital-core#479

added Telemetry popup + configuration
renamed SmsSender class to SmsDaemon
@dbmalkovsky
Copy link
Collaborator

I would suggest rebasing on the current develop branch. There are conflicts in this pr; for example database.properties, log4j.properties, and settings.properties do not exist any longer in develop. They now all end in .dist

@mwithi mwithi changed the title Op 312 telemetry module draft OP-312 telemetry module Sep 1, 2021
@mwithi mwithi marked this pull request as draft September 1, 2021 09:38
@goto-eof goto-eof force-pushed the OP-312-telemetry-module branch from 11bf28e to 6019e70 Compare September 1, 2021 22:27
@goto-eof goto-eof force-pushed the OP-312-telemetry-module branch from ed8ad7b to ee1456e Compare September 5, 2021 00:22
- now telemetry is based on the following rules: if active = null =>
show telemetry popup, if active = true => start telemetry daemon, if
active = false => do nothing (we should add a menu item in order to
allow user to access to the popup?)
- if TELEMETRYENABLED is yes then start telemetry daemon always (with
SINGLEUSER equals to yes or no)
+ added also simulated message sending (when DEBUG=yes)
@goto-eof goto-eof marked this pull request as ready for review September 8, 2021 00:34
goto-eof and others added 5 commits September 9, 2021 00:04
+ managed the case when telemetry module is disabled from
settings.properties (could be used for other OH modules): we will not
show the menu item in the Settings menu
…atici#877)

* Set default duration (30min) and date check on visits.

Also clean and improve code

* Fix for multiple visit save

* Fix as per comments review

* Fix therapy changes

and also refactor constants

* Fix spacing

* Fix edit therapy (not insert)

Fix also duration calculation

* Fix window position after re-pack

* Add remove visit button in worksheet

* Enable visits management for admitted patients

* Fixes by comments review

* Avoid automatic saving and have changes all buffered before save

* Fix visit automatic save in worksheet

* Fix layout

* Fix deletion on second day list

* reload data from DB upon new visits

* Fix MessageDialog calls

* Organize imports

* Fix bundle

* Small workaround to avoid cursor jumps among new items in the same day

TODO:
- better arrays management (to highlight also unsaved)
- improve events handling (to avoid selection flickering)

* Add validation for visits buffered to save

* Avoid Worksheet operativity when there are visit changes pending

* Fixes by comments review

* Sync Swing quantity controllers

* Avoid Worksheet operativity when there are therapies changes pending

* Avoid therapies in the past and improved bundles
- run always telemetry daemon - (except if settings.properties disables
it)

- added dialog with the content of the tlemetry message that will be
sent to https://www.informaticisenzafrontiere.org/

- corrected what Alessandro asked to change
@mwithi mwithi marked this pull request as draft May 31, 2022 06:35
@mwithi mwithi changed the base branch from develop to OP-312-telemetry-module July 4, 2022 16:32
@mwithi mwithi marked this pull request as ready for review July 4, 2022 16:32
@mwithi mwithi merged commit ba90f0c into informatici:OP-312-telemetry-module Jul 4, 2022
mwithi added a commit that referenced this pull request Sep 16, 2022
* Telemetry updates
added Telemetry popup + configuration
renamed SmsSender class to SmsDaemon

* resolved conflict

* OP-153 Fix lots quantities on multiple discharges

* sync + little changes

* - added headers

* added freegeoip remote service configuration + changed package name fro
data collector module

* corrections based on Alessandro's suggestions

* corrections based on Alessandro's suggestions

* restored old variable name (reason: in the future we will do a
refactoring)

* new db single connection config + ipinfo config

* fixed some bugs

- now telemetry is based on the following rules: if active = null =>
show telemetry popup, if active = true => start telemetry daemon, if
active = false => do nothing (we should add a menu item in order to
allow user to access to the popup?)
- if TELEMETRYENABLED is yes then start telemetry daemon always (with
SINGLEUSER equals to yes or no)

* implementation telemetry module completed

+ added also simulated message sending (when DEBUG=yes)

* added property to enable/disable telemetry module

* Added Telemetry menu item in the Settings menu

+ managed the case when telemetry module is disabled from
settings.properties (could be used for other OH modules): we will not
show the menu item in the Settings menu

* OP-149 Set default duration (30min) and date check on visits. (#877)

* Set default duration (30min) and date check on visits.

Also clean and improve code

* Fix for multiple visit save

* Fix as per comments review

* Fix therapy changes

and also refactor constants

* Fix spacing

* Fix edit therapy (not insert)

Fix also duration calculation

* Fix window position after re-pack

* Add remove visit button in worksheet

* Enable visits management for admitted patients

* Fixes by comments review

* Avoid automatic saving and have changes all buffered before save

* Fix visit automatic save in worksheet

* Fix layout

* Fix deletion on second day list

* reload data from DB upon new visits

* Fix MessageDialog calls

* Organize imports

* Fix bundle

* Small workaround to avoid cursor jumps among new items in the same day

TODO:
- better arrays management (to highlight also unsaved)
- improve events handling (to avoid selection flickering)

* Add validation for visits buffered to save

* Avoid Worksheet operativity when there are visit changes pending

* Fixes by comments review

* Sync Swing quantity controllers

* Avoid Worksheet operativity when there are therapies changes pending

* Avoid therapies in the past and improved bundles

* Chore: remove duplicate semi-colon (#878)

* Chore: remove duplicate code in both branches of if (#879)

* Chore: remove what looks like an octal value for int array (#880)

* run always telemetry daemon + confirmation dialog with summary

- run always telemetry daemon - (except if settings.properties disables
it)

- added dialog with the content of the tlemetry message that will be
sent to https://www.informaticisenzafrontiere.org/

- corrected what Alessandro asked to change

Co-authored-by: Alessandro Domanico <[email protected]>
Co-authored-by: David B Malkovsky <[email protected]>
ArnaudFonzam pushed a commit to ArnaudFonzam/openhospital-gui that referenced this pull request Feb 28, 2024
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.

3 participants