Open adamconroy opened 4 years ago
Came here to report this same issue, and glad to see @adamconroy has already submitted such a thorough report. I know you're not supposed to comment on issues just to say "+1", but it is an annoying problem and it would be great to see it fixed when possible. Thanks to all who are working on RStudio.
Note that we now have three duplicate issues:
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs, per https://github.com/rstudio/rstudio/wiki/Issue-Grooming. Thank you for your contributions.
Seems like there was a whole bunch of activity and interest in this and related Data Viewer issues so it feels reasonable to keep this alive?
By the way, i discovered today that sorting also isn't maintained while paging. (Edit: this was already pointed out in #7306, sorry)
Although labelled as an enhancement, it is really a faulty behaviour because it can seriously mislead the user, as it is an unexpected behaviour. I think this deserves more urgency than "backlog/later".
Agreed, I just discovered that sorting is not retained when scrolling to columns 51 + and am bothered by this.
Thanks for your interest! We will be looking at the Data Viewer for general improvements in the future (as seen from #7600)
System details
Steps to reproduce the problem
1) Create a data frame larger than 50 columns
testData = data.frame(logicalVar = sample(c(T,F), size = 10, replace = T), doubleVars = matrix(rnorm(500), 10))
View(testData)
2) Filter column 1 3) Click the
>>
forward frame button to view columns2-51
Note that the filtering is lost
Describe the problem in detail
We currently do not have any saved state when changing a view frame. The
grid_data
call on column shift is [mostly] stateless so when we change frames that filtering data is lost. Adding state here won't be entirely trivial so I'm making an issue for it.This will be a bit tricky as the client only has the column data zero-indexed within the current frame that it's viewing and the server side shifts it up. We would have to find some way to fake negative indices or find a way to save it server side until a reset it called. It's a bit awkward at the moment.
Describe the behavior you expected
All set filters are saved between frame pages.