Closed (fixed)
Project:
Translation Management Tool
Version:
8.x-1.x-dev
Component:
User interface
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
8 May 2015 at 14:59 UTC
Updated:
23 Oct 2015 at 10:14 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
LKS90 commentedHere is a patch that adds the sort criteria to the default configuration.
Feedback is welcome as I don't know if {Translation Job: Reference}, {Translation Job: Settings} and {Translation Job: UUID} are something we would like to sort for.
At the moment you can sort for:
Last Changed
Created
Job state
Target language code
Source language code
Node ID
Owner
Translator
Comment #3
sasanikolic commentedRewieved @LKS90's patch and changed from ASC to DESC to be the default sorting criteria, since we think it makes more sense.
The patch is failing because of #2503663: Date sort_expose handler is missing "order" schema. Will need retest when that issue is commited.
Comment #4
sasanikolic commentedComment #6
sasanikolic commentedProviding screenshot of the UI change.
Comment #7
sasanikolic commentedComment #10
juanse254 commentedRebased the patch manually :). We might need tests for this as well
Comment #13
juanse254 commentedThis should pass the tests
Comment #14
juanse254 commentedTests added, also added some sorting criteria which might come handy.
Comment #16
juanse254 commentedComment #18
juanse254 commentedComment #19
edurenye commentedSeems fine, remember to add first the test-only first when uploading the patches, otherwise it changes to needs work.
Comment #20
miro_dietikerSince it's a UI change, please always add screenshots. Otherwise it takes much longer to review...
I think that's just too many exposed filters for a UI that is still efficient in handling.
Comment #21
juanse254 commentedHere are the screenshots, and i disabled three that were not that usefull(sorting criterias)
Comment #22
miro_dietikerIf you disable these filters from being exposed, i guess you should drop them completely from the view.
I understand that we never know about a specific use case, but a good UI decides about reduction and keeps navigating through things easy. This also means not offering every possible option by default.
I really don't know if we should follow this issue. Core also never exposes sort criteria. A power user can do so if he needs it.
Comment #23
miro_dietikerChecked the situation and we want to do it similarly to all Core views:
Most importantly we want to have the view sorted by default by the id / creation date.
Currently, the sort criteria is completely missing.
At the same time, please change order to first show the source and then the target language.
And while checking (separate issue plz) i also realised that the tmgmt_job_items view has no sort criteria...
Comment #24
juanse254 commentedokay, this is setting everything to sort it by id/creation. All those criterias are deleted now and the the source is first now. I'll create the other issue right away :).
Comment #25
miro_dietikerYou are still adding the sorts as exposed sorts.
I really only want to add the default sorting to the view before we discuss about anything else.
Note that your patch does not change anything like an order of source and target language with the exposed filters. You only do so in the sorts.
Comment #26
juanse254 commentedThis only leaves us with the creation sort and the filtering are now ordered.
Comment #27
berdirThose things are by design not sortable, they are calculated.
NO leading /.
Why not expose the sorting through the table settings? We don't have created in there right now but changed, but we could also sort by that by default, makes at least as much sense?
Comment #28
miro_dietikerHm, for me this is kinda two different issues.
Originally, we identified that there is no order in place at all. That's a significant bug.
And about source / target order we are also not consistent.
Adding exposed sort is like a second step feature to me and i'm not fully clear about it. I didn't want to think about it as long as the bug persist.
I think we should check what we need for users before adding more and more optional elements.
If you want to push things forward more quickly, fine with me.
Comment #29
juanse254 commentedim not sure if this is what we are looking for, let me know.
Comment #30
miro_dietikerIn general what i see is what i would have expected as the correct core-like fix before debatable UI/UX improvements...
You didn't yet provide an update about sort of the tmgmt_job_items as requested in #23.
Are you really sure that $value is always an array?
And then there are so many other unrelated changes... Please provide a patch that is not mixed with other issues.
Comment #31
juanse254 commentedHere is the issue for tmgmt_job_items #2573101: Add sort criteria to Job Items and yes my bad the patch is not the right one :s.
Comment #32
juanse254 commentedHeres the real patch, (same as previous but rebased).
Comment #35
giancarlosotelo commentedYou are not addressing #23 yet, the patch doesn't has any sort criteria, just the default order.
As far as I understand we have to add the sort criteria similar to core, so you have to edit the view and in the table settings just check what fields do you want to make sortable. And then you can sort jobs by clicking on any field.
Comment #36
juanse254 commentedThats how it was at the beginning, by that i mean patch #14.
Following
I think last patch is closer to what the maintainer wants. We should stick to the lastest patch and then implement the rest later.
Comment #37
juanse254 commentedComment #38
juanse254 commentedMaybe this is a closer approach to what was originally wanted at first.
Comment #39
giancarlosotelo commentedAll points from discussion above are addressed and patch works well for me. But now we should choose some fields that worth to be ordered.
Comment #40
berdirI'm confused ;)
#35 was correct ( and no, that it is not what #14 did)
* We make the fields sortable that *can* be sorted. Just create a few jobs and you'll see that operation links can't be shorted (results in an exception, actually) and same for progress, because that is information that we compute during display. So, all the others can but not those.
* Do not add *any* sort fields at all. Instead, configure the default sort order in the tabe settings, which, as I suggested above, should be changed DESC. The difference is that this default sort order is then visible when you go there and you know what you can sort on.
Comment #41
juanse254 commentedOkay, this is the approach we are looking for then.
Comment #42
berdirThanks. Committed.