Skip to content

Match legacy class->instance query inheritance in term_info#63

Merged
Robbie1977 merged 1 commit into
mainfrom
fix/instance-class-query-inheritance
Jul 7, 2026
Merged

Match legacy class->instance query inheritance in term_info#63
Robbie1977 merged 1 commit into
mainfrom
fix/instance-class-query-inheritance

Conversation

@Robbie1977

Copy link
Copy Markdown
Contributor

Reinstates the type-based instance->class query inheritance from the legacy term-info builder (uk.ac.vfb.geppetto VFBProcessTermInfoCachedJson), replacing the Technique == "computer graphic" heuristic that only caught painted domains.

An Individual of an anatomical/expression-pattern type now inherits its parent class's full query menu, anchored on the class - so e.g. R40G10 (VFB_00020530) and confocal splits (VFB_00069525), tracts and muscle images regain their class queries instead of showing an empty menu.

  • Predicate table mirrors the class-menu criteria; anchored on the primary parent class (parents[0]).
  • Adds live-integration parity tests (need a running VFB backend to execute).

Follow-up: eyeball a confocal Neuron_projection_bundle and a Muscle instance on the live site; consider DRYing the duplicated class-menu/predicate conditions

Reinstate the type-based gate from the legacy term-info builder
(uk.ac.vfb.geppetto VFBProcessTermInfoCachedJson) so an Individual of an
anatomical or expression-pattern type inherits its parent class's full
query menu, anchored on the class. Replace the Technique == "computer
graphic" heuristic, which only caught painted domains and dropped
confocal instances such as expression patterns (VFB_00020530), splits
(VFB_00069525), tracts and muscle.

Drive inheritance from a predicate table mirroring the class-menu
criteria, anchored on the primary parent class (parents[0]), so an
instance shows exactly what its class shows.

Add live-integration parity tests.
@Robbie1977 Robbie1977 merged commit 8c2cbd5 into main Jul 7, 2026
3 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant