[
https://issues.apache.org/jira/browse/KYLIN-3131?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16344542#comment-16344542
]
Billy Liu commented on KYLIN-3131:
----------------------------------
Hi [~peng.jianhua], I think we could do a little enhancement in CubeController,
not in CubeInstance, which means only sort Cube for list, not cube itself.
Maybe you could add the Collections.sort(list, Comparator) just before the
returned filterCubes in listAllCubes, and remove the compareTo in
CubeInstance.
One more thing, the total Cubes in the cube list page is wrong, could you check
it also in this jira?
> After refresh the page,the cubes can't sort by 'create_time'
> ------------------------------------------------------------
>
> Key: KYLIN-3131
> URL: https://issues.apache.org/jira/browse/KYLIN-3131
> Project: Kylin
> Issue Type: Bug
> Components: Web
> Reporter: peng.jianhua
> Assignee: peng.jianhua
> Priority: Major
> Fix For: v2.3.0
>
> Attachments:
> 0001-KYLIN-3131-After-refresh-the-page-the-cubes-can-t-so.patch, 01.PNG,
> 02.PNG, 03.PNG, 04.PNG, 05.PNG
>
>
> When we open the page 'localhost:7070/kylin/models',the cubes was
> disordered.Please refer to 01.png.
> Therefore,after we add or clone a new cube,then the page will be refreshed,we
> may not find the cube that just add.
> And through debug the code,I find that the cubes were sorted by 'create_time'
> default.But the cubes' attributes are not contain 'create_time'.
> So the cubes were disordered.Please refer to 02.png.
> Besides,in the back-end, cubes was sorted by created time from early to
> late,so the cubes we get were not latest.
> At this time,I add 50 cubes,from c1 to c50,add in order,but the cubes we get
> first were c1-c15,not c36-c50.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)