Closed EcutDavid closed 8 years ago
This can be done later, lets fix core issues first.
Related code: https://github.com/Wiredcraft/pmhub/blob/68a91bf84281a342072026788a01707be5905056/api/server/models/github-repo.js#L110
Instead of using defaultRanking
here, need set ranking alphabetically or based on issue number or whatever.......
seem we do not have solutions about how to set default ranking and how to handle ranking changes, if not, pls info me that, thanks. then IMP
last update time
as the default rank number in our app, and front-end sort it DESC, i think people want to see lastly touched ticket at the top, not the larger github number ticket. this solution has some problems, one is when user sync the board from github again, the default ranking number will be changed, cause the last update time
of these tickets may change in github.
I think issue number
is better than update time
.
plus: the param nCards
in the method above is the sum number of one list (label in our app), and potential bugs maybe JS standard number can only have 16 digits after the decimal point
Done.
Quite the same with #6, Currently, we just use
column-id
to decide which board issue should be placed. But we haven't usedranking
for sort issues.For issues which ranking are same, they should be sort alphabetically. For issues with different ranking, should be sort from larger ranking to smaller.