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

[WIP] Share dialog files sidebar #18078

Closed
wants to merge 28 commits into from

Conversation

blizzz
Copy link
Contributor

@blizzz blizzz commented Aug 5, 2015

supposed to implement #17665

  • TODO: modularize share dialog into reusable view and item model
  • TODO: ensure backwards compatibility with showDropDown()
  • TODO: embed share dialog in share tab
  • TODO: write unit tests
  • REQUIRES: Introduce microevent library #9227

currently this is based on files-rightsidebar

cc @PVince81

rullzer and others added 4 commits July 4, 2015 06:57
Currently it is possible to set a negative number of days in which a
public share expires. This results in public sharing not working and it
undesired.

Weird thing is that the API still lets you create shares and gives back
an URL. However the id is "unkown" and the URL invalid.
Storage status is saved in the database. Failed storages are rechecked every
10 minutes, while working storages are rechecked every request.

Using the files_external app will recheck all external storages when the
settings page is viewed, or whenever an external storage is saved.
This usually doesn't cause issues, but in unit tests sometimes a wrapped
storage is passed to Filesystem::mount() and gets rewrapped, hitting the
XDebug function nesting level limit when used.
}

.shareTabView input[type="text"], .shareTabView input[type="password"] {
width: 91%;
Copy link
Contributor

Choose a reason for hiding this comment

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

That's some nice precise value you have here 😉

@PVince81
Copy link
Contributor

PVince81 commented Aug 5, 2015

Great progress, it already looks much better than the old dialog code 😄

@ghost
Copy link

ghost commented Aug 5, 2015

💣 Test FAILed. 💣
nooo432

@@ -368,6 +374,21 @@ OC.Share={
});
},
showDropDown:function(itemType, itemSource, appendTo, link, possiblePermissions, filename) {
var itemModel = new OC.Share.ShareItemModel(itemType, itemSource);
Copy link
Contributor

Choose a reason for hiding this comment

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

Here call OC.Share.loadItem() which is still sync ajax, then inject it into the model.

However in the sidebar it needs to be async, so probably need to rewrite another OC.Share.loadItem

@blizzz blizzz force-pushed the share-dialog-files-sidebar branch from 3347061 to 1e5dcec Compare August 7, 2015 21:16
Use the new IteratorDirectory instead of the fakedir wrapper
@ghost
Copy link

ghost commented Aug 7, 2015

💣 Test FAILed. 💣
nooo432

michag86 and others added 3 commits August 10, 2015 09:36
* This should allow the capabilities to be intergrated into the
appframework
* Unit tests
* Throw exception if closure does not return ICapability instance
* Files
* Files_Sharing
* Files_Trashbin
* Files_Versions
* Register OCP\Capability\IManager at DIContainer
* Add register capabilities to appframework
* Register capabilities in DI way
* Make unit test pass again
* Remove CapabiltiesManager from OCP
tagName: 'div',

initialize: function() {
if(!this.model instanceof OC.Share.ShareItemModel) {
Copy link
Contributor

Choose a reason for hiding this comment

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

beware that JS cannot detect subclasses this way

Copy link
Contributor

Choose a reason for hiding this comment

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

(because there are no subclasses in JS, just prototype duplication)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Removed

@PVince81
Copy link
Contributor

The sidebar was merged, you might want to rebase.

DeepDiver1975 and others added 2 commits August 10, 2015 16:16
@blizzz
Copy link
Contributor Author

blizzz commented Aug 10, 2015

isaacs/github#18 sigh

I will rebase and open a PR against master a little later to-:night_with_stars:

@blizzz blizzz closed this Aug 10, 2015
@blizzz blizzz mentioned this pull request Aug 10, 2015
5 tasks
@blizzz
Copy link
Contributor Author

blizzz commented Aug 10, 2015

This is not the PR you are looking for. You go here #18185

@lock lock bot locked as resolved and limited conversation to collaborators Aug 11, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants