toz/MediLog
9
51
Fork
You've already forked MediLog
3

Filters & PDF Reports #387

Closed
opened 2024年07月22日 16:21:50 +02:00 by ybb40cxt · 6 comments

When applying a Filter to an Active Tab and opening the PDF Report, the Statistics summary calculations for the Total seem awry?

  • Without a Filter the Statistics Total column seems correct.
  • For an "apples to apples comparison" with a 1 Month filter the Total column does not equal the 1 Month column.*
  • The 1 Year column always seems correct. Not filter influenced?
  • The 1 Month column always seems correct, Not filter influenced?

*My assumption/suspicion would be the "Total" calculation on the PDF Report should be based on the Total filter criteria (but currently is not) or Total should always = Total (all data) in the summary even if a Filter has been applied to the other pages of the report?

I tested the Filters and PDF Reports on the Weight and Blood Pressure tabs and it didn't seem to be isolated to a single Tab. I also noted that the formatting of the Statistics totals on the PDF Reports is inconsistent:

Weight: Total, 1 Year, 1 Month vs BP: 1 Month, 1 Year, Total

MediLog Version 2.7.3 build 5447 on Android 14.

When applying a Filter to an Active Tab and opening the PDF Report, the Statistics summary calculations for the Total seem awry? - Without a Filter the Statistics Total column seems correct. - For an "apples to apples comparison" with a 1 Month filter the Total column does not equal the 1 Month column.* - The 1 Year column always seems correct. Not filter influenced? - The 1 Month column always seems correct, Not filter influenced? _*My assumption/suspicion would be the "Total" calculation on the PDF Report should be based on the Total filter criteria (but currently is not) or Total should always = Total (all data) in the summary even if a Filter has been applied to the other pages of the report?_ I tested the Filters and PDF Reports on the Weight and Blood Pressure tabs and it didn't seem to be isolated to a single Tab. I also noted that the formatting of the Statistics totals on the PDF Reports is inconsistent: Weight: Total, 1 Year, 1 Month vs BP: 1 Month, 1 Year, Total **MediLog Version 2.7.3 build 5447 on Android 14.**
Owner
Copy link

Thanks for reporting @ja7833, I completely redid the info screen in v3, it now shows filtered and database in separate sections, and after briefly checking just now I think the data shown is correct.
The PDF report is still v2.7.x style and should get the same revamp. I will schedule this for v3.1.

My priority right now is to get v3 out of the door to get away from dealing with two code bases. Hopefully we can get to the bottom of the crash you reported separately as quickly as possible as this is the last remaining showstopper for me.

Thanks for reporting @ja7833, I completely redid the info screen in v3, it now shows filtered and database in separate sections, and after briefly checking just now I think the data shown is correct. The PDF report is still v2.7.x style and should get the same revamp. I will schedule this for v3.1. My priority right now is to get v3 out of the door to get away from dealing with two code bases. Hopefully we can get to the bottom of the crash you reported separately as quickly as possible as this is the last remaining showstopper for me.
toz added this to the v3.1 milestone 2024年07月23日 19:50:38 +02:00

I completely redid the info screen in v3... I think the data shown is correct

The data displayed on-screen for RC2 seems okay.

My priority right now is to get v3 out of the door to get away from dealing with two code bases.

I just installed RC2 and restored my data, no crash at launch.

>I completely redid the info screen in v3... I think the data shown is correct The data displayed on-screen for RC2 seems okay. >My priority right now is to get v3 out of the door to get away from dealing with two code bases. I just installed RC2 and restored my data, no crash at launch.
Owner
Copy link

This is really good to read!

This is really good to read!

With several 3.0x releases completed and PDF reports now on the 3.1 roadmap, I took a new look at my original comment from 2.7.3.

I believe consistency is what I was thinking. With the same data displayed in Tab Info being included in the PDF Report Statistics.

e.g. in 3.0.7

Blood Pressure info tab displays:

Measurements; 1 Month; 1 Year; Total
Systolic min
Systolic max
Systolic avg.
Diastolic min
Diastolic max
Diastolic avg.
Pulse min
Pulse max
Pulse avg.

Blood Pressure report displays:

Measurements; 1 Month; 1 Year; Total
Systolic min
Systolic max
?
Diastolic min
Diastolic max
?
Pulse min
Pulse max
?

The 1 Month numbers match between the Info Tab and the PDF Report. But, the PDF Report 1 Year and Total equal the PDF Report 1 Month numbers (assume error) which then do not match the Info Tab 1 Year and Totals (assume correct).

NOT UNDERSTANDING how calculations are done in the background my suggestion would be to disregard any Filter option a end-user has set for their graphs and for both the Tab Info and PDF Report Statistics default to: a rolling 30 days; a rolling 365 days; and TOTAL (or any other timeframe you think most appropriate: 7 days; 30 days; TOTAL). With all Info Tabs and PDF Reports being as similar as possible i.e. always sorted LESS, MORE, TOTAL.

With several 3.0x releases completed and PDF reports now on the 3.1 roadmap, I took a new look at my original comment from 2.7.3. I believe consistency is what I was thinking. With the same data displayed in **Tab Info** being included in the **PDF Report Statistics**. e.g. in 3.0.7 **Blood Pressure info tab displays:** Measurements; 1 Month; 1 Year; Total Systolic min Systolic max _Systolic avg._ Diastolic min Diastolic max _Diastolic avg._ Pulse min Pulse max _Pulse avg._ **Blood Pressure report displays:** Measurements; 1 Month; 1 Year; Total Systolic min Systolic max ? Diastolic min Diastolic max ? Pulse min Pulse max ? The 1 Month numbers match between the Info Tab and the PDF Report. But, the PDF Report 1 Year and Total equal the PDF Report 1 Month numbers (assume error) which then do not match the Info Tab 1 Year and Totals (assume correct). _NOT UNDERSTANDING_ how calculations are done in the background my suggestion would be to disregard any Filter option a end-user has set for their graphs and for both the Tab Info and PDF Report Statistics default to: a rolling 30 days; a rolling 365 days; and TOTAL (or any other timeframe you think most appropriate: 7 days; 30 days; TOTAL). With all Info Tabs and PDF Reports being as similar as possible i.e. always sorted LESS, MORE, TOTAL.
Owner
Copy link

Great, I startet working on this so you testing helps a lot!

Great, I startet working on this so you testing helps a lot!
Owner
Copy link

BloodPressure Info and PDF should be consistent now. It's the same code which runs for both.
I'll likely do a beta of v3.1.0 over the weekend.

BloodPressure Info and PDF should be consistent now. It's the same code which runs for both. I'll likely do a beta of v3.1.0 over the weekend.
Sign in to join this conversation.
No Branch/Tag specified
main
3.6.0
3.3.8
master
v3.3.2
v3.2.7
v3.2.5
v3.2.1
v3.2.0
v3.1.2
v3.1.0
v3.0.7
v3.0.6
v3.0.5
v3.0.4
v2.7.4
v3.0.3
v3.0.1
v3.0.0
v2.7.3
v2.7.2
v2.7.1
v2.7.0
v2.6.3
v2.6.2
v2.6.0
v2.5.11
v2.5.10
v2.5.9
v2.5.8
v2.5.7
v2.5.6
v2.5.5
v2.5.4
v2.5.3
v2.5.2
v2.5.1
v2.5.0
v2.4.8
v2.4.7
v2.4.6
v2.4.5
v2.4.4
v2.4.3
v2.4.2
v2.4.0
v2.3.5
v2.3.4
v2.3.3
v2.3.2
v2.3.1
v3.7.1
v3.6.5
v3.6.4
v3.6.3
v3.6.2
v3.6.0
v3.5.1
v3.5.0
v3.4.1
v3.4.0
v3.3.11
v3.3.10
v3.3.9
v3.3.8
v3.3.7
v3.3.6
v3.3.5
v3.3.4
v3.3.3
v3.3.2
v3.2.7
v3.2.6
v3.2.5
v3.2.4
v3.2.3
v3.2.1
v3.2.0
v3.1.2
v3.1.1
v3.1.0
v3.0.7
v3.0.6
v3.0.5
v3.0.4
v3.0.3
v3.0.2
v3.0.1
v3.0.0
v2.7.3
v2.7.2
v2.7.1
v2.7.0
v2.6.3
v2.6.2
v2.6.1
v2.6.0
v2.5.11
v2.5.10
v2.5.9
v2.5.8
v2.5.7
v2.5.6
v2.5.5
v2.5.4
v2.5.3
v2.5.2
v2.5.1
v2.5.0
v2.4.8
v2.4.7
v2.4.6
v2.4.5
v2.4.3
v2.4.2
v2.4.1
v2.4.0
v2.3.5
v2.3.4
v2.3.3
v2.3.2
v2.3.1
v2.3.0
v2.2.5
v2.2.4
v2.2.3
v2.2.1
v2.2.2
v2.2.0
v2.1.2
v2.1.1
v2.1.0
v2.0.6
v2.0.5
v2.0.1
v3.7.0
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
toz/MediLog#387
Reference in a new issue
toz/MediLog
No description provided.
Delete branch "%!s()"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?