Accessing sharetab directly for a long list of files#35283
Conversation
|
Some questions:
There are minor style things we can adjust in the code, but I'd prefer to check those couple of things first in case there are changes needed. |
The
This does not affect normal scrolling. Because the code path is a little different, but eventually it calls Let me know if this addresses your query? |
d76bd6a to
eec6934
Compare
Codecov Report
@@ Coverage Diff @@
## master #35283 +/- ##
============================================
- Coverage 65.54% 65.53% -0.01%
Complexity 18647 18647
============================================
Files 1218 1218
Lines 70546 70546
Branches 1288 1288
============================================
- Hits 46236 46229 -7
- Misses 23933 23940 +7
Partials 377 377
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## master #35283 +/- ##
=========================================
Coverage 65.54% 65.54%
Complexity 18647 18647
=========================================
Files 1218 1218
Lines 70546 70546
Branches 1288 1288
=========================================
Hits 46236 46236
Misses 23933 23933
Partials 377 377
Continue to review full report at Codecov.
|
eec6934 to
ec65d0b
Compare
Accessing sharetab directly for a long list of files caused problems. The pages need to be fetched appropriately to get the data. This changeset fixes the problem. Signed-off-by: Sujith H <sharidasan@owncloud.com>
ec65d0b to
d97ce08
Compare
merge tests into Scenario Outline that were fixed by #35283
[stable10] merge tests into Scenario Outline that were fixed by #35283
Accessing sharetab directly for a long list of
files caused problems. The pages need to be fetched
appropriately to get the data. This changeset fixes
the problem.
Signed-off-by: Sujith H sharidasan@owncloud.com
Description
Lets say we have 30 files listed in the the UI. The maximum page size we have is 18. And hence when user tries to access the 19th file from the UI using
http://localhost/testing3/index.php/apps/files/?dir=/test&&scrollto=file19.txt&details=shareTabView( wherefile19.txt) is the 19th file in the list, then the sharetab would be shown without any details. The reason for this is its the 19th element and hence the filelist doesn't have thetradded. So to solve this issue, the index of the file from thethis.filesis taken. And this would help to calculate the number of attempts required to fetch the page so that we get the data.Related Issue
Motivation and Context
We need to fetch the pages to get the data populated, so that when they are accessed for the share tab field, the tab does not show empty.
How Has This Been Tested?
Screenshots (if appropriate):
Types of changes
Checklist:
Open tasks: