Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion credentials/apps/api/accreditors.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
from credentials.apps.credentials.constants import UserCredentialStatus
from credentials.apps.credentials.issuers import CourseCertificateIssuer, ProgramCertificateIssuer


logger = logging.getLogger(__name__)


Expand Down
1 change: 0 additions & 1 deletion credentials/apps/api/authentication.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@

from credentials.apps.core.constants import Role


logger = logging.getLogger(__name__)


Expand Down
1 change: 0 additions & 1 deletion credentials/apps/api/tests/mixins.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
from credentials.apps.core.constants import Role
from credentials.apps.core.tests.factories import UserFactory


JWT_AUTH = "JWT_AUTH"


Expand Down
1 change: 0 additions & 1 deletion credentials/apps/api/tests/test_accreditors.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
from credentials.apps.credentials.models import CourseCertificate, ProgramCertificate
from credentials.apps.credentials.tests.factories import CourseCertificateFactory, ProgramCertificateFactory


LOGGER_NAME = "credentials.apps.api.accreditors"


Expand Down
1 change: 0 additions & 1 deletion credentials/apps/api/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@

from django.urls import include, path


urlpatterns = [
path("v2/", include(("credentials.apps.api.v2.urls", "v2"), namespace="v2")),
]
1 change: 0 additions & 1 deletion credentials/apps/api/v2/decorators.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

from django.conf import settings


logger = logging.getLogger(__name__)


Expand Down
1 change: 0 additions & 1 deletion credentials/apps/api/v2/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
)
from credentials.apps.records.models import UserGrade


if TYPE_CHECKING:
from credentials.apps.credentials.models import AbstractCertificate

Expand Down
1 change: 0 additions & 1 deletion credentials/apps/api/v2/tests/test_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
from credentials.apps.records.models import UserGrade
from credentials.apps.records.tests.factories import UserGradeFactory


JSON_CONTENT_TYPE = "application/json"
LOGGER_NAME = "credentials.apps.credentials.issuers"
LOGGER_NAME_SERIALIZER = "credentials.apps.api.v2.serializers"
Expand Down
1 change: 0 additions & 1 deletion credentials/apps/api/v2/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

from credentials.apps.api.v2 import views


# NOTE: Although this is v2 and other APIs in this application are v1,
# the API naming and code layout convention here is not to be used for new
# endpoints, per:
Expand Down
1 change: 0 additions & 1 deletion credentials/apps/api/v2/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
from credentials.apps.credentials.models import CourseCertificate, UserCredential
from credentials.apps.records.models import UserGrade


log = logging.getLogger(__name__)


Expand Down
1 change: 0 additions & 1 deletion credentials/apps/badges/accredible/api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
from credentials.apps.badges.base_api_client import BaseBadgeProviderClient
from credentials.apps.badges.models import AccredibleAPIConfig, AccredibleGroup


logger = logging.getLogger(__name__)


Expand Down
13 changes: 4 additions & 9 deletions credentials/apps/badges/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@
)
from credentials.apps.badges.toggles import is_badges_enabled


ADMIN_CHANGE_VIEW_REVERSE_NAMES = {
CredlyBadgeTemplate.ORIGIN: "admin:badges_credlybadgetemplate_change",
AccredibleGroup.ORIGIN: "admin:badges_accrediblegroup_change",
Expand Down Expand Up @@ -254,13 +253,11 @@ class CredlyBadgeTemplateAdmin(admin.ModelAdmin):
"site",
"is_active",
),
"description": _(
"""
"description": _("""
WARNING: avoid configuration updates on activated badges.
Active badge templates are continuously processed and learners may already have progress on them.
Any changes in badge template requirements (including data rules) will affect learners' experience!
"""
),
"""),
},
),
(
Expand Down Expand Up @@ -657,13 +654,11 @@ class AccredibleGroupAdmin(admin.ModelAdmin):
"site",
"is_active",
),
"description": _(
"""
"description": _("""
WARNING: avoid configuration updates on activated badges.
Active badge templates are continuously processed and learners may already have progress on them.
Any changes in badge template requirements (including data rules) will affect learners' experience!
"""
),
"""),
},
),
(
Expand Down
1 change: 0 additions & 1 deletion credentials/apps/badges/base_api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@

from .exceptions import BadgeProviderError


logger = logging.getLogger(__name__)


Expand Down
1 change: 0 additions & 1 deletion credentials/apps/badges/credly/api_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
from credentials.apps.badges.credly.utils import get_credly_api_base_url
from credentials.apps.badges.models import CredlyBadgeTemplate, CredlyOrganization


logger = logging.getLogger(__name__)


Expand Down
1 change: 0 additions & 1 deletion credentials/apps/badges/credly/webhooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
from ..models import CredlyBadgeTemplate, CredlyOrganization
from .api_client import CredlyAPIClient


logger = logging.getLogger(__name__)


Expand Down
1 change: 0 additions & 1 deletion credentials/apps/badges/issuers.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
from credentials.apps.credentials.constants import UserCredentialStatus
from credentials.apps.credentials.issuers import AbstractCredentialIssuer


REVOCATION_STATES = {
CredlyBadge: CredlyBadge.STATES.revoked,
AccredibleBadge: AccredibleBadge.STATES.expired,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
from credentials.apps.badges.credly.api_client import CredlyAPIClient
from credentials.apps.badges.models import CredlyOrganization


logger = logging.getLogger(__name__)


Expand Down
1 change: 0 additions & 1 deletion credentials/apps/badges/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
from credentials.apps.core.api import get_user_by_username
from credentials.apps.credentials.models import AbstractCredential, UserCredential


logger = logging.getLogger(__name__)


Expand Down
1 change: 0 additions & 1 deletion credentials/apps/badges/processing/generic.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
from credentials.apps.badges.utils import extract_payload, get_user_data
from credentials.apps.core.api import get_or_create_user_from_event_data


logger = logging.getLogger(__name__)


Expand Down
1 change: 0 additions & 1 deletion credentials/apps/badges/processing/progression.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@

from credentials.apps.badges.models import BadgeRequirement


logger = logging.getLogger(__name__)


Expand Down
1 change: 0 additions & 1 deletion credentials/apps/badges/processing/regression.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@

from credentials.apps.badges.models import BadgePenalty


logger = logging.getLogger(__name__)


Expand Down
1 change: 0 additions & 1 deletion credentials/apps/badges/signals/handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
)
from credentials.apps.badges.utils import get_badging_event_types


logger = logging.getLogger(__name__)


Expand Down
1 change: 0 additions & 1 deletion credentials/apps/badges/signals/signals.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
from django.dispatch import Signal
from openedx_events.learning.signals import BADGE_AWARDED, BADGE_REVOKED


logger = logging.getLogger(__name__)


Expand Down
1 change: 0 additions & 1 deletion credentials/apps/badges/tests/test_admin_forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
from credentials.apps.badges.exceptions import BadgeProviderError
from credentials.apps.badges.models import BadgeRequirement, BadgeTemplate


COURSE_PASSING_EVENT = "org.openedx.learning.course.passing.status.updated.v1"


Expand Down
1 change: 0 additions & 1 deletion credentials/apps/badges/tests/test_issuers.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
)
from credentials.apps.credentials.constants import UserCredentialStatus


User = get_user_model()


Expand Down
1 change: 0 additions & 1 deletion credentials/apps/badges/tests/test_services.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
from credentials.apps.badges.signals import BADGE_PROGRESS_COMPLETE
from credentials.apps.badges.signals.handlers import handle_badge_completion


COURSE_PASSING_EVENT = "org.openedx.learning.course.passing.status.updated.v1"
COURSE_PASSING_DATA = CoursePassingStatusData(
is_passing=True,
Expand Down
1 change: 0 additions & 1 deletion credentials/apps/badges/tests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
keypath,
)


COURSE_PASSING_EVENT = "org.openedx.learning.course.passing.status.updated.v1"


Expand Down
1 change: 0 additions & 1 deletion credentials/apps/badges/toggles.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

from edx_toggles.toggles import SettingToggle


# .. toggle_name: BADGES_ENABLED
# .. toggle_implementation: DjangoSetting
# .. toggle_default: False
Expand Down
1 change: 0 additions & 1 deletion credentials/apps/badges/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

from .credly.webhooks import CredlyWebhook


urlpatterns = [
path("credly/webhook/", CredlyWebhook.as_view(), name="credly-webhook"),
]
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
from credentials.apps.catalog.utils import CatalogDataSynchronizer
from credentials.apps.core.models import SiteConfiguration


logger = logging.getLogger(__name__)


Expand Down
1 change: 0 additions & 1 deletion credentials/apps/catalog/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@

from .data import PathwayStatus, ProgramStatus


logger = logging.getLogger(__name__)


Expand Down
1 change: 0 additions & 1 deletion credentials/apps/catalog/tests/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
from credentials.apps.core.tests.mixins import SiteMixin
from credentials.apps.credentials.tests.factories import CourseCertificateFactory


if TYPE_CHECKING:
from credentials.apps.credentials.models import CourseCertificate

Expand Down
1 change: 0 additions & 1 deletion credentials/apps/catalog/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
from credentials.apps.catalog.data import PathwayStatus
from credentials.apps.catalog.models import Course, CourseRun, Organization, Pathway, Program


logger = logging.getLogger(__name__)


Expand Down
1 change: 0 additions & 1 deletion credentials/apps/core/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
from django.contrib.auth import get_user_model
from openedx_events.learning.data import UserData


User = get_user_model()
logger = logging.getLogger(__name__)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@

from credentials.apps.core.models import SiteConfiguration


logger = logging.getLogger(__name__)


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@

from credentials.apps.core.models import SiteConfiguration


if TYPE_CHECKING:
from django.contrib.auth.models import AbstractUser

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@

from credentials.apps.core.models import SiteConfiguration


logger = logging.getLogger(__name__)
User = get_user_model()

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
from credentials.apps.core.tests.factories import UserFactory
from credentials.apps.core.tests.mixins import SiteMixin


User = get_user_model()

JSON = "application/json"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
from credentials.apps.core.tests.factories import UserFactory
from credentials.apps.core.tests.mixins import SiteMixin


User = get_user_model()

JSON = "application/json"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@

from credentials.apps.core.tests.factories import UserFactory, UserSocialAuthFactory


User = get_user_model()

JSON = "application/json"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
from django.core.management.base import BaseCommand
from social_django.models import UserSocialAuth


logger = logging.getLogger(__name__)
User = get_user_model()

Expand Down
1 change: 0 additions & 1 deletion credentials/apps/core/tests/factories.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

from credentials.apps.core.models import SiteConfiguration, User


USER_PASSWORD = "password"


Expand Down
1 change: 0 additions & 1 deletion credentials/apps/core/tests/mixins.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

from credentials.apps.core.tests.factories import SiteConfigurationFactory


JSON = "application/json"


Expand Down
1 change: 0 additions & 1 deletion credentials/apps/core/tests/test_context_processors.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
from credentials.apps.core.context_processors import core
from credentials.apps.core.tests import factories


LANGUAGE_CODE = "en"


Expand Down
1 change: 0 additions & 1 deletion credentials/apps/core/tests/test_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
from credentials.apps.core.constants import Status
from credentials.apps.core.tests.mixins import SiteMixin


User = get_user_model()


Expand Down
1 change: 0 additions & 1 deletion credentials/apps/core/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@

from credentials.apps.core.constants import Status


logger = logging.getLogger(__name__)
User = get_user_model()

Expand Down
Loading