プロジェクト

全般

プロフィール

Vote #79471

完了

Use sorted instead of sort

Admin Redmine さんが約4年前に追加. 約4年前に更新.

ステータス:
Closed
優先度:
通常
担当者:
-
カテゴリ:
Performance_53
対象バージョン:
開始日:
2022/05/09
期日:
進捗率:

0%

予定工数:
category_id:
53
version_id:
99
issue_org_id:
29406
author_id:
123153
assigned_to_id:
332
comments:
6
status_id:
5
tracker_id:
3
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[Closed]

説明

using an order statement should be more effective because records are sorted in the database.

issue priorities on the issue's report page were originaly sorted by id (desc), but I think they should be sorted by position.


journals

--------------------------------------------------------------------------------
Pavel Rosický wrote:
> issue priorities on the issue's report page were originaly sorted by id (desc), but I think they should be sorted by position.

I prefer the current sort order. Showing the highest priority first is reasonable.
--------------------------------------------------------------------------------
> issue priorities on the issue's report page were originaly sorted by id
forget about this statement. I was wrong, enumerations have a default scope, so it's already sorted and I changed the order. I reverted this change and attached a fixed version of reports_controller_patch.rb

see also related #25867 for differences between sort vs sorted, it doesn't behave the same way
--------------------------------------------------------------------------------
Passed all tests. Setting the target version to 4.1.0.

The attached patch is a combination of Pavel Rosický's three patches.
--------------------------------------------------------------------------------
Committed. Thank you for improving Redmine.
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------

Admin Redmine さんが約4年前に更新

  • カテゴリPerformance_53 にセット
  • 対象バージョン4.0.0_99 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0