From 20a0e6e9e107d46bee03a8b4ea7bec177cee7184 Mon Sep 17 00:00:00 2001 From: Muneeb Ur Rehman Date: Tue, 10 May 2022 13:19:45 +0500 Subject: [PATCH] feat: create learner pathway skeleton (#30355) * feat: create skeleton for learner_pathway app * feat: add learner_pathway app for quality checks * feat: add verbose name and dir for tests * feat: add docstrings for files in app * fix: remove unused imports * refactor: resolve quality issues --- .github/workflows/pylint-checks.yml | 2 +- openedx/core/djangoapps/learner_pathway/__init__.py | 0 openedx/core/djangoapps/learner_pathway/admin.py | 3 +++ openedx/core/djangoapps/learner_pathway/apps.py | 12 ++++++++++++ .../learner_pathway/migrations/__init__.py | 0 openedx/core/djangoapps/learner_pathway/models.py | 3 +++ .../djangoapps/learner_pathway/tests/__init__.py | 0 openedx/core/djangoapps/learner_pathway/views.py | 3 +++ 8 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 openedx/core/djangoapps/learner_pathway/__init__.py create mode 100644 openedx/core/djangoapps/learner_pathway/admin.py create mode 100644 openedx/core/djangoapps/learner_pathway/apps.py create mode 100644 openedx/core/djangoapps/learner_pathway/migrations/__init__.py create mode 100644 openedx/core/djangoapps/learner_pathway/models.py create mode 100644 openedx/core/djangoapps/learner_pathway/tests/__init__.py create mode 100644 openedx/core/djangoapps/learner_pathway/views.py diff --git a/.github/workflows/pylint-checks.yml b/.github/workflows/pylint-checks.yml index 344119d312..4f95444df5 100644 --- a/.github/workflows/pylint-checks.yml +++ b/.github/workflows/pylint-checks.yml @@ -21,7 +21,7 @@ jobs: - module-name: openedx-1 path: "openedx/core/types/ openedx/core/djangoapps/ace_common/ openedx/core/djangoapps/agreements/ openedx/core/djangoapps/api_admin/ openedx/core/djangoapps/auth_exchange/ openedx/core/djangoapps/bookmarks/ openedx/core/djangoapps/cache_toolbox/ openedx/core/djangoapps/catalog/ openedx/core/djangoapps/ccxcon/ openedx/core/djangoapps/commerce/ openedx/core/djangoapps/common_initialization/ openedx/core/djangoapps/common_views/ openedx/core/djangoapps/config_model_utils/ openedx/core/djangoapps/content/ openedx/core/djangoapps/content_libraries/ openedx/core/djangoapps/contentserver/ openedx/core/djangoapps/cookie_metadata/ openedx/core/djangoapps/cors_csrf/ openedx/core/djangoapps/course_apps/ openedx/core/djangoapps/course_date_signals/ openedx/core/djangoapps/course_groups/ openedx/core/djangoapps/courseware_api/ openedx/core/djangoapps/crawlers/ openedx/core/djangoapps/credentials/ openedx/core/djangoapps/credit/ openedx/core/djangoapps/dark_lang/ openedx/core/djangoapps/debug/ openedx/core/djangoapps/demographics/ openedx/core/djangoapps/discussions/ openedx/core/djangoapps/django_comment_common/ openedx/core/djangoapps/embargo/ openedx/core/djangoapps/enrollments/ openedx/core/djangoapps/external_user_ids/ openedx/core/djangoapps/zendesk_proxy/ openedx/core/djangolib/ openedx/core/lib/ openedx/core/tests/ openedx/core/djangoapps/course_live/" - module-name: openedx-2 - path: "openedx/core/djangoapps/geoinfo/ openedx/core/djangoapps/header_control/ openedx/core/djangoapps/heartbeat/ openedx/core/djangoapps/lang_pref/ openedx/core/djangoapps/models/ openedx/core/djangoapps/monkey_patch/ openedx/core/djangoapps/oauth_dispatch/ openedx/core/djangoapps/olx_rest_api/ openedx/core/djangoapps/password_policy/ openedx/core/djangoapps/plugin_api/ openedx/core/djangoapps/plugins/ openedx/core/djangoapps/profile_images/ openedx/core/djangoapps/programs/ openedx/core/djangoapps/safe_sessions/ openedx/core/djangoapps/schedules/ openedx/core/djangoapps/self_paced/ openedx/core/djangoapps/service_status/ openedx/core/djangoapps/session_inactivity_timeout/ openedx/core/djangoapps/signals/ openedx/core/djangoapps/site_configuration/ openedx/core/djangoapps/system_wide_roles/ openedx/core/djangoapps/theming/ openedx/core/djangoapps/user_api/ openedx/core/djangoapps/user_authn/ openedx/core/djangoapps/util/ openedx/core/djangoapps/verified_track_content/ openedx/core/djangoapps/video_config/ openedx/core/djangoapps/video_pipeline/ openedx/core/djangoapps/waffle_utils/ openedx/core/djangoapps/xblock/ openedx/core/djangoapps/xmodule_django/ openedx/core/tests/ openedx/features/ openedx/testing/ openedx/tests/" + path: "openedx/core/djangoapps/geoinfo/ openedx/core/djangoapps/header_control/ openedx/core/djangoapps/heartbeat/ openedx/core/djangoapps/lang_pref/ openedx/core/djangoapps/models/ openedx/core/djangoapps/monkey_patch/ openedx/core/djangoapps/oauth_dispatch/ openedx/core/djangoapps/olx_rest_api/ openedx/core/djangoapps/password_policy/ openedx/core/djangoapps/plugin_api/ openedx/core/djangoapps/plugins/ openedx/core/djangoapps/profile_images/ openedx/core/djangoapps/programs/ openedx/core/djangoapps/safe_sessions/ openedx/core/djangoapps/schedules/ openedx/core/djangoapps/self_paced/ openedx/core/djangoapps/service_status/ openedx/core/djangoapps/session_inactivity_timeout/ openedx/core/djangoapps/signals/ openedx/core/djangoapps/site_configuration/ openedx/core/djangoapps/system_wide_roles/ openedx/core/djangoapps/theming/ openedx/core/djangoapps/user_api/ openedx/core/djangoapps/user_authn/ openedx/core/djangoapps/util/ openedx/core/djangoapps/verified_track_content/ openedx/core/djangoapps/video_config/ openedx/core/djangoapps/video_pipeline/ openedx/core/djangoapps/waffle_utils/ openedx/core/djangoapps/xblock/ openedx/core/djangoapps/xmodule_django/ openedx/core/tests/ openedx/features/ openedx/testing/ openedx/tests/ openedx/core/djangoapps/learner_pathway/" - module-name: common path: "common" - module-name: cms diff --git a/openedx/core/djangoapps/learner_pathway/__init__.py b/openedx/core/djangoapps/learner_pathway/__init__.py new file mode 100644 index 0000000000..e69de29bb2 diff --git a/openedx/core/djangoapps/learner_pathway/admin.py b/openedx/core/djangoapps/learner_pathway/admin.py new file mode 100644 index 0000000000..f69e12dccd --- /dev/null +++ b/openedx/core/djangoapps/learner_pathway/admin.py @@ -0,0 +1,3 @@ +""" +Admin interface for learner_pathway App. +""" diff --git a/openedx/core/djangoapps/learner_pathway/apps.py b/openedx/core/djangoapps/learner_pathway/apps.py new file mode 100644 index 0000000000..101ffd5570 --- /dev/null +++ b/openedx/core/djangoapps/learner_pathway/apps.py @@ -0,0 +1,12 @@ +""" +Configuration for learner_pathway Django app +""" + +from django.apps import AppConfig +from django.utils.translation import gettext_lazy as _ + + +class LearnerPathwayConfig(AppConfig): + default_auto_field = 'django.db.models.BigAutoField' + name = 'learner_pathway' + verbose_name = _("Learner Pathways") diff --git a/openedx/core/djangoapps/learner_pathway/migrations/__init__.py b/openedx/core/djangoapps/learner_pathway/migrations/__init__.py new file mode 100644 index 0000000000..e69de29bb2 diff --git a/openedx/core/djangoapps/learner_pathway/models.py b/openedx/core/djangoapps/learner_pathway/models.py new file mode 100644 index 0000000000..a03ee95ad3 --- /dev/null +++ b/openedx/core/djangoapps/learner_pathway/models.py @@ -0,0 +1,3 @@ +""" +Models for learner_pathway App. +""" diff --git a/openedx/core/djangoapps/learner_pathway/tests/__init__.py b/openedx/core/djangoapps/learner_pathway/tests/__init__.py new file mode 100644 index 0000000000..e69de29bb2 diff --git a/openedx/core/djangoapps/learner_pathway/views.py b/openedx/core/djangoapps/learner_pathway/views.py new file mode 100644 index 0000000000..8a87b81297 --- /dev/null +++ b/openedx/core/djangoapps/learner_pathway/views.py @@ -0,0 +1,3 @@ +""" +Views for learner_pathway App. +"""