Skip to content

[WIP] Share dialog files sidebar - #18078

Closed
blizzz wants to merge 28 commits into
files-rightsidebarfrom
share-dialog-files-sidebar
Closed

blizzz wants to merge 28 commits into
files-rightsidebarfrom
share-dialog-files-sidebar

Conversation

@blizzz

@blizzz blizzz commented Aug 5, 2015

Copy link
Copy Markdown
Contributor

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.

Copy link
Copy Markdown
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

PVince81 commented Aug 5, 2015

Copy link
Copy Markdown
Contributor

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

@ghost

ghost commented Aug 5, 2015

Copy link
Copy Markdown

💣 Test FAILed. 💣
nooo432

Comment thread core/js/share.js Outdated

Copy link
Copy Markdown
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 files-rightsidebar branch from 1d30248 to d1439ec Compare August 6, 2015 23:24
@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

ghost commented Aug 7, 2015

Copy link
Copy Markdown

💣 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
Comment thread core/js/sharedialogview.js Outdated

Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Contributor

The sidebar was merged, you might want to rebase.

DeepDiver1975 and others added 2 commits August 10, 2015 16:16
@blizzz

blizzz commented Aug 10, 2015

Copy link
Copy Markdown
Contributor Author

isaacs/github#18 sigh

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

@blizzz
blizzz force-pushed the share-dialog-files-sidebar branch from 155b366 to 09b20f7 Compare August 10, 2015 20:24
@blizzz blizzz closed this Aug 10, 2015
@blizzz blizzz mentioned this pull request Aug 10, 2015
5 tasks done
@blizzz

blizzz commented Aug 10, 2015

Copy link
Copy Markdown
Contributor Author

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