Skip to content

Deprecations

Deprecated import locations

The following functions / types have been moved to a more specific package (authenticator -> django).

  • Importing from application_kit.authenticator.decorators is deprecated, you can find decorators in application_kit.django.decorators for functions that do not depend on django see application_kit.authenticator.base.

  • Importing from application_kit.authenticator.middlewares is deprecated you can find those in ' application_kit.django.middlewares'.

  • In application_kit.authenticator.types the following have been moved to application_kit.django.request:

    • get_project_reference
    • set_project_reference
    • get_project_token
    • set_project_token
    • get_readable_token
    • get_token
    • set_token
  • In application_kit.authenticator.types the following have been moved to application_kit.django.types:

    • GenericViewCallable
    • GenericViewDecorator
  • In application_kit.queue.utils get_source_from_header has been moved to application_kit.django.utils.

  • In application_kit.metrics.decorator the following have been moved to application_kit.django.decorators:

    • CounterNameLambda
    • OrganizationLambda
    • ProjectLambda
    • count_request
  • In application_kit.metrics.decorator the following have been moved to application_kit.metrics.queue:

    • add_job_to_metrics_queue
    • build_job_data
    • get_organization_for_job
    • queue_configuration

Pending removal

  • @permission_classes decorator is deprecated for public or private key authentication. see @authenticate_key decorator instead.

  • application_kit.authenticator.middlewares.DjangoAuthenticator is superseded by django.middlewares.ApplicationKitApiMiddleware.

  • get_readable_token is deprecated see get_token

  • organization_from_token is deprecated use get_organization_for_job