From 0c2b49f5d59b319ee70423b074a3d29c44e05c6e Mon Sep 17 00:00:00 2001 From: Raphael Date: Tue, 22 Oct 2024 08:12:41 -0400 Subject: [PATCH] [BUG FIX] [MER-3511] Incorrect sorting in a projects all activities view Co-authored-by: Raphael Gachuhi --- lib/oli_web/live/resources/activities_table_model.ex | 10 ++++++++-- .../activities/activities_table_model.ex | 12 +++++++++--- 2 files changed, 17 insertions(+), 5 deletions(-) diff --git a/lib/oli_web/live/resources/activities_table_model.ex b/lib/oli_web/live/resources/activities_table_model.ex index 6dd5e7b6a58..8b870796320 100644 --- a/lib/oli_web/live/resources/activities_table_model.ex +++ b/lib/oli_web/live/resources/activities_table_model.ex @@ -18,6 +18,10 @@ defmodule OliWeb.Resources.ActivitiesTableModel do label: "Type", render_fn: &OliWeb.Resources.ActivitiesTableModel.render_type_column/3 }, + %ColumnSpec{ + name: :title, + label: "Title" + }, %ColumnSpec{ name: :scope, label: "Scope" @@ -25,12 +29,14 @@ defmodule OliWeb.Resources.ActivitiesTableModel do %ColumnSpec{ name: :content, label: "Stem", - render_fn: &OliWeb.Resources.ActivitiesTableModel.render_content_column/3 + render_fn: &OliWeb.Resources.ActivitiesTableModel.render_content_column/3, + sortable: false }, %ColumnSpec{ name: :resource_id, label: "Page", - render_fn: &OliWeb.Resources.ActivitiesTableModel.render_page_column/3 + render_fn: &OliWeb.Resources.ActivitiesTableModel.render_page_column/3, + sortable: false }, %ColumnSpec{ name: :updated_at, diff --git a/lib/oli_web/live/workspaces/course_author/activities/activities_table_model.ex b/lib/oli_web/live/workspaces/course_author/activities/activities_table_model.ex index ad643286d45..aeb107d7c5f 100644 --- a/lib/oli_web/live/workspaces/course_author/activities/activities_table_model.ex +++ b/lib/oli_web/live/workspaces/course_author/activities/activities_table_model.ex @@ -18,19 +18,25 @@ defmodule OliWeb.Workspaces.CourseAuthor.Activities.ActivitiesTableModel do label: "Type", render_fn: &OliWeb.Resources.ActivitiesTableModel.render_type_column/3 }, + %ColumnSpec{ + name: :title, + label: "Title" + }, %ColumnSpec{ name: :scope, label: "Scope" }, %ColumnSpec{ - name: :content, + name: :stem, label: "Stem", - render_fn: &OliWeb.Resources.ActivitiesTableModel.render_content_column/3 + render_fn: &OliWeb.Resources.ActivitiesTableModel.render_content_column/3, + sortable: false }, %ColumnSpec{ name: :resource_id, label: "Page", - render_fn: &OliWeb.Resources.ActivitiesTableModel.render_page_column/3 + render_fn: &OliWeb.Resources.ActivitiesTableModel.render_page_column/3, + sortable: false }, %ColumnSpec{ name: :updated_at,