client icon indicating copy to clipboard operation
client copied to clipboard

Implement Quota Checking / Display

Open danimo opened this issue 13 years ago • 18 comments

  • [ ] Write documentation on current server quota handling modes (started)
  • [x] Come up with a fitting UI to reflect server quota
  • [ ] Implement quota-checks in csync
  • [ ] Reflect the fact that we are over quota in a permanent way (currently, this is not considered an error at all).

danimo avatar Jun 28 '13 11:06 danimo

#173 is related

danimo avatar Jun 28 '13 11:06 danimo

@MTRichards

danimo avatar Jun 28 '13 11:06 danimo

Fantastic. What we would like is to both check the quota before upload, and then display quota in the system tray nenu - you have used x% of y quota.

@jancborchardt had some thoughts on what this should look like.

MTRichards avatar Jun 28 '13 11:06 MTRichards

First step: We show »1 GB (5%) of 20 GB used« in a row of the tray icon context menu. As illustrated in https://github.com/owncloud/design/raw/master/desktop/indicator%20menu.jpg

This will use the same values as the Personal page quota indicator of the web interface shows. There’s no need to worry about quota calculation in both the server and the client. The client should just get the value.

There should be a tray icon warning on each startup (or as soon as it happens) when you are above 90% quota usage. There is a similar value for the web interface where a permanent notification warning is shown, the threshold for that should be the same.

jancborchardt avatar Jun 28 '13 12:06 jancborchardt

@jancborchardt Right, but for shared folders, this might be a different story. And eventually, we might end up with different quotas per backend (and a user can have multple backends). This is why a single bar won't do.

For the internal quota handling, we can just ask the value for every folder. Displaying that reasonably is a different beast.

Anyway, displaying the quota of / might be a good start. We just need to make sure where do go as requirements evolve, and make sure we consider things that are already implemented.

@MTRichards might be able to shed some light here.

danimo avatar Jun 28 '13 15:06 danimo

@danimo yes, but we first need the simple one-bar thing, what is done in Personal in the web interface as well. As soon as we worry about more, we have to do it in conjunction with the web interface and the mobile clients – this is not just a client issue. And detailed bars should only be in the settings dialog.

Also, this seems to be a good thing to talk about at the meetup.

jancborchardt avatar Jun 28 '13 15:06 jancborchardt

I agree we do this in an iterative manner. Lets keep it simple the first time, something like a quota bar for % of total quota as the ownCloud server thinks. then, over time, we can add more as needed.

MTRichards avatar Jun 28 '13 15:06 MTRichards

Implemented prem. quota UI. Updated before every sync cycle. We could make this independent from the sync cycle to reflect the changes more accurately if needed.

image

danimo avatar Jun 28 '13 20:06 danimo

I have removed the floating point accuracy. It's now either <1%, or integer values, i.e. 1%, 10%, 36%, etc. The full string is now "x% or y zB used" (as advised in the sketch).

danimo avatar Jun 28 '13 20:06 danimo

Also, the quota is now also refreshed after every sync run.

danimo avatar Jun 28 '13 20:06 danimo

4ff1a13f3258157be7040abf92f6d5f8661ca390 implements the UI

danimo avatar Jun 28 '13 21:06 danimo

Cool! Changing it from »using x% of y« to »x% of y used« as well as removing the floating point would have been my 2 comments. Guess I have nothing left to say here but nice work! :)

jancborchardt avatar Jun 28 '13 23:06 jancborchardt

Docs on Quota handling: https://github.com/owncloud/core/wiki/spec:-Quota-handling

danimo avatar Jul 01 '13 09:07 danimo

@jancborchardt What should the client do if we are quota? The suggestion from a customer was to permanently display an error. I think that's a bit much. Maybe introduce an 'attention' logo? I agree it's wrong and misleading to show the OK state.

danimo avatar Jul 04 '13 23:07 danimo

@danimo you mean regarding the tray icon, right? Yes, error is misleading and best would be an additional »warning« state, like a yellow triangle (instead of red circle with x). Contacting Achim.

jancborchardt avatar Jul 05 '13 06:07 jancborchardt

Dropbox does red X, I think yellow exclamation mark would be more appropriate

petrihelenius avatar Jul 07 '13 06:07 petrihelenius

Hm wait, actually if it’s over quota then nothing is synced, right? So this warrants a red error, because user interaction is required. @danimo?

jancborchardt avatar Jul 08 '13 15:07 jancborchardt

Quota is a per-file problem for the following reason: If the 500 MB file exceeds the quota it does not mean that you can't upload another 500 kB file, which really is tried.

We report the quota exceeding now (with 1.4) in the new progress dialog that shows these individual problems with files. Also we display a warning icon in the tray and we have the large quota bar in the settings dialog.

I think we can close this for now. More sophisticated quota handling with having the server reserve the needed space on the first chunk uploaded (to avoid the problem that the file is uploaded before the quota error comes back to the client) needs still to be designed and implemented.

dragotin avatar Aug 07 '13 16:08 dragotin