Opened 4 years ago

Closed 4 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 by Nicklas Nordborg, 4 years ago

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 by Nicklas Nordborg, 4 years ago

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 by Nicklas Nordborg, 4 years ago

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 by Nicklas Nordborg, 4 years ago

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 by Nicklas Nordborg, 4 years ago

In 7843:

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

Fixed support for raw bioassays.

comment:6 by Nicklas Nordborg, 4 years ago

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 by Nicklas Nordborg, 4 years ago

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 by Nicklas Nordborg, 4 years ago

In 7846:

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

Added new icons for parent and child items.

comment:9 by Nicklas Nordborg, 4 years ago

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 by Nicklas Nordborg, 4 years ago

In 7864:

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

comment:11 by Nicklas Nordborg, 4 years ago

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