dbc7d6bb2237141fdbea01fff6c265ade6738c57
chmalee
  Fri Oct 6 13:03:41 2023 -0700
Start on trackHubWizard module

diff --git src/hg/hgMyData/hgMyData.c src/hg/hgMyData/hgMyData.c
index 700002e..d934928 100644
--- src/hg/hgMyData/hgMyData.c
+++ src/hg/hgMyData/hgMyData.c
@@ -7,66 +7,30 @@
 #include "htmshell.h"
 #include "web.h"
 #include "cheapcgi.h"
 #include "cart.h"
 #include "hui.h"
 #include "udc.h"
 #include "knetUdc.h"
 #include "jsHelper.h"
 #include "cartJson.h"
 #include "wikiLink.h"
 
 /* Global Variables */
 struct cart *cart;             /* CGI and other variables */
 struct hash *oldVars = NULL;
 
-char *getUserName()
-{
-return (loginSystemEnabled() || wikiLinkEnabled()) ? wikiLinkUserName() : NULL;
-}
-
-void removeTrack(struct cartJson *cj, struct hash *paramHash)
-/* Removes a custom track for this user */
-{
-//char *userName = getUserName();
-}
-
-void uploadTrack(struct cartJson *cj, struct hash *paramHash)
-/* Saves a new track to the persistent storage for this user */
-{
-//char *userName = getUserName();
-}
-
-void listTracks(struct cartJson *cj, struct hash *paramHash)
-/* Return the list of:
- *   - Only if logged in:
- *       - custom tracks in saved sessions
- *       - non-public hubs in saved sessions
- *       - any other files stored in the per user directory
- *   - custom tracks in non-saved sessions
- *   - non-public hubs in non-saved sessions
- * Present data as a plain array for a table view */
-{
-char *userName = getUserName();
-if (userName)
-    {
-    return;
-    }
-// throw in the custom tracks that are in the current cart that may not be saved yet
-// throw in the attached hubs that are non-public hubs
-}
-
 void getUiState(struct cartJson *cj, struct hash *paramHash)
 /* Get just the JSON needed to show the initial web page */
 {
 }
 
 
 void printMainPageIncludes()
 {
 webIncludeResourceFile("gb.css");
 webIncludeResourceFile("gbStatic.css");
 webIncludeResourceFile("spectrum.min.css");
 webIncludeResourceFile("hgGtexTrackSettings.css");
 puts("<link rel='stylesheet' href='https://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css'>");
 puts("<link rel='stylesheet' href='https://cdnjs.cloudflare.com/ajax/libs/jstree/3.2.1/themes/default/style.min.css' />");
 puts("<script src='https://cdnjs.cloudflare.com/ajax/libs/jquery/1.12.1/jquery.min.js'></script>");
@@ -99,33 +63,33 @@
 char *hgsid = cartSessionId(cart);
 
 jsInlineF("var hgsid='%s';\n", hgsid);
 struct cartJson *cj = cartJsonNew(cart);
 jsInlineF("%s;\n", cartJsonDumpJson(cj));
 // Call our init function to fill out the page
 jsInline("hgMyData.init();\n");
 webEndGb();
 }
 
 void doCartJson()
 /* Register functions that return JSON to client */
 {
 struct cartJson *cj = cartJsonNew(cart);
 cartJsonRegisterHandler(cj, "getUiState", getUiState);
-cartJsonRegisterHandler(cj, "remove", removeTrack);
-cartJsonRegisterHandler(cj, "upload", uploadTrack);
-cartJsonRegisterHandler(cj, "list", listTracks);
+//cartJsonRegisterHandler(cj, "remove", removeTrack);
+//cartJsonRegisterHandler(cj, "upload", uploadTrack);
+//cartJsonRegisterHandler(cj, "list", listTracks);
 cartJsonExecute(cj);
 }
 
 void doMiddle(struct cart *theCart)
 /* Set up globals and dispatch appropriately */
 {
 cart = theCart;
 if (cgiOptionalString(CARTJSON_COMMAND))
     doCartJson();
 else
     doMainPage();
 }
 
 /* Null terminated list of CGI Variables we don't want to save
  * permanently. */