-
Notifications
You must be signed in to change notification settings - Fork 3
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
Date sorting now works #174
Conversation
…g; also separate workflkow card construction from filtering
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code changes look good, just had one clarifying question. Merging to dev and testing in proof-dev.fredhutch.org, will report back. Thanks @sckott !!
dat <- Filter(\(w) { | ||
w$data$status %in% input$workStatus | ||
}, dat) | ||
} | ||
# Filter by workflow name | ||
if (nzchar(input$workName)) { | ||
dat <- Filter(\(w) { | ||
w$data$workflow_name == input$workName | ||
w$data$workflow_name %in% input$workName |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Am I understanding right that this addresses #112?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No. The %in%
operator just changes behavior so that input$workName
can be a vector instead of a string with ==
. It works for now, but it's not needed for the current input$workName
, because the input is a single string. I think this is leftover from when I was testing the many inputs style box where the user could put in > 1 workflow name. I'll undo this change to make it more clear
@sckott -- Date sorting works great! It appears that we're now limiting people to 4 months of job history, which isn't necessarily a bad thing, just curious of the rationale. Is that for app responsiveness purposes? Wondering if (in the future, not now) we can allow for longer date ranges, but just default to 4 months. Also with respect to my earlier comment, if that line was intended to address #112, it doesn't appear to be working, but I might be misreading the purpose of that code change.. |
Before this PR we were at two months. And before this switchover to bsilb Amy had set it at a max of I think 21 days. Anywho, yeah I think more history is better too. Of course we I'm sure would run into performance issues with the app if there was too mjuch data - I don't know how much too much would be. Should I try 1 year and see how that goes? |
fix #173