
from django.utils.translation import ugettext_lazy as _

from horizon import tables


class ExecutionsTable(tables.DataTable):
    id = tables.Column("id",
                       verbose_name=_("ID"),
                       link=("horizon:mistral:executions:tasks"))
    wb_name = tables.Column("workbook_name", verbose_name=_("Workbook"))
    state = tables.Column("state", verbose_name=_("State"))

    class Meta:
        name = "executions"
        verbose_name = _("Executions")


class TaskTable(tables.DataTable):
    id = tables.Column("id", verbose_name=_("ID"))
    name = tables.Column("name", verbose_name=_("Name"))
    action = tables.Column("action", verbose_name=_("Action"))
    state = tables.Column("state", verbose_name=_("State"))

    class Meta:
        name = "tasks"
        verbose_name = _("Tasks")


from django.utils.translation import ugettext_lazy as _

from horizon import tables


class ExecutionsTable(tables.DataTable):
    id = tables.Column("id",
                       verbose_name=_("ID"),
                       link=("horizon:mistral:executions:tasks"))
    wb_name = tables.Column("workbook_name", verbose_name=_("Workbook"))
    state = tables.Column("state", verbose_name=_("State"))

    class Meta:
        name = "executions"
        verbose_name = _("Executions")


class TaskTable(tables.DataTable):
    id = tables.Column("id", verbose_name=_("ID"))
    name = tables.Column("name", verbose_name=_("Name"))
    parameters = tables.Column("parameters", verbose_name=_("Parameters"))
    output = tables.Column("output", verbose_name=_("Output"))
    state = tables.Column("state", verbose_name=_("State"))

    class Meta:
        name = "tasks"
        verbose_name = _("Tasks")

Add Task's output and parameters columns
Add Task's output and parameters columns

Change-Id: I98f57a6a0178bb7258d82f3a165127f060f42f7b
Implements: blueprint mistral-ui

  
  from django.utils.translation import ugettext_lazy as _
  
  from horizon import tables
  
  
  class ExecutionsTable(tables.DataTable):
      id = tables.Column("id",
                         verbose_name=_("ID"),
                         link=("horizon:mistral:executions:tasks"))
      wb_name = tables.Column("workbook_name", verbose_name=_("Workbook"))
      state = tables.Column("state", verbose_name=_("State"))
  
      class Meta:
          name = "executions"
          verbose_name = _("Executions")
  
  
  class TaskTable(tables.DataTable):
      id = tables.Column("id", verbose_name=_("ID"))
      name = tables.Column("name", verbose_name=_("Name"))
+     parameters = tables.Column("parameters", verbose_name=_("Parameters"))
-     action = tables.Column("action", verbose_name=_("Action"))
+     output = tables.Column("output", verbose_name=_("Output"))
      state = tables.Column("state", verbose_name=_("State"))
  
      class Meta:
          name = "tasks"
          verbose_name = _("Tasks")
  
Add Task's output and parameters columns
## Code Before:

from django.utils.translation import ugettext_lazy as _

from horizon import tables


class ExecutionsTable(tables.DataTable):
    id = tables.Column("id",
                       verbose_name=_("ID"),
                       link=("horizon:mistral:executions:tasks"))
    wb_name = tables.Column("workbook_name", verbose_name=_("Workbook"))
    state = tables.Column("state", verbose_name=_("State"))

    class Meta:
        name = "executions"
        verbose_name = _("Executions")


class TaskTable(tables.DataTable):
    id = tables.Column("id", verbose_name=_("ID"))
    name = tables.Column("name", verbose_name=_("Name"))
    action = tables.Column("action", verbose_name=_("Action"))
    state = tables.Column("state", verbose_name=_("State"))

    class Meta:
        name = "tasks"
        verbose_name = _("Tasks")

## Instruction:
Add Task's output and parameters columns
## Code After:

from django.utils.translation import ugettext_lazy as _

from horizon import tables


class ExecutionsTable(tables.DataTable):
    id = tables.Column("id",
                       verbose_name=_("ID"),
                       link=("horizon:mistral:executions:tasks"))
    wb_name = tables.Column("workbook_name", verbose_name=_("Workbook"))
    state = tables.Column("state", verbose_name=_("State"))

    class Meta:
        name = "executions"
        verbose_name = _("Executions")


class TaskTable(tables.DataTable):
    id = tables.Column("id", verbose_name=_("ID"))
    name = tables.Column("name", verbose_name=_("Name"))
    parameters = tables.Column("parameters", verbose_name=_("Parameters"))
    output = tables.Column("output", verbose_name=_("Output"))
    state = tables.Column("state", verbose_name=_("State"))

    class Meta:
        name = "tasks"
        verbose_name = _("Tasks")
