eg-fm-record-editor: take care wiring up comboboxes
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Evergreen |
Fix Released
|
High
|
Unassigned | ||
3.8 |
Fix Released
|
High
|
Unassigned |
Bug Description
As alluded to in bug 1851879, eg-fm-record-editor can attempt to scan an entire linked table when creating a modal.
Specifically, if the IDL class has one or more linked tables as columns, wireUpCombobox() is invoked for each of them. If preloadLinkedValues is active, which is the default, the entire contents of the linked table are fetched. This happens even if customTemplate is in effect for the linked column and a combobox isn't desired in the first place.
In the case of bug 1851879, this can result in loading all bib buckets in the system when opening a carousel modal, which is a problem in systems with large numbers of buckets.
Possible fixes:
- Do not invoke wireUpCombobox for link columns if a custom template is in force for that column
- Do not have preloadLinkedValues be on by default
Changed in evergreen: | |
status: | New → Confirmed |
Changed in evergreen: | |
milestone: | 3.4.2 → 3.4.3 |
tags: | added: carousel |
Changed in evergreen: | |
milestone: | 3.4.3 → 3.4.4 |
Changed in evergreen: | |
milestone: | 3.4.4 → 3.5.2 |
Changed in evergreen: | |
milestone: | 3.5.2 → 3.6.1 |
tags: | removed: carousel |
Changed in evergreen: | |
milestone: | 3.6.1 → 3.6.2 |
Changed in evergreen: | |
milestone: | 3.6.2 → 3.6.3 |
Changed in evergreen: | |
milestone: | 3.6.3 → none |
Changed in evergreen: | |
assignee: | nobody → Jeff Davis (jdavis-sitka) |
Changed in evergreen: | |
assignee: | Jeff Davis (jdavis-sitka) → nobody |
Changed in evergreen: | |
milestone: | none → 3.9.1 |
no longer affects: | evergreen/3.4 |
no longer affects: | evergreen/3.5 |
no longer affects: | evergreen/3.9 |
Changed in evergreen: | |
assignee: | nobody → Galen Charlton (gmc) |
no longer affects: | evergreen/3.7 |
Changed in evergreen: | |
status: | Fix Committed → Fix Released |
As one correction, preloadLinkedValues is not on by default, so I modify my suggestion: that it either not be a component-level option (and just be a fieldOption) or that it not be turned on in the default admin-page component.