OS.js icon indicating copy to clipboard operation
OS.js copied to clipboard

VFS Capability detection, other extensions

Open andersevenrud opened this issue 2 years ago • 6 comments

VFS could benefit from capability detection so that clients is aware of what a filesystem source is capable of.

This would allow for adding extensions on the client that are context aware, like pagination and archives.


Split out from discussions in:

  • https://github.com/os-js/osjs-client/pull/165
  • https://github.com/os-js/osjs-server/pull/56

Work done on this:

  • https://github.com/os-js/osjs-client/pull/164
  • https://github.com/os-js/osjs-client/pull/182
  • https://github.com/os-js/osjs-client/pull/186
  • https://github.com/os-js/osjs-client/pull/188
  • https://github.com/os-js/osjs-client/pull/189
  • https://github.com/os-js/osjs-client/pull/190
  • https://github.com/os-js/osjs-server/pull/63
  • https://github.com/os-js/osjs-server/pull/65
  • https://github.com/os-js/osjs-server/pull/66
  • https://github.com/os-js/osjs-server/pull/67
  • https://github.com/os-js/osjs-filemanager-application/pull/37

Pending:

  • https://github.com/os-js/osjs-server/issues/64
  • https://github.com/os-js/osjs-client/issues/184
  • https://github.com/os-js/osjs-filemanager-application/issues/39

Relevant:

  • https://github.com/os-js/OS.js/issues/788
  • https://github.com/os-js/osjs-client/issues/163
  • https://github.com/os-js/osjs-client/issues/166

andersevenrud avatar Jul 28 '22 21:07 andersevenrud

As discussed, @mahsashadi will do some work related to this in the following stages:

  1. ~~URL serialization~~ (done)
  2. Client option filtering
  3. ~~Capability detection~~ (done)
  4. Other improvements

Massive thanks!

andersevenrud avatar Jul 28 '22 21:07 andersevenrud

Also, @ajmeese7 wanted to have a look at archive extensions.

Thanks a bunch!

andersevenrud avatar Jul 28 '22 22:07 andersevenrud

I continue with capability detection of VFS: https://github.com/os-js/osjs-client/pull/186 https://github.com/os-js/osjs-server/pull/65

These changes are considered added method has some argument. If you still have the idea of capability caching, maybe we should create another PR that changes the api to support methods without arguments. I remember I worked on this issue but did not come up with solution.

mahsashadi avatar Jul 31 '22 06:07 mahsashadi

@mahsashadi Yeah, let's tackle the caching in a separate PR. It needs further discussion. I have some ideas about this already, but let's take it when the time is right.

andersevenrud avatar Jul 31 '22 20:07 andersevenrud

I continue with adding total values to VFS stat api (needed for pagination in file manager): https://github.com/os-js/osjs-server/pull/66

I also make another pull request for capability-caching: https://github.com/os-js/osjs-client/pull/188

mahsashadi avatar Aug 02 '22 09:08 mahsashadi

I made another PR for VFS context-aware sorting in client-side. https://github.com/os-js/osjs-client/pull/189

mahsashadi avatar Aug 09 '22 10:08 mahsashadi