rstudio / rstudio

RStudio is an integrated development environment (IDE) for R
https://posit.co/products/open-source/rstudio/
Other
4.65k stars 1.09k forks source link

Can only filter data viewer columns that are in the current visible frame #6147

Open adamconroy opened 4 years ago

adamconroy commented 4 years ago

System details

RStudio Edition : Desktop
RStudio Version :  1.3
OS Version      :  Windows 10
R Version       :  3.5.2

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 columns 2-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.

francisbarton commented 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.

ronblum commented 4 years ago

Note that we now have three duplicate issues:

stale[bot] commented 3 years ago

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.

francisbarton commented 3 years ago

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?

francisbarton commented 2 years ago

By the way, i discovered today that sorting also isn't maintained while paging. (Edit: this was already pointed out in #7306, sorry)

luisvalenzuelar commented 3 months ago

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".

kellytdunn commented 3 weeks ago

Agreed, I just discovered that sorting is not retained when scrolling to columns 51 + and am bothered by this.

jthomasmock commented 2 weeks ago

Thanks for your interest! We will be looking at the Data Viewer for general improvements in the future (as seen from #7600)