controllers Package

controllers Package

Galaxy reports controllers.

jobs Module

class galaxy.webapps.reports.controllers.jobs.Jobs(app)[source]

Bases: galaxy.web.base.controller.BaseUIController

Class contains functions for querying data requested by user via the webapp. It exposes the functions and responds to requests with the filled .mako templates.

job_info(trans, **kwd)[source]
per_month_all(trans, **kwd)[source]

Queries the DB for all jobs. Avoids monitor jobs.

per_month_in_error(trans, **kwd)[source]

Queries the DB for user jobs in error. Filters out monitor jobs.

per_tool(trans, **kwd)[source]
per_user(trans, **kwd)[source]
specified_date_handler(trans, **kwd)[source]
specified_date_list_grid = <galaxy.webapps.reports.controllers.jobs.SpecifiedDateListGrid object>
specified_month_all(trans, **kwd)[source]

Queries the DB for all jobs in given month, defaults to current month.

specified_month_in_error(trans, **kwd)[source]

Queries the DB for the user jobs in error.

tool_per_month(trans, **kwd)[source]
user_per_month(trans, **kwd)[source]
class galaxy.webapps.reports.controllers.jobs.SpecifiedDateListGrid[source]

Bases: galaxy.web.framework.helpers.grids.Grid

class CreateTimeColumn(label, key=None, model_class=None, method=None, format=None, link=None, attach_popup=False, visible=True, nowrap=False, filterable=None, sortable=True, label_id_prefix=None, inbound=False)[source]

Bases: galaxy.web.framework.helpers.grids.DateTimeColumn

get_value(trans, grid, job)[source]
class SpecifiedDateListGrid.EmailColumn(label, key=None, model_class=None, method=None, format=None, link=None, attach_popup=False, visible=True, nowrap=False, filterable=None, sortable=True, label_id_prefix=None, inbound=False)[source]

Bases: galaxy.web.framework.helpers.grids.GridColumn

filter(trans, user, query, column_filter)[source]
class SpecifiedDateListGrid.JobIdColumn(label, key=None, model_class=None, method=None, format=None, link=None, attach_popup=False, visible=True, nowrap=False, filterable=None, sortable=True, label_id_prefix=None, inbound=False)[source]

Bases: galaxy.web.framework.helpers.grids.IntegerColumn

get_value(trans, grid, job)[source]
class SpecifiedDateListGrid.SpecifiedDateColumn(label, key=None, model_class=None, method=None, format=None, link=None, attach_popup=False, visible=True, nowrap=False, filterable=None, sortable=True, label_id_prefix=None, inbound=False)[source]

Bases: galaxy.web.framework.helpers.grids.GridColumn

filter(trans, user, query, column_filter)[source]
class SpecifiedDateListGrid.StateColumn(label, key=None, model_class=None, method=None, format=None, link=None, attach_popup=False, visible=True, nowrap=False, filterable=None, sortable=True, label_id_prefix=None, inbound=False)[source]

Bases: galaxy.web.framework.helpers.grids.TextColumn

filter(trans, user, query, column_filter)[source]
get_value(trans, grid, job)[source]
class SpecifiedDateListGrid.ToolColumn(label, key=None, model_class=None, method=None, format=None, link=None, attach_popup=False, visible=True, nowrap=False, filterable=None, sortable=True, label_id_prefix=None, inbound=False)[source]

Bases: galaxy.web.framework.helpers.grids.TextColumn

get_value(trans, grid, job)[source]
class SpecifiedDateListGrid.UserColumn(label, key=None, model_class=None, method=None, format=None, link=None, attach_popup=False, visible=True, nowrap=False, filterable=None, sortable=True, label_id_prefix=None, inbound=False)[source]

Bases: galaxy.web.framework.helpers.grids.GridColumn

get_value(trans, grid, job)[source]
SpecifiedDateListGrid.build_initial_query(trans, **kwd)[source]
SpecifiedDateListGrid.columns = [<galaxy.webapps.reports.controllers.jobs.JobIdColumn object at 0x7f92e3c1e110>, <galaxy.webapps.reports.controllers.jobs.StateColumn object at 0x7f92eb0aec50>, <galaxy.webapps.reports.controllers.jobs.ToolColumn object at 0x7f92e9a22790>, <galaxy.webapps.reports.controllers.jobs.CreateTimeColumn object at 0x7f92ec0f4e50>, <galaxy.webapps.reports.controllers.jobs.UserColumn object at 0x7f92e94a9150>, <galaxy.webapps.reports.controllers.jobs.SpecifiedDateColumn object at 0x7f92ee7f50d0>, <galaxy.webapps.reports.controllers.jobs.EmailColumn object at 0x7f92f43d10d0>, <galaxy.web.framework.helpers.grids.StateColumn object at 0x7f92f43d12d0>, <galaxy.web.framework.helpers.grids.MulticolFilterColumn object at 0x7f92ec11cf50>]
SpecifiedDateListGrid.default_filter = {'specified_date': 'All'}
SpecifiedDateListGrid.default_sort_key = 'id'
SpecifiedDateListGrid.model_class

alias of Job

SpecifiedDateListGrid.num_rows_per_page = 50
SpecifiedDateListGrid.preserve_state = False
SpecifiedDateListGrid.standard_filters = []
SpecifiedDateListGrid.template = '/webapps/reports/grid.mako'
SpecifiedDateListGrid.title = 'Jobs'
SpecifiedDateListGrid.use_async = False
SpecifiedDateListGrid.use_paging = True
galaxy.webapps.reports.controllers.jobs.get_job(trans, id)[source]
galaxy.webapps.reports.controllers.jobs.get_monitor_id(trans, monitor_email)[source]

A convenience method to obtain the monitor job id.

root Module

class galaxy.webapps.reports.controllers.root.Report(app)[source]

Bases: galaxy.web.base.controller.BaseUIController

index(trans, **kwd)[source]

sample_tracking Module

class galaxy.webapps.reports.controllers.sample_tracking.SampleTracking(app)[source]

Bases: galaxy.web.base.controller.BaseUIController

per_month_all(trans, **kwd)[source]
per_user(trans, **kwd)[source]
specified_date_handler(trans, **kwd)[source]
specified_date_list_grid = <galaxy.webapps.reports.controllers.sample_tracking.SpecifiedDateListGrid object>
user_per_month(trans, **kwd)[source]
class galaxy.webapps.reports.controllers.sample_tracking.SpecifiedDateListGrid[source]

Bases: galaxy.web.framework.helpers.grids.Grid

class CreateTimeColumn(label, key=None, model_class=None, method=None, format=None, link=None, attach_popup=False, visible=True, nowrap=False, filterable=None, sortable=True, label_id_prefix=None, inbound=False)[source]

Bases: galaxy.web.framework.helpers.grids.DateTimeColumn

get_value(trans, grid, request)[source]
class SpecifiedDateListGrid.EmailColumn(label, key=None, model_class=None, method=None, format=None, link=None, attach_popup=False, visible=True, nowrap=False, filterable=None, sortable=True, label_id_prefix=None, inbound=False)[source]

Bases: galaxy.web.framework.helpers.grids.GridColumn

filter(trans, user, query, column_filter)[source]
class SpecifiedDateListGrid.RequestNameColumn(label, key=None, model_class=None, method=None, format=None, link=None, attach_popup=False, visible=True, nowrap=False, filterable=None, sortable=True, label_id_prefix=None, inbound=False)[source]

Bases: galaxy.web.framework.helpers.grids.TextColumn

get_value(trans, grid, request)[source]
class SpecifiedDateListGrid.SpecifiedDateColumn(label, key=None, model_class=None, method=None, format=None, link=None, attach_popup=False, visible=True, nowrap=False, filterable=None, sortable=True, label_id_prefix=None, inbound=False)[source]

Bases: galaxy.web.framework.helpers.grids.GridColumn

filter(trans, user, query, column_filter)[source]
class SpecifiedDateListGrid.UserColumn(label, key=None, model_class=None, method=None, format=None, link=None, attach_popup=False, visible=True, nowrap=False, filterable=None, sortable=True, label_id_prefix=None, inbound=False)[source]

Bases: galaxy.web.framework.helpers.grids.TextColumn

get_value(trans, grid, request)[source]
SpecifiedDateListGrid.build_initial_query(trans, **kwd)[source]
SpecifiedDateListGrid.columns = [<galaxy.webapps.reports.controllers.sample_tracking.RequestNameColumn object at 0x7f92e1fc7990>, <galaxy.webapps.reports.controllers.sample_tracking.CreateTimeColumn object at 0x7f92e1c057d0>, <galaxy.webapps.reports.controllers.sample_tracking.UserColumn object at 0x7f92e217d410>, <galaxy.webapps.reports.controllers.sample_tracking.SpecifiedDateColumn object at 0x7f92e1c05750>, <galaxy.webapps.reports.controllers.sample_tracking.EmailColumn object at 0x7f92e1c05810>, <galaxy.web.framework.helpers.grids.MulticolFilterColumn object at 0x7f92e1c05850>]
SpecifiedDateListGrid.default_filter = {'specified_date': 'All'}
SpecifiedDateListGrid.default_sort_key = 'name'
SpecifiedDateListGrid.model_class

alias of Request

SpecifiedDateListGrid.num_rows_per_page = 50
SpecifiedDateListGrid.preserve_state = False
SpecifiedDateListGrid.standard_filters = []
SpecifiedDateListGrid.template = '/webapps/reports/grid.mako'
SpecifiedDateListGrid.title = 'Sequencing Requests'
SpecifiedDateListGrid.use_async = False
SpecifiedDateListGrid.use_paging = True
galaxy.webapps.reports.controllers.sample_tracking.get_request(trans, id)[source]

system Module

class galaxy.webapps.reports.controllers.system.System(app)[source]

Bases: galaxy.web.base.controller.BaseUIController

dataset_info(trans, **kwd)[source]
deleted_datasets(trans, **kwd)[source]

The number of datasets that were deleted more than the specified number of days ago, but have not yet been purged.

deleted_histories(trans, **kwd)[source]

The number of histories that were deleted more than the specified number of days ago, but have not yet been purged. Also included is the number of datasets associated with the histories.

disk_usage(trans, **kwd)[source]
get_disk_usage(file_path)[source]
index(trans, **kwd)[source]
userless_histories(trans, **kwd)[source]

The number of userless histories and associated datasets that have not been updated for the specified number of days.

galaxy.webapps.reports.controllers.system.nice_size(size, include_bytes=False)[source]

Returns a readably formatted string with the size

users Module

class galaxy.webapps.reports.controllers.users.Users(app)[source]

Bases: galaxy.web.base.controller.BaseUIController

last_access_date(trans, **kwd)[source]
registered_users(trans, **kwd)[source]
registered_users_per_month(trans, **kwd)[source]
specified_date(trans, **kwd)[source]
specified_month(trans, **kwd)[source]
user_disk_usage(trans, **kwd)[source]

workflows Module

class galaxy.webapps.reports.controllers.workflows.SpecifiedDateListGrid[source]

Bases: galaxy.web.framework.helpers.grids.Grid

class CreateTimeColumn(label, key=None, model_class=None, method=None, format=None, link=None, attach_popup=False, visible=True, nowrap=False, filterable=None, sortable=True, label_id_prefix=None, inbound=False)[source]

Bases: galaxy.web.framework.helpers.grids.DateTimeColumn

get_value(trans, grid, stored_workflow)[source]
class SpecifiedDateListGrid.EmailColumn(label, key=None, model_class=None, method=None, format=None, link=None, attach_popup=False, visible=True, nowrap=False, filterable=None, sortable=True, label_id_prefix=None, inbound=False)[source]

Bases: galaxy.web.framework.helpers.grids.GridColumn

filter(trans, user, query, column_filter)[source]
class SpecifiedDateListGrid.SpecifiedDateColumn(label, key=None, model_class=None, method=None, format=None, link=None, attach_popup=False, visible=True, nowrap=False, filterable=None, sortable=True, label_id_prefix=None, inbound=False)[source]

Bases: galaxy.web.framework.helpers.grids.GridColumn

filter(trans, user, query, column_filter)[source]
class SpecifiedDateListGrid.UserColumn(label, key=None, model_class=None, method=None, format=None, link=None, attach_popup=False, visible=True, nowrap=False, filterable=None, sortable=True, label_id_prefix=None, inbound=False)[source]

Bases: galaxy.web.framework.helpers.grids.TextColumn

get_value(trans, grid, stored_workflow)[source]
class SpecifiedDateListGrid.WorkflowNameColumn(label, key=None, model_class=None, method=None, format=None, link=None, attach_popup=False, visible=True, nowrap=False, filterable=None, sortable=True, label_id_prefix=None, inbound=False)[source]

Bases: galaxy.web.framework.helpers.grids.TextColumn

get_value(trans, grid, stored_workflow)[source]
SpecifiedDateListGrid.build_initial_query(trans, **kwd)[source]
SpecifiedDateListGrid.columns = [<galaxy.webapps.reports.controllers.workflows.WorkflowNameColumn object at 0x7f92e185ea10>, <galaxy.webapps.reports.controllers.workflows.CreateTimeColumn object at 0x7f92e851ef90>, <galaxy.webapps.reports.controllers.workflows.UserColumn object at 0x7f92e181e990>, <galaxy.webapps.reports.controllers.workflows.SpecifiedDateColumn object at 0x7f92e181e910>, <galaxy.webapps.reports.controllers.workflows.EmailColumn object at 0x7f92e181e9d0>, <galaxy.web.framework.helpers.grids.MulticolFilterColumn object at 0x7f92e181ea10>]
SpecifiedDateListGrid.default_filter = {'specified_date': 'All'}
SpecifiedDateListGrid.default_sort_key = 'name'
SpecifiedDateListGrid.model_class

alias of StoredWorkflow

SpecifiedDateListGrid.num_rows_per_page = 50
SpecifiedDateListGrid.preserve_state = False
SpecifiedDateListGrid.standard_filters = []
SpecifiedDateListGrid.template = '/webapps/reports/grid.mako'
SpecifiedDateListGrid.title = 'Workflows'
SpecifiedDateListGrid.use_async = False
SpecifiedDateListGrid.use_paging = True
class galaxy.webapps.reports.controllers.workflows.Workflows(app)[source]

Bases: galaxy.web.base.controller.BaseUIController

per_month_all(trans, **kwd)[source]
per_user(trans, **kwd)[source]
specified_date_handler(trans, **kwd)[source]
specified_date_list_grid = <galaxy.webapps.reports.controllers.workflows.SpecifiedDateListGrid object>
user_per_month(trans, **kwd)[source]
galaxy.webapps.reports.controllers.workflows.get_workflow(trans, id)[source]