Defect #14881

Issue journals should be ordered by created_on, not id

Added by Felix Schäfer about 5 years ago. Updated over 3 years ago.

Status:ClosedStart date:
Priority:NormalDue date:
Assignee:Jean-Philippe Lang% Done:

0%

Category:Issues
Target version:3.1.0
Resolution:Fixed Affected version:

Description

r10547 changes the ordering of journals in IssuesController#show from created_on ASC do id ASC, is there a specific reason for this? Ordering by ID is probably right in most cases, we have a Jira import where this is not the case.


Related issues

Duplicated by Redmine - Defect #17852: Issue journals should be ordered by created_on, not id Closed
Duplicated by Redmine - Patch #18440: Journals could be ordered using the create_on attribute i... Closed

Associated revisions

Revision 14374
Added by Jean-Philippe Lang over 3 years ago

Sort journals by created_on then id (#14881).

History

#1 Updated by Jean-Philippe Lang about 5 years ago

This was changed because journals may have the same created_on value. We could use created_on ASC, id ASC instead to fix your issue but importing journals in chronological order would have been a better option :/

#2 Updated by Felix Schäfer about 5 years ago

Ah, because of the split public changes/private notes journals? I understand.

created_on ASC, id ASC would work, thanks!

#3 Updated by Toshi MARUYAMA about 5 years ago

  • Category set to Issues

#4 Updated by Go MAEDA almost 4 years ago

  • Duplicated by Defect #17852: Issue journals should be ordered by created_on, not id added

#5 Updated by Go MAEDA almost 4 years ago

  • Related to Patch #18440: Journals could be ordered using the create_on attribute instead of the id added

#6 Updated by Go MAEDA almost 4 years ago

  • Related to deleted (Patch #18440: Journals could be ordered using the create_on attribute instead of the id)

#7 Updated by Go MAEDA almost 4 years ago

  • Duplicated by Patch #18440: Journals could be ordered using the create_on attribute instead of the id added

#8 Updated by Toshi MARUYAMA over 3 years ago

#61 note order is strange.
#61#note-5 is oldest.

#61#note-5 -> #61#note-4 -> #61#note-3 -> #61#note-2 -> #61#note-1 ->
#61#note-6 -> #61#note-7 ...

#9 Updated by Jean-Philippe Lang over 3 years ago

  • Subject changed from Issue comments in wrong order to Issue journals should be ordered by created_on, not id
  • Status changed from New to Closed
  • Assignee set to Jean-Philippe Lang
  • Target version set to 3.1.0
  • Resolution set to Fixed

Also available in: Atom PDF