Opened 2 years ago

Closed 2 years ago

#2218 closed enhancement (fixed)

Add support for adding "Child item" columns to list pages

Reported by: Nicklas Nordborg Owned by: everyone
Priority: major Milestone: BASE 3.17
Component: web Version:
Keywords: Cc:

Description

Support for adding "Parent item" columns was implemented in #2202. It should be relatively easy to extend this to also support columns with information from child items.

Change History (11)

comment:1 Changed 2 years ago by Nicklas Nordborg

In 7839:

References #2218: Add support for adding "Child item" columns to list pages

Changed the implementation of ParentItemColumn.getParentItems() to use the list transformation API instead of the annotation API. A "side-effect" is that this seems to be a lot faster.

comment:2 Changed 2 years ago by Nicklas Nordborg

In 7840:

References #2218: Add support for adding "Child item" columns to list pages

Renamed some classes from "ParentItem?" to "RelatedItem?" to prepare for adding support for child items. Some other files and names in javascript and css has also been changed.

comment:3 Changed 2 years ago by Nicklas Nordborg

In 7841:

References #2218: Add support for adding "Child item" columns to list pages

Implemented support for loading information from child items in columns, by adding an extra section to the column definition string: /ITEMTYPE/subtype-id/property --> /DIRECTION/ITEMTYPE/subtype-id/property.

DIRECTION can be either PARENT or CHILD. If not specified, PARENT, is assumed.

comment:4 Changed 2 years ago by Nicklas Nordborg

In 7842:

References #2218: Add support for adding "Child item" columns to list pages

It is now possible to select child columns to display in the web client. The functionality has been enabled also for BIOSOURCE items. There is one issue with selecting columns from the RAWBIOASSAY level since it doesn't have a subtype. This can probably be solved by using the raw data type of platform instead.

comment:5 Changed 2 years ago by Nicklas Nordborg

In 7843:

References #2218: Add support for adding "Child item" columns to list pages

Fixed support for raw bioassays.

comment:6 Changed 2 years ago by Nicklas Nordborg

In 7844:

References #2218: Add support for adding "Child item" columns to list pages

Changed implementation so that sort order of items and values are predictable.

  • Items are sorted by name.
  • Other values are sorted by the name of the item they belong to.

comment:7 Changed 2 years ago by Nicklas Nordborg

In 7845:

References #2218: Add support for adding "Child item" columns to list pages

Added some more pre-defined properties that can be selected.

comment:8 Changed 2 years ago by Nicklas Nordborg

In 7846:

References #2218: Add support for adding "Child item" columns to list pages

Added new icons for parent and child items.

comment:9 Changed 2 years ago by Nicklas Nordborg

In 7847:

References #2218: Add support for adding "Child item" columns to list pages

Added some information about this new feature to the documentation.

comment:10 Changed 2 years ago by Nicklas Nordborg

In 7864:

References #2218 and #2222. Suppress compilation warnings for creating a raw array type.

comment:11 Changed 2 years ago by Nicklas Nordborg

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.