diff --git a/client/src/components/Grid/GridShared.vue b/client/src/components/Grid/GridShared.vue deleted file mode 100644 index 017beab7eae..00000000000 --- a/client/src/components/Grid/GridShared.vue +++ /dev/null @@ -1,33 +0,0 @@ - - - diff --git a/client/src/components/Grid/configs/visualizationsPublished.ts b/client/src/components/Grid/configs/visualizationsPublished.ts index 60f0ffa9f74..90e3c2f5599 100644 --- a/client/src/components/Grid/configs/visualizationsPublished.ts +++ b/client/src/components/Grid/configs/visualizationsPublished.ts @@ -1,5 +1,5 @@ import { fetcher } from "@/api/schema"; -import Filtering, { contains, equals, expandNameTag, toBool, type ValidFilter } from "@/utils/filtering"; +import Filtering, { contains, expandNameTag, type ValidFilter } from "@/utils/filtering"; import { withPrefix } from "@/utils/redirect"; /** diff --git a/client/src/entry/analysis/router.js b/client/src/entry/analysis/router.js index 233787ef86d..76a285bc0e8 100644 --- a/client/src/entry/analysis/router.js +++ b/client/src/entry/analysis/router.js @@ -9,7 +9,6 @@ import DatasetError from "components/DatasetInformation/DatasetError"; import FormGeneric from "components/Form/FormGeneric"; import GridHistory from "components/Grid/GridHistory"; import GridList from "components/Grid/GridList"; -import GridShared from "components/Grid/GridShared"; import HistoryExportTasks from "components/History/Export/HistoryExport"; import HistoryPublished from "components/History/HistoryPublished"; import HistoryPublishedList from "components/History/HistoryPublishedList"; diff --git a/client/src/mvc/grid/grid-shared.js b/client/src/mvc/grid/grid-shared.js deleted file mode 100644 index 9c06c698317..00000000000 --- a/client/src/mvc/grid/grid-shared.js +++ /dev/null @@ -1,69 +0,0 @@ -/** This class renders the grid list with shared section. */ -import { getGalaxyInstance } from "app"; -import Backbone from "backbone"; -import $ from "jquery"; -import GridView from "mvc/grid/grid-view"; -import { getAppRoot } from "onload/loadConfig"; -import LoadingIndicator from "ui/loading-indicator"; -import _ from "underscore"; - -var View = Backbone.View.extend({ - initialize: function (options) { - var self = this; - const Galaxy = getGalaxyInstance(); - LoadingIndicator.markViewAsLoading(this); - this.model = new Backbone.Model(options); - this.item = this.model.get("item"); - this.title = this.model.get("plural"); - if (options && options.active_tab) { - this.active_tab = options.active_tab; - } - $.ajax({ - url: `${getAppRoot() + this.item}/${this.model.get("action_id")}?${$.param(Galaxy.params)}`, - success: function (response) { - self.model.set(response); - self.render(); - }, - }); - }, - - render: function () { - var grid = new GridView(this.model.attributes); - this.$el.empty().append(grid.$el); - this.$el.append(this._templateShared()); - }, - - _templateShared: function () { - var self = this; - var $tmpl = $(`

${this.model.get("plural")} shared with you by others

`); - var options = this.model.attributes; - if (options.shared_by_others && options.shared_by_others.length > 0) { - var $table = $( - '' + - '' + - "" + - "" + - "" + - "
TitleOwner
" - ); - _.each(options.shared_by_others, (it, index) => { - var display_url = `${getAppRoot() + self.item}/display_by_username_and_slug?username=${ - it.username - }&slug=${it.slug}`; - $table.append( - `${_.escape(it.title)}${_.escape( - it.username - )}` - ); - }); - $tmpl.append($table); - } else { - $tmpl.append(`No ${this.model.get("plural").toLowerCase()} have been shared with you.`); - } - return $tmpl; - }, -}); - -export default { - View: View, -}; diff --git a/lib/galaxy/model/__init__.py b/lib/galaxy/model/__init__.py index 3e232a355f6..cb78947ae02 100644 --- a/lib/galaxy/model/__init__.py +++ b/lib/galaxy/model/__init__.py @@ -9946,7 +9946,7 @@ class Visualization(Base, HasTags, Dictifiable, RepresentById): @property def annotation(self): - if (len(self.annotations) == 1): + if len(self.annotations) == 1: return self.annotations[0].annotation return None