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

Host Age Bin Paste Issue #127

Open
cmrn-rhi opened this issue Nov 10, 2020 · 1 comment
Open

Host Age Bin Paste Issue #127

cmrn-rhi opened this issue Nov 10, 2020 · 1 comment
Labels
bug Something isn't working

Comments

@cmrn-rhi
Copy link
Member

I've noticed that if I type in 12 months into host age and host age unit, then host age bin will produce the correct bin (0-9), but if I paste it in I get the wrong bin (10-19) and it considers it valid (See picture).

image

@cmrn-rhi cmrn-rhi changed the title Age Bin Calculation Issue Host Age Bin Paste Issue Nov 10, 2020
@ddooley
Copy link
Collaborator

ddooley commented Apr 26, 2021

This is a tricky one - what is going on is the pasting action is delivering two values, first the age number, 12, which then triggers the binning of 10-19 because month hasn't been pasted yet; but by the time "month" gets pasted in, the number and bin have already been set, and the rule is not to change the bin if it already has a selection in it. So that's tough! Not sure what behaviour to allow there.

Simplest thing would be to say any time user changes age unit, bin gets recalculated.

@ddooley ddooley added the bug Something isn't working label May 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants