You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: api-tests/app.ts
+8-7Lines changed: 8 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -12,10 +12,11 @@ const endpointsToFix = [
12
12
//can't find the gmna.lookup_units table. 'geologic_units_gmna.ts',
13
13
//'geologic_units_gmus.ts'
14
14
//'mancos_test_cases.ts',
15
-
//uses gmus.lookup_units table. queries need to be customized and changed to match all of the lookup tables within postgresql 'mobile_point_details.ts;
15
+
//uses gmus.lookup_units table. queries need to be customized and changed to match all of the lookup tables within postgresql
"SELECT gid, (SELECT array_agg(DISTINCT rocktypes) FROM unnest(array[rocktype1, rocktype2, u_rocktype1, u_rocktype2, u_rocktype3]) rocktypes WHERE rocktypes IS NOT null) AS rocktype, unit_name, unit_age, unitdesc FROM gmus.lookup_units WHERE ST_Contains(geom, ST_GeomFromText($1, 4326))",
14
+
"SELECT\n"+
15
+
" cols.id AS col_id,\n"+
16
+
" lookup_unit_liths.lith_short,\n"+
17
+
" units.strat_name,\n"+
18
+
" units.id as unit_id,\n"+
19
+
" units.fo,\n"+
20
+
" units.lo,\n"+
21
+
" lookup_unit_intervals.fo_period,\n"+
22
+
" lookup_unit_intervals.fo_age,\n"+
23
+
" lookup_unit_intervals.lo_period,\n"+
24
+
" lookup_unit_intervals.lo_age,\n"+
25
+
" lookup_unit_intervals.age\n"+
26
+
"FROM\n"+
27
+
" macrostrat.cols\n"+
28
+
"JOIN\n"+
29
+
" macrostrat.units ON units.col_id = cols.id\n"+
30
+
"JOIN\n"+
31
+
" macrostrat.lookup_unit_liths ON lookup_unit_liths.unit_id = units.id\n"+
32
+
"JOIN\n"+
33
+
" macrostrat.lookup_unit_intervals ON lookup_unit_intervals.unit_id = units.id\n"+
0 commit comments