mlflow/server/js/src/utils/Utils.js
/**
   * Renders the source name and entry point into a string. Used for sorting.
   * @param run MlflowMessages.RunInfo
   */
Renders the source name and entry point into a string. Used for sorting.
Renders the source name and entry point into a string . Used for sorting .
static formatSource(tags) {
    const sourceName = Utils.getSourceName(tags);
    const entryPointName = Utils.getEntryPointName(tags);
    if (Utils.getSourceType(tags) === "PROJECT") {
      let res = Utils.dropExtension(Utils.baseName(sourceName));
      if (entryPointName && entryPointName !== "main") {
        res += ":" + entryPointName;
      }
      return res;
    } else {
      return Utils.baseName(sourceName);
    }
  }
static formatSource ( tags ) { const sourceName = Utils . getSourceName ( tags ) ; const entryPointName = Utils . getEntryPointName ( tags ) ; if ( Utils . getSourceType ( tags ) === "PROJECT" ) { let res = Utils . dropExtension ( Utils . baseName ( sourceName ) ) ; if ( entryPointName && entryPointName !== "main" ) { res += ":" + entryPointName ; } return res ; } else { return Utils . baseName ( sourceName ) ; } }
Renders the source name and entry point into a string.
Renders the source name and entry point into a string .