How to hide the "Dates" tab in Palm

There was a previous post about this for Lilac, but it wasn’t answered. Does anyone know how to hide the Dates tab for students in Palm? This tab is meaningless for our courses, because they’re self-paced with no deadline.

hi @ABC , i also want do some like this with instructor tab , i did’t find out on disscussion , so i figured it out own there is funtion name _get_dynamic_tabs(course, user) in file lms/djangoapps/courseware/tabs.py
i didn’t append that tab in dynamic tab as you can see below

Hope it works for you

Thanks for the idea. I went ahead and added the same sort of exclusion of the “dates” tab like this:

--- a/lms/djangoapps/courseware/tabs.py
+++ b/lms/djangoapps/courseware/tabs.py
@@ -362,7 +362,7 @@ def _get_dynamic_tabs(course, user):
     for tab_type in CourseTabPluginManager.get_tab_types():
         if getattr(tab_type, "is_dynamic", False):
             tab = tab_type({})
-            if tab.is_enabled(course, user=user):
+            if tab.is_enabled(course, user=user) and tab.view_name != "dates":
                 dynamic_tabs.append(tab)

I did a rebuild of the openedx container with my forked, changed, branch like

time tutor images build openedx --build-arg EDX_PLATFORM_REPOSITORY=https://github.com/my_username/edx-platform.git --build-arg EDX_PLATFORM_VERSION=my_changed_branch
tutor local launch

However, the tab itself remains.

So you’re saying that caused it to disappear for you?

@vivek it looks like you were on the right track, but the “dates” tab must not be a dynamic tab. Once I added the following it successfully hid it:

diff --git a/lms/djangoapps/courseware/tabs.py b/lms/djangoapps/courseware/tabs.py
index 2a67b6454e..d2eeaa8c8c 100644
--- a/lms/djangoapps/courseware/tabs.py
+++ b/lms/djangoapps/courseware/tabs.py
@@ -338,6 +338,8 @@ def get_course_tab_list(user, course):
         if tab.type == 'static_tab' and tab.course_staff_only and \
                 not bool(user and has_access(user, 'staff', course, course.id)):
             continue
+        if tab.view_name == "dates":
+            continue
         course_tab_list.append(tab)