c73b604073cf90818fdfafd1c711b9b508835e52 angie Thu Jun 19 12:42:01 2014 -0700 hdb's hGetParent wasn't working because it used hMaybeTrackInfo whichlooks up only one track, not its parent or children. It was used in only one place in the code, so I replaced it with a call to tdbForTrack. fixes #13477 (Search results don't open super tracks) diff --git src/hg/inc/hdb.h src/hg/inc/hdb.h index a0e53bf..5437888 100644 --- src/hg/inc/hdb.h +++ src/hg/inc/hdb.h @@ -646,33 +646,30 @@ /* Load trackDb object for a track. If track is composite, its subtracks * will also be loaded and inheritance will be handled; if track is a * subtrack then inheritance will be handled. (Unless a subtrack has * "noInherit on"...) Don't die if conn has no trackDb table. Return NULL * if trackName is not found. */ struct trackDb *hTrackInfo(struct sqlConnection *conn, char *trackName); /* Look up track in database, errAbort if it's not there. */ boolean hTrackCanPack(char *db, char *trackName); /* Return TRUE if this track can be packed. */ bool hTrackIsSubtrack(char *db, char *trackName); /* Return TRUE if this track is a subtrack. */ -char *hGetParent(char *db, char *subtrackName); -/* Return parent of subtrack. */ - char *hGetTrackForTable(char *db, char *table); /* Given a table name, get first track associated with it. */ char *hGetTableForTrack(char *db, char *track); /* Given a track name, get table associated with it. */ char *hTrackOpenVis(char *db, char *trackName); /* Return "pack" if track is packable, otherwise "full". */ struct dbDb *hGetIndexedDatabases(void); /* Get list of all active databases. * Dispose of this with dbDbFreeList. */ struct dbDb *hGetIndexedDatabasesForClade(char *db); /* Get list of active databases in db's clade.