It seems that onchange is on a very short delay, triggering updates as soon as a new value is hit, when mouse or arrow-key changes are made to the selected number of ancestors/desc.
Perhaps a second or so at least, or perhaps a Set button to commit the choice, rather than triggering a sequence of pedigree updates.
By way of example, as I rapidly type the right arrow key to reach a higher number, in console I see:
2019-03-24 21:26:06,198 get geneaprove.views.pedigree.PedigreeData.get(<JSONViewParams: {'gens': ['14'], 'descendant_gens': ['1'], 'theme': ['-5']}>)
2019-03-24 21:26:06,198 get_json get pedigree data
2019-03-24 21:26:06,310 get geneaprove.views.pedigree.PedigreeData.get(<JSONViewParams: {'gens': ['15'], 'descendant_gens': ['1'], 'theme': ['-5']}>)
2019-03-24 21:26:06,311 get_json get pedigree data
2019-03-24 21:26:06,361 get geneaprove.views.pedigree.PedigreeData.get(<JSONViewParams: {'gens': ['16'], 'descendant_gens': ['1'], 'theme': ['-5']}>)
2019-03-24 21:26:06,362 get_json get pedigree data
2019-03-24 21:26:06,425 get geneaprove.views.pedigree.PedigreeData.get(<JSONViewParams: {'gens': ['17'], 'descendant_gens': ['1'], 'theme': ['-5']}>)
2019-03-24 21:26:06,426 get_json get pedigree data
2019-03-24 21:26:06,480 get geneaprove.views.pedigree.PedigreeData.get(<JSONViewParams: {'gens': ['18'], 'descendant_gens': ['1'], 'theme': ['-5']}>)
2019-03-24 21:26:06,481 get_json get pedigree data
2019-03-24 21:26:06,587 get geneaprove.views.pedigree.PedigreeData.get(<JSONViewParams: {'gens': ['19'], 'descendant_gens': ['1'], 'theme': ['-5']}>)
2019-03-24 21:26:06,588 get_json get pedigree data
It seems that onchange is on a very short delay, triggering updates as soon as a new value is hit, when mouse or arrow-key changes are made to the selected number of ancestors/desc.
Perhaps a second or so at least, or perhaps a
Set
button to commit the choice, rather than triggering a sequence of pedigree updates.By way of example, as I rapidly type the right arrow key to reach a higher number, in console I see: