[Person] Different ages for a specific search #11828
Replies: 6 comments
-
Possible issue can result in the fact that the field is stated with "approximateAge" and there is no correct counting of the correct age. |
Beta Was this translation helpful? Give feedback.
-
@AliciaRaber @bernardsilenou @MateStrysewske
Below you have my thoughts as a starting point:
|
Beta Was this translation helpful? Give feedback.
-
@sergiupacurariu Is this really relevant here? Because all of these persons have a concrete birthdate, including year, month, and day, so the automatic age calculation shouldn't really have an effect here, should it? As @AliciaRaber mentioned, in the person pages themselves the age is always calculated correctly, so it's supposed to be a display issue in the person directory, right? |
Beta Was this translation helpful? Give feedback.
-
@MateStrysewske Indeed initially I thought the same a display issue, but after some investigation, it turned to be something else. In the person detail page the age is shown correctly because this calculation is done in toPersonDto when the person page is loaded no matter what is stored in the database. If the user would just saves the person without doing anything else then the newly calculated age will be stored in the database. If the user does this then the grid will show the correct age. |
Beta Was this translation helpful? Give feedback.
-
@MateStrysewske @sergiupacurariu
|
Beta Was this translation helpful? Give feedback.
-
@bernardsilenou @AliciaRaber @sergiupacurariu I've converted the issue into a discussion. Since it originates from the specifications concerning how ages are calculated, I've also turned it into a change request and moved it out of the current iteration because we need to find a proper solution here, which is not trivial. I'll have another look at it once I find the time; I agree however that a cronjob might be problematic in terms of performance. |
Beta Was this translation helpful? Give feedback.
-
Bug Description
If you set date filters for person in person directory the age of persons get displayed differently.
Reproduction Steps
Expected Behavior
If you search for a specific date the age of the person the age have to be displayed correctly.
Affected Area(s)
Web app
SORMAS Version
SORMAS 1.83.0-Snapshot (70a685d)
Android version/Browser
Edge
User Role(s)
Admin
Server URL
https://test-auto.sormas.netzlink.com/
Additional Information
Beta Was this translation helpful? Give feedback.
All reactions