プロジェクト

全般

プロフィール

Vote #63740

未完了

Custom field reordering isn't working at a lot of places

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

ステータス:
New
優先度:
通常
担当者:
-
カテゴリ:
Custom fields_14
対象バージョン:
-
開始日:
2008/08/11
期日:
進捗率:

0%

予定工数:
category_id:
14
version_id:
0
issue_org_id:
1768
author_id:
1565
assigned_to_id:
0
comments:
6
status_id:
1
tracker_id:
1
plus1:
1
affected_version:
closed_on:
affected_version_id:
ステータス-->[New]

説明

h3. Description:

After feature request #477 revision r901 introduces custom-field reordering. Though this implementation seems to be (mostly) not working.

h3. My own review log which is quite detailed:


* issue.custom_fields    -> Are not reordered at all:
                - not in the issue-view (@ /issues/show/xxxissuexxx)
                - not for the appearance of it's column in the main issuelist-view (@ /issues)
                - not for the appearance of it's column in the project's issuelist-view (@ /projects/xxxprojectxxx/issues)
                - not in the issue edit-view (@ /issues/edit/xxxissuexxx)

* project.custom_fields  -> Are reordered partly:
                - not in the projectoverview-view (@ /projects/show/xxxprojectxxx)
                - it actually works in the edit-view (@ /projects/settings/xxxprojectxxx)

* user.custom_fields     -> Are reordered partly:
                - not in the account-view (@ /account/show/xxxuserxxx)
                - it actually works in the admin's account edit-view (@ /users/edit/xxxuserxxx)
                (user's edit-view isn't available at all (see #524 for the issue and #242 for an older patch))

* timelog.custom_fields  -> Are reordered partly
                - works fully in the general timelog edit-view (@ /projects/xxxprojectxxx/timelog/edit/xxxtimelogentryxxx)
                - works fully in the issue's timelog edit-view (@ /timelog/edit?issue_id=xxxissuexxx)
                (timelog's details-view (@ /projects/xxxprojectxxx/timelog/details) is missing columns for timelog.custom_fields at all (see #1766))
                (timelog's report-view (@ /projects/xxxprojectxxx/timelog/report) does contain the timelog.custom_fields columns though they are not reordered (order in the 'Add:'-list is a mess))

h3. Issue Notes:

  • Category 'Custom Fields' isn't correct, but on purpose since this is related actually to some views of different category-items. This seems the best category of all...
  • Affected version 'devel' is party correct. Most certain this is also a defect on the 0.7 stable-branch.

h3. IRC-log of discussion specific to issue.custom_fields:

Me: It doesn't hold any code ... to sort those fields like done in the admin-section. That means sorting of issue.custom-fields like implemented in r901 isn't what is meanted in #477 which therefore shouldnt be closed imho...

Eric Davis: I think it's right, the controller selects the fields in order by position.

Eric Davis: ah but your right, the latest code was refactored and it looks like it isn't checking that
Me: Indeed imo after r901 the fields should be rendered ordered like done in the admin.

Eric Davis: nm, acts_as_customizable automatically orders by position.

Eric Davis: but the UI isn't reflecting it...

Eric Davis: the code looks correct but the UI isn't reordering on my install.
Me: Thanks for the confirmation


journals

r1731 should fix:
* issue-view (@ /issues/show/xxxissuexxx)
* issue edit-view (@ /issues/edit/xxxissuexxx)
* projectoverview-view (@ /projects/show/xxxprojectxxx)
* account-view (@ /account/show/xxxuserxxx)

More fixes will be applied.
--------------------------------------------------------------------------------
We need to be able to sort by the custom fields after running a custome query.
--------------------------------------------------------------------------------
*Jean-Philippe Lang wrote:*
> r1731 should fix:
> * issue-view (@ /issues/show/xxxissuexxx)
> * issue edit-view (@ /issues/edit/xxxissuexxx)
> * projectoverview-view (@ /projects/show/xxxprojectxxx)
> * account-view (@ /account/show/xxxuserxxx)
>
> More fixes will be applied.

Thanks for the quick response. Will test with a newer checkout soon and will report back only if r1731 does it's job not correct, which I doubt... :-)

*Wayne Simpson wrote:*
> We need to be able to sort by the custom fields after running a custome query.

This does not relate in any way to the fact that this defect is about: ??"Custom field reordering isn't working at a lot of places"??.

Please "investigate" it some more (maybe using some searches on the Redmine-site) and open a new issue if it's still needed... :-)
--------------------------------------------------------------------------------
Jean-Philippe,

After all this time I rechecked the initial issue to see what remains to be implemented:

# @issue.custom_fields@
## the order is not used for the appearance of its column in the global issuelist-view (_/issues_)
# @timelog.custom_fields@
## timelog's details-view (_/projects/xxxprojectxxx/timelog/details_) is still missing columns for @timelog.custom_fields@ at all (see #1766)
## timelog's report-view (_/projects/xxxprojectxxx/timelog/report_) does contain the @timelog.custom_fields@ columns though they are not reordered (order and format in the "Add:"-list is a mess)

I think this issue can be closed as soon as at least the remaining point 1.1 is fixed. Then point 2.1 can be done against #1766 and point 2.2 can then be completed as a future minor new UI-feature which remains to be opened... ;)

Regards...
--------------------------------------------------------------------------------
+1
--------------------------------------------------------------------------------

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

  • カテゴリCustom fields_14 にセット

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

いいね!0
いいね!0