Skip to content
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

[stable10] Backport of Renaming and adding new options for public link #34983

Merged
merged 2 commits into from
Apr 8, 2019

Conversation

sharidas
Copy link
Contributor

@sharidas sharidas commented Apr 5, 2019

Description

This PR renames and adds an option in the public link share dialog. The View/Download/Upload is now renamed to View/Download/Edit. So if the user wants to create a link which would let others to create, edit, upload and delete in the public link then View/Download/Edit should be selected.
The new option View/Download/Upload has lesser permission. When a public link with this option is created, the user could create folder(s), no delete option is available.

Related Issue

  • Fixes <issue_link>

Motivation and Context

  • Renaming View/Download/Upload to View/Download/Edit in the public link share creation dialog.
  • Created View/Download/Upload with minimal permission. Removed edit and delete option.

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)

1) Renaming View/Download/Upload to View/Download/Edit.
2) Adding new option View/Download/Upload.
So if user wants to give provide all permissions,
View/Download/Edit option could be opted. If the user
wants to have an option where no edit and delete to be
granted for link shared, the View/Download/Upload could
be used.

Signed-off-by: Sujith H <[email protected]>
…nd no overwrite feature

Adding acceptance test for new upload option added
for creating public links. This new option would
create public links which would help users to download,
upload files or folders.

Signed-off-by: Sujith H <[email protected]>
@sharidas sharidas added this to the development milestone Apr 5, 2019
@sharidas sharidas self-assigned this Apr 5, 2019
@sharidas sharidas requested a review from PVince81 April 5, 2019 15:37
@sharidas
Copy link
Contributor Author

sharidas commented Apr 5, 2019

Original PR #34687

@codecov
Copy link

codecov bot commented Apr 5, 2019

Codecov Report

Merging #34983 into stable10 will increase coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@              Coverage Diff               @@
##             stable10   #34983      +/-   ##
==============================================
+ Coverage       64.24%   64.24%   +<.01%     
- Complexity      19993    19994       +1     
==============================================
  Files            1281     1281              
  Lines           76648    76650       +2     
  Branches         1307     1307              
==============================================
+ Hits            49243    49245       +2     
  Misses          27024    27024              
  Partials          381      381
Flag Coverage Δ Complexity Δ
#javascript 53.01% <ø> (ø) 0 <ø> (ø) ⬇️
#phpunit 65.44% <100%> (ø) 19994 <0> (+1) ⬆️
Impacted Files Coverage Δ Complexity Δ
apps/files_sharing/templates/public.php 0% <ø> (ø) 0 <0> (ø) ⬇️
core/js/sharedialoglinkshareview.js 83.46% <ø> (ø) 0 <0> (ø) ⬇️
...es_sharing/lib/Controller/Share20OcsController.php 85.86% <100%> (+0.02%) 203 <0> (+1) ⬆️
.../files_sharing/lib/Controllers/ShareController.php 54.58% <100%> (+0.2%) 54 <0> (ø) ⬇️

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 994f609...1602a1f. Read the comment docs.

1 similar comment
@codecov
Copy link

codecov bot commented Apr 5, 2019

Codecov Report

Merging #34983 into stable10 will increase coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@              Coverage Diff               @@
##             stable10   #34983      +/-   ##
==============================================
+ Coverage       64.24%   64.24%   +<.01%     
- Complexity      19993    19994       +1     
==============================================
  Files            1281     1281              
  Lines           76648    76650       +2     
  Branches         1307     1307              
==============================================
+ Hits            49243    49245       +2     
  Misses          27024    27024              
  Partials          381      381
Flag Coverage Δ Complexity Δ
#javascript 53.01% <ø> (ø) 0 <ø> (ø) ⬇️
#phpunit 65.44% <100%> (ø) 19994 <0> (+1) ⬆️
Impacted Files Coverage Δ Complexity Δ
apps/files_sharing/templates/public.php 0% <ø> (ø) 0 <0> (ø) ⬇️
core/js/sharedialoglinkshareview.js 83.46% <ø> (ø) 0 <0> (ø) ⬇️
...es_sharing/lib/Controller/Share20OcsController.php 85.86% <100%> (+0.02%) 203 <0> (+1) ⬆️
.../files_sharing/lib/Controllers/ShareController.php 54.58% <100%> (+0.2%) 54 <0> (ø) ⬇️

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 994f609...1602a1f. Read the comment docs.

Copy link
Contributor

@PVince81 PVince81 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@PVince81 PVince81 merged commit 0565ff3 into stable10 Apr 8, 2019
@PVince81 PVince81 deleted the public-link-upload-edit-stable10 branch April 8, 2019 06:54
@PVince81 PVince81 modified the milestones: development, QA Apr 12, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Apr 15, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants