-
Notifications
You must be signed in to change notification settings - Fork 2.1k
remember file sort order #23933
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
remember file sort order #23933
Conversation
apps/files/js/filelist.js
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should the order (asc vs. desc) also be stored? I think yes
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yup, I added that in my second commit
abdc66f to
ad01a46
Compare
ad01a46 to
595215b
Compare
|
Thanks a lot for your contribution! Alternatively you can add a comment here where you state that this contribution is MIT licensed. Some more details about out pull request workflow can be found here: http://owncloud.org/code-reviews-on-github/ |
|
@karlitschek can you please add @ChristophWurst to the internal devs? THX |
as long as there are no objections 😉 |
7194b4b to
c6bedf5
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wrong default value
c6bedf5 to
4925d04
Compare
|
@nickvergessen thanks for your feedback. Please review again |
4925d04 to
d00f13d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Response?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What should it return?
return ['status' => 'success'];?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well at least not null, I'd suggest to
On success:
return new Response();On error:
$response = new Response();
$response->setStatus(Http::STATUS_NOT_IMPLEMENTED);
return $response;and then the doc block should say
@return Response|
@DeepDiver1975 @ChristophWurst done :-) |
d00f13d to
576f724
Compare
|
@nickvergessen updated, please check again. thanks. |
|
Nice, works perfectly! 👍 |
|
👍 |
|
@ChristophWurst is awesome 🚀 :) |
|
Does this allow the admin to define a default sort order for folders as long as they are not 'overwritten' by individual user settings ? |
|
@MartinW2 no, that’s separate. However, sorting by alphabetic order still is the most reasonable default since people are used to it from basically any other file manager. I do agree that we could change to »sort by modified date« at some point for the default. But it definitely does not really make sense for the admin to change that. Anyway, I guess it might be possible for the admin to force this sorting. @ChristophWurst any idea how @MartinW2 can force that? |
|
One could adjust the default values here, which would then apply only if the user has not yet set any specific sort order. |
|
@MartinW2 hope that’s sufficient for your use-case. |
|
I already created a hack that worked for me in January 2015 (linked in 13484, pointing here). |
|
What’s the use-case for this option? Admins are not necessarily the best people to dictate UX. Are you rather advocating to change the default to sorting by modified date maybe? |
|
Would you please, finally, have a look at 13484 and it's comments? It's all described there. |
|
There too, you did not properly answer my question. You would like a change of the default sort order to from alphabetical to modified by date, right? If you look at our design guidelines, they say among other things:
So, instead of simply asking for an option (especially for the admin, which is strange in this case) we should think about if it makes sense to change the default. |
|
Hello Jan-Christoph, i think the answer is given in a comment for 13484 long time ago. Sorry Jan-Christoph, but it is this kind of ignorance and "Oh, i am the god of UX, so if i don't see the need, then it will be blocked" attitude, why i was leaving owncloud (apart from some technical flaws). As I have moved, I only comment here for the sake of others, who also wait to be able to provide reasonable defaults for their users. You know it can be done easily:
OMG, it would make the UX soooo complicated. I won't spend further time with this. From my point of view - everything has been said several times now. I am just curious if this comment will be deleted for it's open opinion on how the owncloud "open source" is handled. Best regards, |
Just to be clear - we never delete comments (at least I never did and I'm not aware others do) - with the exception of private data or security issues being leaked. |
|
@MartinW2 well, I read the forum threads and really no one of the others is specifically asking for an admin configuration option. Their use-cases all seem to be covered by the now implemented »remember sort order« functionality. Apart from that, personal insults and accusations are the opposite of helping. Please read our Code of Conduct, especially the »Be respectful« part. Your comment will definitely not be deleted (as Thomas said), as it mostly says something about your behavior and attitude than it does about our project. I intensively work on ownCloud since some years now and the few times people get personal like this, it really hurts. |
|
@MartinW2 it's a shame you decided to talk like that, now I personally find it difficult to continue the dialogue. Because someone disagree with you doesn't mean you're wrong (and the other way around). |
|
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
fixes #10788
TODO: