fire-eggs / FamilyLines

A free, open-source genealogy application to track, organize, and share your family history.
12 stars 1 forks source link

Date validation issues #71

Open fire-eggs opened 7 years ago

fire-eggs commented 7 years ago

notonyournelly[CodePlex]
[Reported by hemashiv]

Once a valid date has been entered, some intelligence needs to be added to validate dates. [Some validation is taking place on GEDCOM import but not during user data input.]

Two cited instances:

Possible to add parents with birthdate later than child's. No validation Adding marriage complete date does not validate it. Any date in past or future can be added

That is to say, in Person.cs some checking needs to be made between properties. The property currently takes input values quotas isquot. In addition, checking needs to be made between relationship people: parents vs child; spouses vs marriage.

Within a person:

Birth vs Death Birth vs Christening Cremation vs Death etc

Marriage vs Spouses:

Marriage date vs Divorce date Marriage vs Birth Marriage vs Death

Between persons:

Child birth vs parent birth [child can't be born before parent was born] Child death vs parent birth [child can't die before parent was born] Child birth vs parent death (see below).

Note that date values should still be accepted but should be flagged (as a warning, not an error). The user may have made a typo or may be entering incorrect data from sources.

Need to be careful with some checks. For example, a child could be born after a father's death but probably not the mother... Some practices such as LDS blessings can take place after death.