X Tutup
Skip to content

[stable10] Backport of Accessing sharetab directly for a long list of files#35306

Merged
sharidas merged 1 commit intostable10from
add-new-exception-objstorage-stable10
May 23, 2019
Merged

[stable10] Backport of Accessing sharetab directly for a long list of files#35306
sharidas merged 1 commit intostable10from
add-new-exception-objstorage-stable10

Conversation

@sharidas
Copy link
Contributor

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/testing2/index.php/apps/files/?dir=/test&&scrollto=file19.txt&details=shareTabView ( where file19.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 the tr added. So to solve this issue, the index of the file from the this.files is 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

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Database schema changes (next release will require increase of minor version instead of patch)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Technical debt
  • Tests only (no source changes)

Checklist:

  • Code changes
  • Unit tests added
  • Acceptance tests added
  • Documentation ticket raised:

Open tasks:

  • Backport (if applicable set "backport-request" label and remove when the backport was done)

@sharidas sharidas self-assigned this May 22, 2019
@sharidas sharidas added this to the development milestone May 22, 2019
@sharidas sharidas requested a review from jvillafanez May 22, 2019 16:36
… files

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>
@sharidas sharidas changed the title Backport of Accessing sharetab directly for a long list of files [stable10] Backport of Accessing sharetab directly for a long list of files May 22, 2019
@sharidas sharidas force-pushed the add-new-exception-objstorage-stable10 branch from 82a6f64 to d41946d Compare May 22, 2019 16:37
@codecov
Copy link

codecov bot commented May 22, 2019

Codecov Report

Merging #35306 into stable10 will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@             Coverage Diff             @@
##             stable10   #35306   +/-   ##
===========================================
  Coverage       64.64%   64.64%           
  Complexity      20089    20089           
===========================================
  Files            1289     1289           
  Lines           76943    76943           
  Branches         1300     1300           
===========================================
  Hits            49738    49738           
  Misses          26821    26821           
  Partials          384      384
Flag Coverage Δ Complexity Δ
#javascript 53.85% <ø> (ø) 0 <ø> (ø) ⬇️
#phpunit 65.78% <ø> (ø) 20089 <ø> (ø) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b059641...d41946d. Read the comment docs.

1 similar comment
@codecov
Copy link

codecov bot commented May 22, 2019

Codecov Report

Merging #35306 into stable10 will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@             Coverage Diff             @@
##             stable10   #35306   +/-   ##
===========================================
  Coverage       64.64%   64.64%           
  Complexity      20089    20089           
===========================================
  Files            1289     1289           
  Lines           76943    76943           
  Branches         1300     1300           
===========================================
  Hits            49738    49738           
  Misses          26821    26821           
  Partials          384      384
Flag Coverage Δ Complexity Δ
#javascript 53.85% <ø> (ø) 0 <ø> (ø) ⬇️
#phpunit 65.78% <ø> (ø) 20089 <ø> (ø) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b059641...d41946d. Read the comment docs.

@sharidas sharidas merged commit 32b7be6 into stable10 May 23, 2019
@delete-merged-branch delete-merged-branch bot deleted the add-new-exception-objstorage-stable10 branch May 23, 2019 04:51
@phil-davis
Copy link
Contributor

Original PR in master is #35283

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

X Tutup