Skip to content

Conversation

@AndyScherzinger
Copy link
Member

@AndyScherzinger AndyScherzinger commented Jun 1, 2018

Iteration 1 can be found here: #2533 ☑️
Iteration 2 can be found here: #2573 ☑️

WiP for #2485

@AndyScherzinger AndyScherzinger changed the title Iteration 3: file details & sharing Iteration 3 for file detail & new sharing Jun 1, 2018
@codecov
Copy link

codecov bot commented Jun 2, 2018

Codecov Report

Merging #2671 into master will decrease coverage by 0.01%.
The diff coverage is 0%.

@@            Coverage Diff            @@
##           master   #2671      +/-   ##
=========================================
- Coverage    6.54%   6.52%   -0.02%     
=========================================
  Files         284     285       +1     
  Lines       28822   28895      +73     
  Branches     4197    4210      +13     
=========================================
  Hits         1885    1885              
- Misses      26653   26726      +73     
  Partials      284     284
Impacted Files Coverage Δ
...fragment/util/FileDetailSharingFragmentHelper.java 0% <ø> (ø) ⬆️
...ain/java/com/owncloud/android/db/ProviderMeta.java 88% <ø> (ø) ⬆️
...ndroid/operations/UpdateShareViaLinkOperation.java 0% <ø> (ø) ⬆️
...android/ui/fragment/FileDetailSharingFragment.java 0% <0%> (ø) ⬆️
...cloud/android/ui/helpers/FileOperationsHelper.java 0% <0%> (ø) ⬆️
...wncloud/android/providers/FileContentProvider.java 17.31% <0%> (-0.24%) ⬇️
...id/operations/UpdateSharePermissionsOperation.java 0% <0%> (ø) ⬆️
...loud/android/datamodel/FileDataStorageManager.java 10.57% <0%> (-0.04%) ⬇️
...m/owncloud/android/ui/adapter/UserListAdapter.java 0% <0%> (ø) ⬆️
...m/owncloud/android/services/OperationsService.java 0% <0%> (ø) ⬆️
... and 3 more

@nextcloud nextcloud deleted a comment Jun 2, 2018
@nextcloud nextcloud deleted a comment Jun 2, 2018
@nextcloud nextcloud deleted a comment Jun 2, 2018
@nextcloud nextcloud deleted a comment Jun 2, 2018
@nextcloud nextcloud deleted a comment Jun 2, 2018
@nextcloud nextcloud deleted a comment Jun 2, 2018
@nextcloud nextcloud deleted a comment Jun 2, 2018
@nextcloud nextcloud deleted a comment Jun 2, 2018
@AndyScherzinger
Copy link
Member Author

@tobiasKaminsky @mario to be discussed if this is the right approach. Atm my change would simply store a flag in the database if a share has a password but wouldn't store the password. This is imho the way to go while of course we could also store the password I simply wouldn't do that but have the user input a new password.
This is imho also how the webUI behaves, thus you can always change the password but you cannot recover the actual one.

@tobiasKaminsky
Copy link
Member

Totally fine with it. Storing a password is not needed as you can always set a new one.

@AndyScherzinger
Copy link
Member Author

@mario @ardevd @tobiasKaminsky please review :)

@AndyScherzinger AndyScherzinger force-pushed the fileDetails-3 branch 4 times, most recently from 7745ef9 to 5fb05e2 Compare June 8, 2018 07:35
share.setIsFolder(false);
}

share.setIsPasswordProtected((mPassword != null && mPassword.length() > 0));
Copy link
Contributor

Choose a reason for hiding this comment

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

TextUtils.isEmpty(mPassword)? :)

Copy link
Member Author

Choose a reason for hiding this comment

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

nice catch! 🎉

Copy link
Member Author

Choose a reason for hiding this comment

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

Fixed via 723ec59

@mario
Copy link
Contributor

mario commented Jun 9, 2018

One small comment.

@mario
Copy link
Contributor

mario commented Jun 9, 2018

👍

Approved with PullApprove

@AndyScherzinger
Copy link
Member Author

@tobiasKaminsky please review :)

@AndyScherzinger AndyScherzinger force-pushed the fileDetails-3 branch 8 times, most recently from 7535188 to 1351397 Compare June 11, 2018 15:16
@tobiasKaminsky
Copy link
Member

Can you give me a quick guide how to share a file via email?

  • open up file detail
  • go to sharing
  • enter email address:
    2018-06-12-091914

(on webUI, I see "test123@test.de (email)

@AndyScherzinger
Copy link
Member Author

You can't atm, but you ate able to change existing ones regarding permissions and password. That didn't work before.

For actually creating new mail shares we need to find out how to do that...

@tobiasKaminsky
Copy link
Member

tobiasKaminsky commented Jun 12, 2018

👍
Editing existing email share is working 🎉

Approved with PullApprove

@tobiasKaminsky tobiasKaminsky merged commit 6c12b57 into master Jun 12, 2018
@tobiasKaminsky tobiasKaminsky deleted the fileDetails-3 branch June 12, 2018 07:27
@AndyScherzinger AndyScherzinger added this to the Nextcloud App 3.3.0 milestone Jun 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants