Commit 44eab23
committed
AnatomyExpressedIn: add Stage/Template/Technique/Image columns
Restores the column shape v2 prod's legacy ExpressionOverlapsHere
emitted (Name | Reference | Gross_Type | Stage | Template_Space |
Imaging_Technique | Images). v2-dev was only emitting the first
four; the migration to VFBquery had collapsed the legacy Cypher to
id / name / tags / pubs.
Mirrors the legacy XMI Cypher at
geppetto-vfb@998cc28d9^:model/vfb.xmi
dataSources[0]/@queries.9
which walks from the RESULT anatomy class (not the input EP):
(anat)<-[:has_source|SUBCLASSOF|INSTANCEOF*]-(:Individual)
<-[:depicts]-(channel:Individual)
-[:in_register_with]->(template:Individual)
-[:depicts]->(template_anat:Individual)
(channel)-[:is_specified_output_of]->(technique:Class)
(anoni)-[:Related]->(o:FBdv) -- stages
get_expression_overlaps_here now wraps each of those in its own
CALL subquery, applies LIMIT before they fire so EPs that overlap
hundreds of anatomy classes stay bounded, and projects the new
fields as plain string / markdown columns:
pubs Reference (already in v1.14.0)
stages Stage (text)
template Template_Space (markdown)
technique Imaging_Technique (text)
thumbnail Images (markdown)
The headers / preview_columns dict on AnatomyExpressedIn_to_schema
is extended in matching order, and encode_markdown_links is given
the three new markdown columns. No behaviour change for any other
query.
Stages will be empty for most current pdb data — the (:Individual)
-[:Related]->(:FBdv) edges weren't preserved during a prior
indexer refactor; the column is kept here for parity with the
legacy XMI shape and will populate when the development-stage edges
return.
Verified locally on VFBexp_FBti0103609 (P{GSV6}GS10340):
DN1 — Richier 2008 / JRC2018Unisex / SBFSEM
DN2 — Richier 2008 / JRC2018Unisex / TEM
DN3 — Richier 2008 / JRC2018Unisex / FIB-SEM
matching v2 prod row-for-row.
Patch bump 1.14.1 -> 1.14.2. New columns invalidate stale
@with_solr_cache buckets implicitly via the result shape change;
existing cached entries that don't carry the new keys will be
treated as misses and refreshed naturally.1 parent 5205afb commit 44eab23
2 files changed
Lines changed: 64 additions & 22 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1779 | 1779 | | |
1780 | 1780 | | |
1781 | 1781 | | |
1782 | | - | |
| 1782 | + | |
| 1783 | + | |
| 1784 | + | |
| 1785 | + | |
| 1786 | + | |
1783 | 1787 | | |
1784 | 1788 | | |
1785 | 1789 | | |
| |||
2809 | 2813 | | |
2810 | 2814 | | |
2811 | 2815 | | |
| 2816 | + | |
| 2817 | + | |
| 2818 | + | |
| 2819 | + | |
| 2820 | + | |
| 2821 | + | |
| 2822 | + | |
| 2823 | + | |
| 2824 | + | |
| 2825 | + | |
| 2826 | + | |
| 2827 | + | |
| 2828 | + | |
| 2829 | + | |
| 2830 | + | |
2812 | 2831 | | |
2813 | 2832 | | |
2814 | 2833 | | |
2815 | | - | |
2816 | | - | |
2817 | | - | |
2818 | | - | |
2819 | | - | |
2820 | | - | |
2821 | | - | |
2822 | | - | |
2823 | | - | |
| 2834 | + | |
| 2835 | + | |
| 2836 | + | |
| 2837 | + | |
| 2838 | + | |
| 2839 | + | |
| 2840 | + | |
| 2841 | + | |
| 2842 | + | |
| 2843 | + | |
| 2844 | + | |
| 2845 | + | |
| 2846 | + | |
| 2847 | + | |
| 2848 | + | |
| 2849 | + | |
| 2850 | + | |
| 2851 | + | |
| 2852 | + | |
| 2853 | + | |
| 2854 | + | |
| 2855 | + | |
| 2856 | + | |
| 2857 | + | |
| 2858 | + | |
| 2859 | + | |
| 2860 | + | |
| 2861 | + | |
2824 | 2862 | | |
2825 | 2863 | | |
2826 | 2864 | | |
2827 | 2865 | | |
2828 | | - | |
2829 | | - | |
| 2866 | + | |
| 2867 | + | |
| 2868 | + | |
| 2869 | + | |
| 2870 | + | |
2830 | 2871 | | |
2831 | 2872 | | |
2832 | | - | |
2833 | | - | |
2834 | | - | |
2835 | 2873 | | |
2836 | 2874 | | |
2837 | 2875 | | |
2838 | 2876 | | |
2839 | | - | |
| 2877 | + | |
2840 | 2878 | | |
2841 | 2879 | | |
2842 | 2880 | | |
2843 | 2881 | | |
2844 | 2882 | | |
2845 | 2883 | | |
2846 | | - | |
2847 | | - | |
2848 | | - | |
2849 | | - | |
| 2884 | + | |
| 2885 | + | |
| 2886 | + | |
| 2887 | + | |
| 2888 | + | |
| 2889 | + | |
| 2890 | + | |
| 2891 | + | |
2850 | 2892 | | |
2851 | 2893 | | |
2852 | | - | |
| 2894 | + | |
2853 | 2895 | | |
2854 | 2896 | | |
2855 | 2897 | | |
| |||
0 commit comments