Commit 06f01f9
committed
LazyToolBox: order shed-installed tools before local ones in section materialisation
``test_only_latest_version_in_panel_fastp`` asserts the
just-installed fastp shed tool comes first in the rendered
custom_13 panel view's section, ahead of the local
``multiple_versions`` entry. Eager achieves this implicitly through
``__add_tool_to_tool_panel``'s insert/replace logic plus the
integrated-panel rebuild; the lazy materialiser was iterating
``_tool_index.entries`` in insertion order, which puts boot-time
local entries before any post-boot shed installs.
Mirror the eager ordering: in ``_materialise_section``, walk
shed-installed entries (``is_local=False``) first, then local
entries. Among shed entries we keep index insertion order so
``ToolSection.copy(merge_tools=True)`` still ends up with the
latest revision after dedup.1 parent 3ef79dc commit 06f01f9
1 file changed
Lines changed: 19 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
142 | 142 | | |
143 | 143 | | |
144 | 144 | | |
145 | | - | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
146 | 158 | | |
147 | 159 | | |
148 | 160 | | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
149 | 167 | | |
150 | 168 | | |
151 | 169 | | |
| |||
0 commit comments